# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+rrestart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+eexec"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.
bindsymjresizeshrinkwidth10pxor10ppt
bindsymkresizegrowheight10pxor10ppt
bindsymlresizeshrinkheight10pxor10ppt
bindsymsemicolonresizegrowwidth10pxor10ppt
# same bindings, but for the arrow keys
bindsymLeftresizeshrinkwidth10pxor10ppt
bindsymDownresizegrowheight10pxor10ppt
bindsymUpresizeshrinkheight10pxor10ppt
bindsymRightresizegrowwidth10pxor10ppt
# back to normal: Enter or Escape
bindsymReturnmode"default"
bindsymEscapemode"default"
}
bindsym $mod+rmode"resize"
# Start i3bar to display a workspace bar (plus the system information i3status