# This configuration uses Mod4 and Mod3. Make sure they are mapped properly using xev(1)
# and xmodmap(1). Usually, Mod4 is Alt (Alt_L) and Mod3 is Windows (Super_L)

# ISO 10646 = Unicode
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1

# Use Mouse+Mod4 to drag floating windows to their wanted position
floating_modifier Mod4

# Fullscreen
bindsym Mod4+f f

# Stacking
bindsym Mod4+s s

# Tabbed
bindsym Mod4+w T

# Default
bindsym Mod4+d d

# Toggle tiling/floating of the current window
bindsym Mod4+Shift+f t

# Go into the tiling layer / floating layer, depending on whether
# the current window is tiling / floating
#  @@@ I don't think this is working right
bindsym Mod4+Control+f ft

# Focus
bindsym Mod4+h h
bindsym Mod4+j j
bindsym Mod4+k k
bindsym Mod4+l l

# Focus Container
# @@@
#bindsym Mod4+h wch
#bindsym Mod4+j wcj
#bindsym Mod4+k wck
#bindsym Mod4+l wcl

# Snap
bindsym Mod4+Control+h sh
bindsym Mod4+Control+j sj
bindsym Mod4+Control+k sk
bindsym Mod4+Control+l sl

# Move
bindsym Mod4+Shift+h mh
bindsym Mod4+Shift+j mj
bindsym Mod4+Shift+k mk
bindsym Mod4+Shift+l ml

# Move Container
#@@@
#bindsym Mod4+Alt+h wcmh
#bindsym Mod4+Alt+j wcmj
#bindsym Mod4+Alt+k wcmk
#bindsym Mod4+Alt+l wcml

# Workspaces
bindsym Mod4+1 1
bindsym Mod4+2 2
bindsym Mod4+3 3
bindsym Mod4+4 4
bindsym Mod4+5 5
bindsym Mod4+6 6
bindsym Mod4+7 7
bindsym Mod4+8 8
bindsym Mod4+9 9
bindsym Mod4+0 10

# Move to Workspaces
bindsym Mod4+Shift+1 m1
bindsym Mod4+Shift+2 m2
bindsym Mod4+Shift+3 m3
bindsym Mod4+Shift+4 m4
bindsym Mod4+Shift+5 m5
bindsym Mod4+Shift+6 m6
bindsym Mod4+Shift+7 m7
bindsym Mod4+Shift+8 m8
bindsym Mod4+Shift+9 m9
bindsym Mod4+Shift+0 m10

# Mod4+Enter starts a new terminal
bind Mod4+36 exec /usr/bin/xterm

# kills the current client
bindsym Mod4+Shift+c kill

bindsym Mod4+m exec i3-input -p 'mark ' -l 1 -P 'Mark: '
bind Mod4+48 exec i3-input -p 'goto ' -l 1 -P 'Goto: '

bindsym Mod4+Shift+q exit
bindsym Mod4+q reload
bindsym Mod4+Shift+q restart

mode "command" {
   bindsym 1 1
   bindsym 2 2
   bindsym 3 3
   bindsym 4 4
   bindsym 5 5
   bindsym 6 6
   bindsym 7 7
   bindsym 8 8
   bindsym 9 9
   bindsym 0 10
   bindsym Shift+1 m1
   bindsym Shift+2 m2
   bindsym Shift+3 m3
   bindsym Shift+4 m4
   bindsym Shift+5 m5
   bindsym Shift+6 m6
   bindsym Shift+7 m7
   bindsym Shift+8 m8
   bindsym Shift+9 m9
   bindsym Shift+0 m10

   bindsym d kill
   bindsym h h
   bindsym j j
   bindsym k k
   bindsym l l
   bindsym Shift+h mh
   bindsym Shift+j mj
   bindsym Shift+k mk
   bindsym Shift+l ml
   bindsym Control+h resize right -25
   bindsym Control+j resize bottom +25
   bindsym Control+k resize bottom -25
   bindsym Control+l resize right +25
   bindsym Shift+Control+h wch
   bindsym Shift+Control+j wcj
   bindsym Shift+Control+k wck
   bindsym Shift+Control+l wcl
   bindsym m exec i3-input -p 'mark ' -l 1 -P 'Mark: '
   bind 48 exec i3-input -p 'goto ' -l 1 -P 'Goto: '
   bindsym Escape mode default
   bind 66 mode default
}

bindsym Mod4+Escape mode command
bind Mod4+66 mode command
bindsym Mod4+Shift+z exec i3lock -d -c '#332222'

# The IPC interface allows programs like an external workspace bar
# (i3-wsbar) or i3-msg (can be used to "remote-control" i3) to work.
ipc-socket ~/.i3/ipc.sock

workspace 1 output DFP4
workspace 2 output DFP1

exec ~/.kde/Autostart/jafo
exec i3status | dzen2 -fg '#ccffcc' -ta r -w 1200 -x 1360 -y 1583
