# Mod key (win key)
set $mod Mod4
# Font
#font -xos4-fixed-medium-r-normal-*-12-120-72-72-c-60-iso10646-1
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
#font xft:Inconsolata-dz for Powerline 8
font xft:Liberation Mono for Powerline 9
# Wallpaper
exec --no-startup-id nitrogen --restore
# load xresources
exec --no-startup-id xrdb ~/.Xresources
# turn off screen after 10 minutes
exec --no-startup-id xset dpms 600
# compositing
exec --no-startup-id xcompmgr
# music server
exec --no-startup-id mpd /home/rdg/.mpd/mpd.conf
# gnome bindings
exec --no-startup-id gnome-settings-daemon
exec --no-startup-id gnome-keyring-daemon
exec --no-startup-id gnome-do
# systray apps
exec --no-startup-id nm-applet
exec --no-startup-id volti
exec --no-startup-id classicmenu-indicator
# additional apps
exec --no-startup-id owncloud
# application bindings
bindsym $mod+Return exec x-terminal-emulator && transset -a 0.8
#bindsym $mod+u exec urxvt
bindsym $mod+g exec gvim
bindsym $mod+Shift+b exec chromium-browser
bindsym $mod+b exec firefox
bindsym $mod+t exec pcmanfm
#bindsym $mod+t exec nautilus
#bindsym $mod+t exec thunar
bindsym $mod+o exec subl
# Start dmenu
bindsym $mod+d exec dmenu_run
# Scratchpad
bindsym $mod+minus scratchpad show
bindsym $mod+Shift+minus move scratchpad
# Workspace names
workspace "☊ subbass" output DVI-I-1
workspace "☣ Web" output DVI-I-1
workspace "⚙ etc" output DVI-I-1
workspace "☝ touch" output DVI-D-0
# Window colors
client.focused #2c2c2c #2c2c2c #ececec #2099c2
client.focused_inactive #2c2c2c #2c2c2c #bcbcbc #2c2c2c
client.unfocused #2c2c2c #2c2c2c #6c6c6c #2c2c2c
client.urgent #ff7a00 #ff7a00 #000000 #2c2c2c
# window border
new_window pixel 9
hide_edge_borders none
# window behaviour
popup_during_fullscreen smart
force_focus_wrapping no
workspace_auto_back_and_forth yes
force_display_urgency_hint 500 ms
# Float special windows
for_window [window_role="pop-up"] floating enable; border normal
for_window [class="XFontsel"] floating enable; border normal
for_window [class="Nitrogen"] floating enable; border normal
for_window [class="Thunar" title="File Operation Progress"] floating enable; border normal
for_window [class="Xmessage"] floating enable; border normal
for_window [class="Sublime_text" window_role="GtkFileChooserDialog"] floating enable; border normal
for_window [class="VirtualBox"] floating enable; border normal
for_window [class="Steam"] floating enable; border normal
for_window [title="exe"] floating enable; border none
for_window [class="Firefox" window_role="Manager"] floating enable; border normal
for_window [class="Firefox" title="Add Downloads"] floating enable; border normal
for_window [class="Firefox" title="DownThemAll! - Make Your Selection"] floating enable; border normal
for_window [class="defcon.bin.x86_64"] floating enable; border none
for_window [class="Gcr-prompter"] floating enable; border normal
for_window [class="X3AP_config"] floating enable; border normal
for_window [class="Vidalia"] floating enable; border normal
for_window [class="SRRemote.pyc"] floating enable; border normal
for_window [title="https://pinboard.in - Pinboard - Save a Bookmark - Mozilla Firefox"] floating enable; border normal
for_window [class="Wine" instance="winecfg.exe"] floating enable; border normal
for_window [class="Qjackctl"] floating enable; border normal
# Change focused window
bindsym $mod+Left focus left
bindsym $mod+Right focus right
bindsym $mod+Up focus up
bindsym $mod+Down focus down
# Kill focused window
bindsym $mod+Shift+q kill
# Move focused window
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Right move right
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Down move down
# Resize focused window
bindsym $mod+Ctrl+Left resize shrink width 5px or 5 ppt
bindsym $mod+Ctrl+Right resize grow width 5px or 5 ppt
bindsym $mod+Ctrl+Down resize shrink height 5px or 5 ppt
bindsym $mod+Ctrl+Up resize grow height 5px or 5 ppt
# Change container layout
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout default
# Change parent container
bindsym $mod+a focus parent
# Switch workspces
bindsym $mod+1 workspace "☊ subbass"
bindsym $mod+2 workspace "☣ Web"
bindsym $mod+3 workspace "⚙ etc"
bindsym $mod+4 workspace "☝ touch"
# Move focused containers
bindsym $mod+Shift+1 move container to workspace "☊ subbass"; workspace "☊ subbass"
bindsym $mod+Shift+2 move container to workspace "☣ Web"; workspace "☣ Web"
bindsym $mod+Shift+3 move container to workspace "⚙ etc"; workspace "⚙ etc"
bindsym $mod+Shift+4 move container to workspace "☝ touch"; workspace "☝ touch"
# Toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# Floating modifier for mouse use
floating_modifier $mod
# Split orientation
bindsym $mod+v split v
bindsym $mod+h split h
# Toggle fullscreen
bindsym $mod+f fullscreen
# Multimedia keys
bindsym XF86AudioPrev exec mpc prev
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPlay exec mpc_toggle
bindsym XF86AudioMute exec alsamute
# Toggle resize
bindsym $mod+r mode "layout"
bindsym $mod+Shift+Return mode "layout"
floating_minimum_size 120 x 80
# resize windows
mode "layout" {
bindsym Shift+Left resize shrink width 5px or 5 ppt
bindsym Shift+Up resize grow height 5px or 5 ppt
bindsym Shift+Down resize shrink height 5px or 5 ppt
bindsym Shift+Right resize grow width 5px or 5 ppt
bindsym Ctrl+Shift+Left resize shrink width 10px or 10 ppt
bindsym Ctrl+Shift+Up resize grow height 10px or 10 ppt
bindsym Ctrl+Shift+Down resize shrink height 10px or 10 ppt
bindsym Ctrl+Shift+Right resize grow width 10px or 10 ppt
bindsym Left move left
bindsym Up move up
bindsym Right move right
bindsym Down move down
bindsym Shift+1 move container to workspace "☊ subbass"; workspace "☊ subbass"
bindsym Shift+2 move container to workspace "☣ Web"; workspace "☣ Web"
bindsym Shift+3 move container to workspace "⚙ etc"; workspace "⚙ etc"
bindsym Shift+4 move container to workspace "☝ touch"; workspace "☝ touch"
bindsym 1 exec --no-startup-id transset -a 1
bindsym 2 exec --no-startup-id transset -a 0.95
bindsym 3 exec --no-startup-id transset -a 0.9
bindsym 4 exec --no-startup-id transset -a 0.8
bindsym 5 exec --no-startup-id transset -a 0.65
bindsym 6 exec --no-startup-id transset -a 0.5
bindsym 7 exec --no-startup-id transset -a 0.4
bindsym 8 exec --no-startup-id transset -a 0.3
bindsym 9 exec --no-startup-id transset -a 0.2
bindsym 0 exec --no-startup-id transset -a 0.1
# exit resize mode
bindsym Escape mode "default"
bindsym Return mode "default"
}
# Reload, restart, ext
bindsym $mod+Shift+C reload
bindsym $mod+Shift+R exec --no-startup-id killall conky; restart
# bindsym $mod+Shift+E exit
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id /home/rdg/bin/i3exit lock, mode "default"
bindsym e exec --no-startup-id /home/rdg/bin/i3exit logout, mode "default"
bindsym s exec --no-startup-id /home/rdg/bin/i3exit suspend, mode "default"
bindsym h exec --no-startup-id /home/rdg/bin/i3exit hibernate, mode "default"
bindsym r exec --no-startup-id /home/rdg/bin/i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id /home/rdg/bin/i3exit shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Pause mode "$mode_system"
# configure bar
bar {
mode dock
status_command ~/.i3/conky.sh
position bottom
workspace_buttons yes
output DVI-I-1
tray_output none
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
#font xft:Inconsolata-dz for Powerline 8
colors {
background #1c1c1c
statusline #2099c2
focused_workspace #1c1c1c #1c1c1c #ff9422
active_workspace #1c1c1c #1c1c1c #2099c2
inactive_workspace #1c1c1c #1c1c1c #2099c2
urgent_workspace #1c1c1c #ff9422 #000000
}
}
bar {
mode dock
output DVI-D-0
tray_output DVI-D-0
workspace_buttons yes
position bottom
colors {
background #1c1c1c
statusline #cc9797
focused_workspace #1c1c1c #1c1c1c #ff9422
active_workspace #1c1c1c #1c1c1c #2099c2
inactive_workspace #1c1c1c #1c1c1c #2099c2
urgent_workspace #1c1c1c #ff9422 #000000
}
}