set $mod Mod4

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

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.

font pango:monospace 8

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

# start a terminal
bindsym $mod+Return exec i3-sensible-terminal

# kill focused window
bindsym $mod+Shift+c kill

# start dmenu (a program launcher)
bindsym $mod+r exec dmenu_recent_aliases -fn "artwiz curefixed-8" -sf \#F8F8F8 -sb \#FF6F54
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10

bindsym $mod+shift+q exit
bindsym $mod+shift+r reload
bindsym $mod+ctrl+shift+r restart

bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10

bindsym $mod+Shift+space floating toggle

# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right

# change position
bindsym $mod+shift+h move left
bindsym $mod+shift+j move down
bindsym $mod+shift+k move up
bindsym $mod+shift+l move right

# layout
bindsym $mod+q layout splith
bindsym $mod+w layout splitv
bindsym $mod+e layout default

bindsym $mod+v split vertical
bindsym $mod+o split horizontal
bindsym $mod+p split toggle

bindsym $mod+g gaps inner all set 0
bindsym $mod+shift+g gaps inner all set $default_gaps_inner

bindsym $mod+f fullscreen toggle

bindsym $mod+i exec surf google.com
bindsym $mod+s exec scrot -e 'mv $f "/home/hiro/Pictures/scrots"'
bindsym $mod+z exec mouse-switchscreen
bindsym $mod+b exec urxvt-browser

bindsym XF86AudioLowerVolume exec amixer set Master 5%- && pkill -SIGRTMIN+10 i3blocks
bindsym XF86AudioRaiseVolume exec amixer set Master 5%+ && pkill -SIGRTMIN+10 i3blocks
bindsym XF86AudioMute exec amixer sset Master toggle && pkill -SIGRTMIN+10 i3blocks

# alternatively, you can use the cursor keys:
bindsym $mod+Alt_R focus left
bindsym $mod+Super_R focus down
bindsym $mod+Print focus up

bindsym XF86MonBrightnessUp exec xbacklight -inc 10
bindsym XF86MonBrightnessDown exec xbacklight -dec 10

bindsym XF86TouchpadToggle exec bash /usr/local/bin/touchpad_toggle.sh

set $background  #e0eaf9

# class                 border  backgr. text    indicator child_border
client.focused          #271f17 #271f17 #AAAAAA #AAAAAA   #C93F2C
client.focused_inactive #21211d #1d2121 #a1a1a1 #484e50   #1d2121
client.unfocused        #333333 #222222 #888888 #292d2e   #222222
client.urgent           #4a4b4c #4a4b4c #AAAAAA #AAAAAA   #4a4c4b
client.placeholder      #000000 #0c0c0c #AAAAAA #000000   #0c0c0c

client.background       #111111

# Borders
new_window pixel 4
new_float pixel 4

focus_follows_mouse no

# Gaps
set $default_gaps_inner 32
set $default_gaps_outer 0
gaps inner $default_gaps_inner
gaps outer $default_gaps_outer

smart_borders on
new_window normal

popup_during_fullscreen ignore
for_window [class="^.*"] border pixel 1
for_window [title="urxvt-browser"] fullscreen enable
for_window [class="mpv"] fullscreen enable
for_window [title="Android Emulator"] floating enable
for_window [title="ElonaFoobar*"] floating enable
for_window [title="ElonaFoobar*"] border pixel 0
for_window [class="mpv"] border pixel 0
for_window [class="chromium"] border pixel 0
for_window [class="chromium"] move window to workspace $ws2
for_window [class="emacs"] move window to workspace $ws1
for_window [class="gimp"] move window to workspace $ws5
for_window [class="freerdp"] move window to workspace $ws9
for_window [class="Firefox"] move window to workspace $ws3
for_window [class="firefoxdeveloperedition"] move window to workspace $ws3
for_window [title="urxvt-browser"] move window to workspace $ws10
for_window [window_role="browser|GtkFileChooserDialog"] resize set 800 600, move position center

bar {
    font pango:artwiz cure 8
    tray_output primary
    status_command i3blocks
    i3bar_command i3bar -t
    position bottom
    separator_symbol "|"
    strip_workspace_numbers yes
#   Color panel
    colors {
        background #303030
        statusline #d0e1d4
        separator  #c1d0c1

#                        border  backgr   text
        focused_workspace   #FF6F54 #FF6F54 #FFF2CE
        inactive_workspace  #64635f #64635f #a7afa9
        urgent_workspace    #2e394a #2e394a #e7dfd9
       }
}

exec --no-startup-id feh --bg-fill /home/hiro/Pictures/mybg2.png

# Local Variables:
# eval: (rainbow-mode 1)
# End: