# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

exec /usr/sbin/loloswitcher
exec nohup /usr/bin/xxkb &
exec feh --bg-scale ~/yd/media/pics/wallpapers/wallpaper.jpg
exec urxtc -e tmux &
exec --no-startup-id i3-msg "workspace c"

bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
for_window [class="^Gvim$" instance="^scratchpad$"] border 1pixel; move scratchpad
# exec gvim -name scratchpad

set $mod Mod4

# is used in the bar {} block below. ISO 10646 = Unicode
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose a FreeType font, such as:
# font pango:DejaVu Sans Mono 10
font pango:Anonymous Pro 10
# font pango:Pragmata Pro 10

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

floating_modifier $mod

bindsym XF86AudioMute exec amixer set Master toggle
bindsym XF86AudioRaiseVolume exec amixer -c 0 set Master 2+
bindsym XF86AudioLowerVolume exec amixer -c 0 set Master 2-
bindsym XF86AudioNext exec mpris2.py next
bindsym XF86AudioPlay exec mpris2.py toggleplay
bindsym XF86AudioPrev exec mpris2.py prev
bindsym XF86ScreenSaver exec i3lock-blur
bindsym XF86Sleep exec slimlock
bindsym XF86Launch1 exec slimlock
bindsym $mod+x exec slimlock
bindsym $mod+Return exec i3-sensible-terminal

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

# start dmenu (a program launcher)
# yeganesh is wrapper around dmenu
bindsym $mod+e exec yeganesh -x -- -fn PragmataPro -b | sh
bindsym $mod+y exec dmenu-translate
#/usr/bin/yeganesh
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop

# change focus
bindsym $mod+h focus left
bindsym $mod+t focus down
bindsym $mod+n focus up
bindsym $mod+s focus right

# alternatively, you can use the cursor keys:
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+Shift+h move left
bindsym $mod+Shift+t move down
bindsym $mod+Shift+n move up
bindsym $mod+Shift+s move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# split in horizontal orientation
bindsym $mod+d split h

# split in vertical orientation
bindsym $mod+k split v

# enter fullscreen mode for the focused container
bindsym $mod+u fullscreen

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+o layout stacking
bindsym $mod+comma layout tabbed
bindsym $mod+period layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# focus the parent container
bindsym $mod+a focus parent

# focus the child container
#bindsym $mod+d focus child

# switch to workspace
bindsym $mod+ampersand workspace 1
bindsym $mod+bracketleft workspace 2
bindsym $mod+braceleft workspace 3
bindsym $mod+braceright workspace 4
bindsym $mod+parenleft workspace 5
bindsym $mod+equal workspace 6
bindsym $mod+asterisk workspace 7
bindsym $mod+parenright workspace 8
bindsym $mod+plus workspace 9
bindsym $mod+bracketright workspace 10
bindsym $mod+v workspace v
bindsym $mod+w workspace w
bindsym $mod+m workspace m
bindsym $mod+c workspace c

# move focused container to workspace
bindsym $mod+Shift+ampersand move container to workspace 1
bindsym $mod+Shift+bracketleft move container to workspace 2
bindsym $mod+Shift+braceleft move container to workspace 3
bindsym $mod+Shift+braceright move container to workspace 4
bindsym $mod+Shift+1 move container to workspace 5
bindsym $mod+Shift+9 move container to workspace 6
bindsym $mod+Shift+asterisk move container to workspace 7
bindsym $mod+Shift+2 move container to workspace 8
bindsym $mod+Shift+4 move container to workspace 9
bindsym $mod+Shift+bracketright move container to workspace 10
bindsym $mod+Shift+v move container to workspace v
bindsym $mod+Shift+w move container to workspace w
bindsym $mod+Shift+m move container to workspace m
bindsym $mod+Shift+c move container to workspace c

# reload the configuration file
bindsym $mod+Shift+j reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+p restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+greater 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'"

# 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 h resize shrink width 10 px or 10 ppt
        bindsym t resize grow height 10 px or 10 ppt
        bindsym n resize shrink height 10 px or 10 ppt
        bindsym s 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+p mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)

# Colors
# zenburn
# class border backgr. text
#client.focused #525252 #1E1E1E #F5DEB3
#client.focused_inactive #333333 #0F0F0F #E3CCA1
#client.unfocused #333333 #010101 #85753A
#client.urgent #856E23 #900000 #F5DEB3

#bar {
#        status_command i3status
#    #mode hide
#        colors {
#        	background #0F0F0F
#        	statusline #F5DEB3
#        	 focused_workspace #F5DEB3 #666666
#        	 active_workspace #F5DEB3 #0F0F0F
#        	 inactive_workspace #F5DEB3 #1E1E1E
#        	 urgent_workspace #ffffff #900000
#        }
# }

#client.focused          #cb4b16 #fdf6e3 #657b83 #ffffff
#client.focused_inactive #586e75 #fdf6e3 #657b83 #ffffff
#client.unfocused        #586e75 #fdf6e3 #657b83 #ffffff
#client.urgent           #586e75 #fdf6e3 #657b83 #ffffff
client.focused #cb4b16 #cb4b16 #fdf6e3
client.focused_inactive #657b83 #657b83 #fdf6e3
client.unfocused #586e75 #586e75 #eee8d5
client.urgent #dc322f #dc322f #fdf6e3
bar {
        status_command i3status
        mode dock
        position bottom
        tray_output primary
        workspace_buttons yes
        colors {
                #background      #657b83
                background      #586e75
                statusline      #fdf6e3
                #focused_workspace #b58900 #111111
                focused_workspace       #cb4b16 #f5deb3 #839496
                inactive_workspace      #859900 #fdf6e3 #839496
                urgent_workspace        #2aa198 #d33682 #dc322f

                #background #0e0e0e
                #statusline #839496
                #focused_workspace #b58900 #111111
                #inactive_workspace #586e75 #111111
                #urgent_workspace #839496 #dc322f
# active_workspace #839496 #111111
        }
}
# vim:filetype=i3
