# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# 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'"
# }}}
############
#navigation#
############
# {{{ window based
mouse_warping output
focus_follows_mouse yes
bindsym $mod+Shift+d split h
bindsym $mod+d split v
bindsym $mod+f fullscreen toggle
# bindsym $mod+s layout stacking
# bindsym $mod+w layout tabbed
bindsym $mod+o layout toggle split
bindsym $mod+Return floating toggle
bindsym $mod+$alt+Return focus mode_toggle
#bindsym $mod+c focus child
# }}}
# {{{ movement
# change focus
bindsym $mod+h focus left
bindsym $mod+t focus down
bindsym $mod+n focus up
bindsym $mod+s focus right
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+$alt+h move left
bindsym $mod+$alt+t move down
bindsym $mod+$alt+n move up
bindsym $mod+$alt+s move right
bindsym $mod+$alt+Left move left
bindsym $mod+$alt+Down move down
bindsym $mod+$alt+Up move up
bindsym $mod+$alt+Right move right
# }}}
# {{{ workspaces
# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
bindsym $mod+ctrl+1 workspace number $ws11
bindsym $mod+ctrl+2 workspace number $ws12
bindsym $mod+ctrl+3 workspace number $ws13
bindsym $mod+ctrl+4 workspace number $ws14
bindsym $mod+ctrl+5 workspace number $ws15
bindsym $mod+ctrl+6 workspace number $ws16
bindsym $mod+ctrl+7 workspace number $ws17
bindsym $mod+ctrl+8 workspace number $ws18
bindsym $mod+ctrl+9 workspace number $ws19
bindsym $mod+ctrl+0 workspace number $ws20
# move focused container to workspace
bindsym $mod+$alt+1 move container to workspace number $ws1
bindsym $mod+$alt+2 move container to workspace number $ws2
bindsym $mod+$alt+3 move container to workspace number $ws3
bindsym $mod+$alt+4 move container to workspace number $ws4
bindsym $mod+$alt+5 move container to workspace number $ws5
bindsym $mod+$alt+6 move container to workspace number $ws6
bindsym $mod+$alt+7 move container to workspace number $ws7
bindsym $mod+$alt+8 move container to workspace number $ws8
bindsym $mod+$alt+9 move container to workspace number $ws9
bindsym $mod+$alt+0 move container to workspace number $ws10
bindsym $mod+$alt+ctlr+1 move container to workspace number $ws11
bindsym $mod+$alt+ctlr+2 move container to workspace number $ws12
bindsym $mod+$alt+ctlr+3 move container to workspace number $ws13
bindsym $mod+$alt+ctlr+4 move container to workspace number $ws14
bindsym $mod+$alt+ctlr+5 move container to workspace number $ws15
bindsym $mod+$alt+ctlr+6 move container to workspace number $ws16
bindsym $mod+$alt+ctlr+7 move container to workspace number $ws17
bindsym $mod+$alt+ctlr+8 move container to workspace number $ws18
bindsym $mod+$alt+ctlr+9 move container to workspace number $ws19
bindsym $mod+$alt+ctlr+0 move container to workspace number $ws20
# }}}
###################
#workpaces/windows#
###################
# {{{ window rules
for_window [class="feh" instance="feh"] floating enable, move position center