# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $mod+x workspace number $ws1
bindsym $mod+c workspace number $ws2
bindsym $mod+v workspace number $ws3
bindsym $mod+s workspace number $ws4
bindsym $mod+d workspace number $ws5
bindsym $mod+f workspace number $ws6
bindsym $mod+w workspace number $ws7
bindsym $mod+e workspace number $ws8
bindsym $mod+r workspace number $ws9
bindsym $mod+z workspace number $ws10
# move focused container to workspace
bindsym $mod+Mod1+x move container to workspace number $ws1
bindsym $mod+Mod1+c move container to workspace number $ws2
bindsym $mod+Mod1+v move container to workspace number $ws3
bindsym $mod+Mod1+s move container to workspace number $ws4
bindsym $mod+Mod1+d move container to workspace number $ws5
bindsym $mod+Mod1+f move container to workspace number $ws6
bindsym $mod+Mod1+w move container to workspace number $ws7
bindsym $mod+Mod1+e move container to workspace number $ws8
bindsym $mod+Mod1+r move container to workspace number $ws9
bindsym $mod+Mod1+z move container to workspace number $ws1
# 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 or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
#bindsym $mod+r mode "default"
}
#bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
}
# theming
# class border backgr. text indicator child_border