2014-09-12 19:03:40 -04:00
set $mod Mod4
2015-01-27 15:38:30 -05:00
assign [class=Firefox] 2
2015-02-04 13:24:04 -05:00
assign [class=libreoffice] 3
2014-12-27 04:35:51 -05:00
exec --no-startup-id "zsh -c 'xrandr --output LVDS1 --primary || xrandr --output HDMI3 --primary'"
2015-01-15 12:42:10 -05:00
bindsym $mod+shift+d exec i3-input -F 'rename workspace to "%s"' -P 'Rename to: '
2014-08-22 19:37:05 -04:00
#exec xrandr --output HDMI3 --left-of HDMI1 &
#exec xmodmap ~/.Xmodmap &
2014-11-22 19:14:54 -05:00
bindsym Print exec "shutter -r"
2014-09-20 23:09:10 -04:00
#bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute
#bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute
#bindsym XF86AudioMute exec amixer -q set Master toggle
2014-08-11 15:14:46 -04:00
#screensaver
2014-12-27 04:35:51 -05:00
bindsym $mod+shift+backslash exec "cat /tmp/noss&&(rm /tmp/noss;notify-send 'Screensaver Enabled' -t 200)||(touch /tmp/noss;notify-send 'Screensaver Disabled' -t 200)"
2015-03-01 22:20:58 -05:00
exec --no-startup-id xautolock -time 10 -locker '~/.i3/screensaver.sh'
2014-09-12 19:03:40 -04:00
2014-09-23 18:10:30 -04:00
set $bg #121212
2014-09-12 19:03:40 -04:00
set $fg #9f9f9f
set $hi #efef8f
set $ac #a0afa0
set $tx #040404
set $ia #8f8f8f
set $be #8faf9f
set $yw #ccdc90
set $gn #88b090
set $rd #e89393
## set some nice colors border background text
2014-12-14 17:28:14 -05:00
client.focused #767676 #767676 $tx
2014-08-11 15:14:46 -04:00
client.unfocused $bg $bg $ia
client.focused_inactive $bg $bg $ac
client.urgent $rd $rd $tx
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
2014-09-12 19:03:40 -04:00
status_command i3status --config ~/.i3/i3status.conf
2015-02-11 18:44:36 -05:00
font -*-*-*-*-*-*-8-*-*-*-*-*-*-*
2015-02-20 17:00:42 -05:00
mode hide
2015-02-11 18:44:36 -05:00
#position top
2014-10-05 15:30:26 -04:00
modifier Mod4
2014-12-07 13:52:33 -05:00
tray_output primary
2015-02-06 07:17:24 -05:00
tray_output LVDS1
2014-09-12 19:03:40 -04:00
colors {
background $bg
statusline $fg
separator $hi
focused_workspace $gn $bg $ac
active_workspace $gn $ac $tx
inactive_workspace $bg $bg $ia
urgent_workspace $rd $bg $ac
}
2014-08-11 15:14:46 -04:00
}
new_window pixel 1
# split in vertical orientation
bindsym $mod+v split h
# split in horizontal orientation
2015-01-15 12:42:10 -05:00
bindsym $mod+shift+v split v
2014-08-11 15:14:46 -04:00
# split in vertical orientation
# resize window (you can also use the mouse for that)
mode "resize" {
2014-09-12 19:03:40 -04:00
# These bindings trigger as soon as you enter the resize mode
2014-12-27 04:35:51 -05:00
bindsym $mod+h resize shrink width 1 px or 1 ppt
bindsym $mod+j resize grow height 1 px or 1 ppt
bindsym $mod+k resize shrink height 1 px or 1 ppt
bindsym $mod+l resize grow width 1 px or 1 ppt
2014-09-12 19:03:40 -04:00
# same bindings, but for the arrow keys
2014-12-27 04:35:51 -05:00
bindsym Left resize shrink width 15 px or 15 ppt
bindsym Down resize grow height 15 px or 15 ppt
bindsym Up resize shrink height 15 px or 15 ppt
bindsym Right resize grow width 15 px or 15 ppt
2014-09-12 19:03:40 -04:00
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
2014-08-11 15:14:46 -04:00
}
2014-12-07 13:52:33 -05:00
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
2014-08-11 15:14:46 -04:00
floating_modifier $mod
2015-02-11 18:44:36 -05:00
bindsym $mod+z exec xdotool click 3
2015-02-22 16:26:41 -05:00
bindsym $mod+shift+z exec xdotool click 1
2015-01-27 15:38:30 -05:00
bindsym $mod+i border normal
bindsym $mod+shift+i border 1pixel
2015-02-22 16:26:41 -05:00
bindsym $mod+Return exec uxterm
bindsym $mod+shift+Return exec uxterm -e "cd `xcwd`&&/bin/zsh"
2015-01-15 12:42:10 -05:00
bindsym $mod+shift+c kill
2014-10-05 15:30:26 -04:00
bindsym $mod+c move absolute position center
2015-03-02 11:20:59 -05:00
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10 -time 0 -steps 1"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10 -time 0 -steps 1"
2014-12-07 13:52:33 -05:00
bindsym XF86TouchpadToggle exec "synclient TouchpadOff=$(synclient -l | grep -c 'TouchpadOff.*=.*0')"
bindsym XF86AudioRaiseVolume exec "amixer set Master 5%+ unmute"
bindsym XF86AudioLowerVolume exec "amixer set Master 5%- unmute"
bindsym XF86AudioMute exec "amixer -D pulse set Master 1+ toggle"
2014-08-11 15:14:46 -04:00
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
2015-01-15 12:42:10 -05:00
bindsym $mod+shift+h move left
bindsym $mod+shift+j move down
bindsym $mod+shift+k move up
bindsym $mod+shift+l 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
2014-08-11 15:14:46 -04:00
bindsym $mod+f fullscreen
2015-01-27 15:38:30 -05:00
bindsym $mod+shift+f fullscreen global
2014-08-11 15:14:46 -04:00
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
2015-01-15 12:42:10 -05:00
bindsym $mod+shift+space floating toggle
2014-08-11 15:14:46 -04:00
bindsym $mod+space focus mode_toggle
2014-12-18 21:24:43 -05:00
# bindsym $mod+space workspace back_and_forth
bindsym $mod+o workspace back_and_forth
bindsym $mod+bracketleft workspace prev
bindsym $mod+bracketright workspace next
2014-08-11 15:14:46 -04:00
bindsym $mod+a focus parent
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
2015-01-15 12:42:10 -05:00
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+r reload
bindsym $mod+shift+minus exec --no-startup-id banshee --previous
bindsym $mod+shift+equal exec --no-startup-id banshee --next
2014-10-05 15:30:26 -04:00
bindsym $mod+minus exec --no-startup-id banshee --pause
bindsym $mod+equal exec --no-startup-id banshee --play
2014-08-22 22:29:44 -04:00
# To initialize wallpapers, run:
2014-09-07 11:06:54 -04:00
# export DISPLAY=:0.0;mkdir -p ~/.i3/wall;cp ~/ownCloud/wallpaper/std/* ~/.i3/wall;cd ~/.i3/wall;rename -v 's/(.* )+//' *;mogrify -resize `xrandr -q|perl -F'\s|,' -lane "/^Sc/&&print join '',@F[8..10]"`^ -verbose -gravity center -format png *;rm *.jpg;rm *.jpeg
2014-11-08 12:34:11 -05:00
bindsym $mod+grave exec "i3lock -di `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`"
2015-01-15 12:42:10 -05:00
bindsym $mod+shift+grave exec "sudo pm-suspend | i3lock -di `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`"
2014-08-22 22:29:44 -04:00
# Tees the filename to /tmp/wall for debugging
2014-08-11 15:14:46 -04:00
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+q restart
# exit i3 (logs you out of your X session)
2015-01-15 12:42:10 -05:00
bindsym $mod+shift+q 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'"
2014-08-11 15:14:46 -04:00
# resize window (you can also use the mouse for that)
bindsym $mod+r mode "resize"
2014-08-22 19:37:05 -04:00
bindsym $mod+u focus parent
bindsym $mod+shift+u focus child
bindsym $mod+m focus mode_toggle
2014-09-12 19:03:40 -04:00
# wallOM initialization:
# echo -n "Resolution: ";read a;mkdir -p ~/.i3/wallOM;cp ~/ownCloud/wallpaper/std/* ~/.i3/wallOM;cd ~/.i3/wallOM;rename -v 's/(.* )+//' *;mogrify -resize $a^ -verbose -gravity center -format png *;rm *.jpg;rm *.jpeg
# feh doesn't work with 2 monitors, so the wallOM folder exists for computers with 2 monitors
2014-08-11 15:14:46 -04:00
2014-09-12 19:03:40 -04:00
#wallpaper
2015-01-15 12:42:10 -05:00
bindsym $mod+shift+w exec "~/.i3/wall.sh"
2014-09-12 19:03:40 -04:00
exec --no-startup-id "~/.i3/wall.sh"
#startup
2014-09-20 23:09:59 -04:00
exec --no-startup-id xmodmap ~/.xmodmap
2014-09-12 19:03:40 -04:00
exec --no-startup-id /home/stonewareslord/xmodmap.sh
2014-10-14 16:15:59 -04:00
exec --no-startup-id i3-msg /usr/bin/redshift t -l 36.3:-80.3 -t 6500:4000
2014-12-27 04:35:51 -05:00
# exec --no-startup-id i3-msg 'workspace 2; exec /usr/bin/firefox'
2015-02-22 16:26:41 -05:00
exec --no-startup-id i3-msg 'workspace 1; exec /usr/bin/uxterm'
2014-11-22 19:14:54 -05:00
exec --no-startup-id /usr/bin/shutter --min_at_startup
2014-09-23 18:10:30 -04:00
exec --no-startup-id /usr/bin/screen -dmS syncthing /home/stonewareslord/Applications/syncthing/syncthing
2015-01-14 22:27:59 -05:00
exec --no-startup-id "sleep 25;/usr/bin/owncloud"
2014-09-23 18:10:30 -04:00
exec --no-startup-id /usr/bin/gtk-redshift -l 36.3:-80.3 -t 6500:4000
2015-01-28 09:05:34 -05:00
exec --no-startup-id /usr/bin/parcellite
2014-09-23 18:10:30 -04:00
exec --no-startup-id /usr/bin/numlockx
2015-03-01 22:20:58 -05:00
bindsym $mod+p exec dmenu_run -p Run -l 5 -i
2015-03-02 11:20:59 -05:00
bindsym $mod+shift+p exec "~/.i3/pass.sh"
2015-03-01 22:20:58 -05:00
#exec --no-startup-id /usr/bin/synapse -s
2014-12-31 10:24:31 -05:00
exec --no-startup-id /usr/bin/zeal
2015-02-10 10:04:45 -05:00
exec --no-startup-id xset -b
2014-09-12 19:03:40 -04:00
# vim: ts=2:sw=2:et