set $mod Mod4

font pango:monospace 12


exec --no-startup-id dex --autostart --environment i3



exec --no-startup-id ~/bin/background.sh

exec --no-startup-id conky
exec --no-startup-id xsetroot -solid midnightblue
exec_always --no-startup-id ~/bin/autotiling
exec --no-startup-id volumeicon
exec --no-startup-id cmst -m

workspace_auto_back_and_forth yes




floating_modifier $mod

tiling_drag modifier titlebar

bindsym $mod+Return exec i3-sensible-terminal

bindsym $mod+Shift+q kill

bindsym $mod+d exec --no-startup-id dmenu_run

bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right

bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right

bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

bindsym $mod+h split h

bindsym $mod+v split v

bindsym $mod+f fullscreen toggle

bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

bindsym $mod+Shift+space floating toggle

bindsym $mod+space focus mode_toggle

bindsym $mod+a focus parent


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"

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+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10

bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
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'"

mode "resize" {

       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

       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

       bindsym Return mode "default"
       bindsym Escape mode "default"
       bindsym $mod+r mode "default"
}

bindsym $mod+r mode "resize"

bar {
       status_command i3status

}

set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (CTRL+s) shutdown

mode "$mode_system" {
   bindsym l exec --no-startup-id i3lock, mode "default"
   bindsym e exec --no-startup-id i3-msg exit, mode "default"
   bindsym s exec --no-startup-id i3lock && ~/bin/suspendi3.sh, mode "default"
   bindsym h exec --no-startup-id i3lock && ~/hibernatei3.sh, mode "default"
   bindsym r exec --no-startup-id  ~/bin/rebooti3.sh, mode "default"
   bindsym Ctrl+s exec --no-startup-id ~/bin/shutdowni3.sh, mode "default"

   bindsym Return mode "default"
   bindsym Escape mode "default"
}

bindsym $mod+BackSpace mode "$mode_system"