set $mod Mod4

#font -xos4-terminus-medium-r-*--12-*-*-*-*-*-iso10646-1
#font -*-proggytiny-medium-r-*-*-10-*-*-*-*-*-*-*
#font -misc-fixed-medium-r-semicondensed-*-12-*-*-*-*-*-iso10646-1
font -*-gohufont-medium-*-*-*-11-*-*-*-*-*-iso10646-1

floating_modifier $mod

focus_follows_mouse no
mouse_warping none

bindsym $mod+Return exec /usr/bin/urxvt -fg grey -bg black +sb -sl 1024 -e "zsh"

bindsym $mod+Shift+q kill

bindsym $mod+r exec /usr/bin/dmenu_run -i -fn "gohufont-9" -nb \#000000 -nf \#999999 -sb \#000000 -sf \#31658C

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

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

bindsym $mod+o border toggle

bindsym $mod+1 workspace "1"
bindsym $mod+2 workspace "2"
bindsym $mod+3 workspace "3"
bindsym $mod+4 workspace "4"
bindsym $mod+5 workspace "5"
bindsym $mod+6 workspace "6"
bindsym $mod+7 workspace "7"
bindsym $mod+8 workspace "8"
bindsym $mod+9 workspace "9"
bindsym $mod+0 workspace "10"

bindsym $mod+Shift+1 move container to workspace "1"
bindsym $mod+Shift+2 move container to workspace "2"
bindsym $mod+Shift+3 move container to workspace "3"
bindsym $mod+Shift+4 move container to workspace "4"
bindsym $mod+Shift+5 move container to workspace "5"
bindsym $mod+Shift+6 move container to workspace "6"
bindsym $mod+Shift+7 move container to workspace "7"
bindsym $mod+Shift+8 move container to workspace "8"
bindsym $mod+Shift+9 move container to workspace "9"
bindsym $mod+Shift+0 move container to workspace "10"

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

        # same bindings, but for the arrow keys
        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

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+q mode "resize"

### DESIGN ###

# 1-pixel Border
#new_window none
new_window 1pixel

# Colors
#   class                     border       background   text
client.focused            #999999      #999999      #000000
client.focused_inactive   #333333      #333333      #999999
client.unfocused          #333333      #333333      #999999
client.urgent             #8C4665      #8C5665      #999999

# multihead (named quoted like "2: www")

workspace "3" output DVI-I-1
workspace "2" output DVI-D-0
workspace "1" output DP-1

default_orientation auto
workspace_layout default
popup_during_fullscreen ignore
workspace_auto_back_and_forth yes

### AUTOSTART ###
# Set background color and cursor
#exec xsetroot -solid \#000000
#exec xsetroot -cursor_name left_ptr
#exec xrandr --output DP-0 --right-of DVI-I-1
exec xrandr --output DP-1 --left-of DVI-D-0 --output DVI-I-1 --right-of DVI-D-0
exec --no-startup-id xmodmap -e "keycode 108 = Multi_key"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
    status_command i3status
    #status_command py3status -c ~/.i3status.conf
    position top
    #output DFP1
    tray_output DP-1
    #tray_output DisplayPort-0
    #font -xos4-terminus-medium-r-*--12-*-*-*-*-*-iso10646-1
    font -*-gohufont-medium-*-*-*-11-*-*-*-*-*-iso10646-1
    colors  {
        background #000000
        statusline #ffffff
    
        focused_workspace  #ffffff #285577
        active_workspace   #ffffff #333333
        inactive_workspace #888888 #222222
        urgent_workspace   #ffffff #900000
    }
}