# Window Management

bindsym {
#kill focused window
  $mod+Shift+q kill
#move focus around
  $mod+Left focus left
  $mod+Down focus down
  $mod+Up focus up
  $mod+Right focus right
#move focused window
  $mod+Shift+Left move left
  $mod+Shift+Down move down
  $mod+Shift+Up move up
  $mod+Shift+Right move right
#fullscreen
  $mod+f fullscreen
#change split orientation
  $mod+comma splith
  $mod+period splitv
  $mod+slash layout toggle split
#change layout style
  $mod+semicolon layout stacking
  $mod+apostrophe layout tabbed
#focus parent
  $mod+a focus parent
#toggle floating
  $mod+Shift+space floating toggle
#swap between tiles and floats
  $mod+space focus mode_toggle
#enter resize mode
  $mod+r mode "resize"
}

mode "resize" {
  bindsym {
#right: grow width
    Right resize grow width 10px
# left: shrink width
    Left resize shrink width 10px
# up: grow height
    Up resize grow height 10px
# down: shrink height
    Down resize shrink height 10px
# Return to default mode
    Return mode "default"
    Escape mode "default"
    $mod+r mode "default"
  }
}

#move floating window
floating_modifier $mod normal