Created
November 5, 2018 20:16
-
-
Save fusion809/08b58520ebccec21d18cb4f7bf9a78ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file was originally part of Danil <danil@kutkevich.org> home. | |
# Since then it has been extensively customized. | |
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
# If you edit this file you should also edit README.md | |
set $mod Mod4 | |
# Font for window titles. Will also be used by the bar unless a different font | |
# is used in the bar {} block below. | |
font pango:Ubuntu 7 | |
# Use Mouse+$mod to drag floating windows to their wanted position | |
floating_modifier $mod | |
################################################################################################## | |
################################### Change to workspace with app ################################# | |
################################################################################################## | |
# 0 A.D. | |
bindsym $mod+3 [class="pyrogenesis"] focus | |
# Chromium | |
#bindsym End [class="Chromium-browser-chromium"] focus | |
# Pale Moon | |
#bindsym End [class="Pale moon"] focus | |
# Firefox | |
bindsym End [class="Firefox"] focus | |
# OpenRA | |
bindsym $mod+4 [class="mono-sgen"] focus | |
# Switch to RS | |
bindsym Home [class="RuneScape"] focus | |
# Switch to PCManFM | |
bindsym F10 [class="Pcmanfm"] focus | |
# Switch to VLC | |
bindsym F11 [class="Vlc"] focus | |
# Switch to xterm | |
bindsym F12 [class="XTerm"] focus | |
# Take a screenshot | |
bindsym Print --release exec /usr/local/bin/scrnshot | |
# Take a screencast | |
bindsym $mod+Print exec /usr/local/bin/vid | |
# Launch 0 A.D. | |
bindsym $mod+g exec /usr/bin/0ad | |
# Launch Chromium | |
bindsym $mod+c exec /usr/bin/chromium | |
# start dmenu (a program launcher) | |
#bindsym $mod+d exec dmenu_run | |
# start Rofi | |
bindsym $mod+d exec "rofi -show drun -drun-icon-theme MacBuntu-Remix -show-icons" | |
# Open i3-input | |
bindsym $mod+i exec i3-input | |
# Launch MarvinSketch | |
bindsym $mod+m exec /opt/chemaxon/marvinsuite/bin/msketch | |
# Launch RuneScape NXT client | |
bindsym $mod+o exec /usr/local/bin/runescape-launcher | |
# Launch PCManFM | |
bindsym $mod+p exec /usr/bin/pcmanfm | |
# Launch HexChat | |
bindsym $mod+Shift+h /usr/bin/hexchat | |
# Launch Tor browser (en) | |
bindsym $mod+t exec $HOME/.local/share/applications/tor-browser_en-US/Browser/start-tor-browser | |
# Open Deluge | |
bindsym $mod+Shift+d exec deluge | |
# Open Firefox | |
bindsym $mod+Shift+f exec /usr/local/bin/firefox | |
# Launch virt-manager | |
bindsym $mod+Shift+m exec virt-manager | |
# Launch OpenRA | |
bindsym $mod+Shift+o exec openra-ra | |
# Launch Pale Moon | |
bindsym $mod+Shift+p exec palemoon | |
# Launch VLC | |
bindsym $mod+Shift+q exec vlc | |
# Launch VirtualBox | |
bindsym $mod+Shift+v exec /usr/local/bin/vbox | |
# Open LibreOffice writer | |
bindsym $mod+Shift+w exec "rofi -show window" | |
# change focus | |
bindsym $mod+j focus left | |
bindsym $mod+k focus down | |
bindsym $mod+l focus up | |
bindsym $mod+semicolon focus right | |
# alternatively, you can use the cursor keys: | |
bindsym $mod+Left focus left | |
bindsym $mod+Down focus down | |
bindsym $mod+Up focus up | |
bindsym $mod+Right focus right | |
# move focused window | |
bindsym $mod+Shift+j move left | |
bindsym $mod+Shift+k move down | |
bindsym $mod+Shift+l move up | |
bindsym $mod+Shift+colon move right | |
# alternatively, you can use the cursor keys: | |
bindsym $mod+Shift+Left move left | |
bindsym $mod+Shift+Down move down | |
bindsym $mod+Shift+Up move up | |
bindsym $mod+Shift+Right move right | |
# split in horizontal orientation | |
bindsym $mod+h split h | |
# split in vertical orientation | |
bindsym $mod+v split v | |
# enter fullscreen mode for the focused container | |
bindsym $mod+f fullscreen | |
# change container layout (stacked, tabbed, toggle split) | |
bindsym $mod+s layout stacking | |
bindsym $mod+w layout tabbed | |
bindsym $mod+e layout toggle split | |
# toggle tiling / floating | |
bindsym $mod+Shift+space floating toggle | |
# change focus between tiling / floating windows | |
bindsym $mod+space focus mode_toggle | |
# focus the parent container | |
bindsym $mod+a focus parent | |
# focus the child container | |
bindsym $mod1+d focus child | |
# kill focused window | |
bindsym $mod+q kill | |
# switch to workspace | |
bindsym F1 workspace $workspace1 | |
bindsym $mod+2 workspace $workspace2 | |
bindsym F3 workspace $workspace3 | |
bindsym F4 workspace $workspace4 | |
bindsym F5 workspace $workspace5 | |
bindsym $mod+6 workspace $workspace6 | |
bindsym F7 workspace $workspace7 | |
bindsym F8 workspace $workspace8 | |
bindsym F9 workspace $workspace9 | |
bindsym $mod+0 workspace $workspace10 | |
# 11-20 | |
bindsym $mod+F1 workspace $workspace11 | |
bindsym $mod+F2 workspace $workspace12 | |
bindsym $mod+F3 workspace $workspace13 | |
bindsym $mod+F4 workspace $workspace14 | |
bindsym $mod+F5 workspace $workspace15 | |
bindsym $mod+F6 workspace $workspace16 | |
bindsym $mod+F7 workspace $workspace17 | |
bindsym $mod+F8 workspace $workspace18 | |
bindsym $mod+F9 workspace $workspace19 | |
bindsym $mod+$mod1+0 workspace $workspace20 | |
# Terminal | |
bindsym $mod+Tab exec xterm | |
bindsym $mod+Enter exec xterm | |
# Set workspace icons; the final one for PCManFM will be put in place if these two actually work, which they don't | |
set $workspace1 "" | |
set $workspace2 "" | |
set $workspace3 "" | |
set $workspace4 "" | |
set $workspace5 "" | |
set $workspace6 "" | |
set $workspace7 "7" | |
set $workspace8 "8" | |
set $workspace9 "9" | |
set $workspace10 "10" | |
set $workspace11 "11" | |
set $workspace12 "12" | |
set $workspace12 "12" | |
set $workspace12 "13" | |
set $workspace12 "14" | |
set $workspace12 "15" | |
set $workspace12 "16" | |
set $workspace12 "17" | |
set $workspace12 "18" | |
set $workspace12 "19" | |
set $workspace12 "20" | |
# move focused container to workspace | |
bindsym $mod+Shift+1 move container to workspace 1 | |
bindsym $mod+Shift+2 move container to workspace 2 | |
bindsym $mod+Shift+3 move container to workspace 3 | |
bindsym $mod+Shift+4 move container to workspace 4 | |
bindsym $mod+Shift+5 move container to workspace 5 | |
bindsym $mod+Shift+6 move container to workspace 6 | |
bindsym $mod+Shift+7 move container to workspace 7 | |
bindsym $mod+Shift+8 move container to workspace 8 | |
bindsym $mod+Shift+9 move container to workspace 9 | |
bindsym $mod+Shift+0 move container to workspace 10 | |
# 11-20 | |
bindsym $mod+Shift+F1 move container to workspace 11 | |
bindsym $mod+Shift+F2 move container to workspace 12 | |
bindsym $mod+Shift+F3 move container to workspace 13 | |
bindsym $mod+Shift+F4 move container to workspace 14 | |
bindsym $mod+Shift+F5 move container to workspace 15 | |
bindsym $mod+Shift+F6 move container to workspace 16 | |
bindsym $mod+Shift+F7 move container to workspace 17 | |
bindsym $mod+Shift+F8 move container to workspace 18 | |
bindsym $mod+Shift+F9 move container to workspace 19 | |
bindsym $mod+Shift+F10 move container to workspace 20 | |
# reload the configuration file | |
bindsym $mod+Shift+c reload | |
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | |
bindsym $mod+Shift+r restart | |
# exit i3 (logs you out of your X session) | |
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" | |
# resize window (you can also use the mouse for that) | |
mode "resize" { | |
# These bindings trigger as soon as you enter the resize mode | |
# Pressing left will shrink the window’s width. | |
# Pressing right will grow the window’s width. | |
# Pressing up will shrink the window’s height. | |
# Pressing down will grow the window’s height. | |
bindsym j resize shrink width 10 px or 10 ppt | |
bindsym k resize grow height 10 px or 10 ppt | |
bindsym l resize shrink height 10 px or 10 ppt | |
bindsym semicolon resize grow width 10 px or 10 ppt | |
# same bindings, but for the arrow keys | |
bindsym Left resize shrink width 10 px or 10 ppt | |
bindsym Down resize grow height 10 px or 10 ppt | |
bindsym Up resize shrink height 10 px or 10 ppt | |
bindsym Right resize grow width 10 px or 10 ppt | |
# back to normal: Enter or Escape | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
} | |
bindsym $mod+r mode "resize" | |
# Start i3bar to display a workspace bar (plus the system information i3status | |
# finds out, if available) | |
bar { | |
position bottom | |
#status_command ~/.i3/i3status.sh | |
status_command /usr/bin/python3 ~/GitHub/mine/scripts/common-scripts/.i3/github.py | |
font pango:Font Awesome 5 Brands-Regular-400 9 | |
colors { | |
background #000000 | |
statusline #ffffff | |
#focused_workspace #ff4500 #000000 | |
#inactive_workspace #888888 #000000 | |
focused_workspace #454545 #225577 #ffffff | |
inactive_workspace #454545 #212121 #ffffff | |
} | |
} | |
bar { | |
workspace_buttons no | |
tray_output no | |
position top | |
font pango:Font Awesome 5 Brands-Regular-400 10 | |
#status_command ~/.i3/i3status.sh | |
status_command /usr/bin/python3 $HOME/GitHub/mine/scripts/common-scripts/.i3/i3status-notifs.py | |
colors { | |
background #222222 | |
statusline #ffffff | |
#focused_workspace #ff4500 #000000 | |
#inactive_workspace #888888 #000000 | |
focused_workspace #454545 #225577 #ffffff | |
inactive_workspace #454545 #212121 #ffffff | |
} | |
} | |
exec ~/.xsession | |
exec ~/.local/bin/appimaged | |
assign [class="xterm"] $workspace3 | |
exec --no-startup-id xterm | |
assign [class="pcmanfm"] $workspace4 | |
exec --no-startup-id pcmanfm | |
assign [class="^Hexchat$"] $workspace9 | |
exec --no-startup-id hexchat | |
assign [class="Firefox"] $workspace1 | |
exec --no-startup-id firefox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment