bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+asterisk move container to workspace $ws8
bindsym $mod+Shift+parenleft move container to workspace $ws9
bindsym $mod+Shift+parenright move container to workspace $ws10
#Assigning programs to workspaces
assign [class="(?i)terminator"] $ws4
for_window [class="(?i)terminator"] focus
assign [class="(?i)emacs"] $ws1
for_window [class="(?i)emacs"] focus
assign [class="(?i)firefox"] $ws2
for_window [class="(?i)firefox"] focus
assign [class="(?i)tor browser"] $ws2
for_window [class="(?i)tor browser"] focus
assign [class="(?i)transmission"] $ws8
for_window [class="(?i)transmission"] focus
assign [class="(?i)clementine"] $ws6
for_window [class="(?i)clemetine"] focus
assign [class="(?i)vlc"] $ws6
for_window [class="(?i)vlc"] focus
assign [class="(?i)Element"] $ws3
for_window [class="(?i)Element"] focus
assign [class="(?i)thunderbird"] $ws9
for_window [class="(?i)thunderbird"] focus
assign [class="(?i)libreoffice"] $ws5
for_window [class="(?i)libreoffice"] focus
assign [class="(?i)evince"] $ws5
for_window [class="(?i)evince"] focus
assign [class="(?i)steam"] $ws7
for_window [class="(?i)steam"] focus
for_window [class="(?i)Yad"] floating enable
# 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"
set $mode_system System (l) lock, (e) logout, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id ~/.config/i3/i3exit.sh lock, mode "default"
bindsym e exec --no-startup-id ~/.config/i3/i3exit.sh logout, mode "default"
bindsym h exec --no-startup-id ~/.config/i3/i3exit.sh hibernate, mode "default"
bindsym r exec --no-startup-id ~/.config/i3/i3exit.sh reboot, mode "default"