diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-02-12 19:48:26 +0100 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-02-12 19:48:26 +0100 |
commit | 5d1a5573fe6c5a80e523979a3b725eff0913065e (patch) | |
tree | 05f1ae8e81c5d5dade3771e08fc457c6f1479e81 /config | |
parent | f7ac47a1102006842d074146237c756648478675 (diff) | |
download | dotfiles-5d1a5573fe6c5a80e523979a3b725eff0913065e.tar.gz dotfiles-5d1a5573fe6c5a80e523979a3b725eff0913065e.tar.bz2 dotfiles-5d1a5573fe6c5a80e523979a3b725eff0913065e.zip |
add bspwm and sxhkd confs
Diffstat (limited to 'config')
-rwxr-xr-x | config/bspwm/bspwmrc | 25 | ||||
-rwxr-xr-x | config/bspwm/colors | 6 | ||||
-rw-r--r-- | config/sxhkd/sxhkdrc | 200 |
3 files changed, 231 insertions, 0 deletions
diff --git a/config/bspwm/bspwmrc b/config/bspwm/bspwmrc new file mode 100755 index 0000000..7b9d7a8 --- /dev/null +++ b/config/bspwm/bspwmrc @@ -0,0 +1,25 @@ +#! /bin/sh +source ~/.config/bspwm/colors + +bspc config border_width 2 +bspc config window_gap 12 + +bspc config split_ratio 0.50 + +bspc config focused_border_color $COLOR0 +bspc config active_border_color $COLOR0 +bspc config normal_border_color $COLOR11 + +bspc config borderless_monocle true +bspc config gapless_monocle true +bspc config apply_floating_atom true +bspc config history_aware_focus true +bspc config ignore_ewmh_focus true + +bspc rule -a Gimp desktop=^8 floating=on follow=on +bspc rule -a Inkscape desktop=^7 floating=on + + +bspc monitor -d I II III IV V VI VII VIII IX X XI XII XIII + +compton & diff --git a/config/bspwm/colors b/config/bspwm/colors new file mode 100755 index 0000000..63977ca --- /dev/null +++ b/config/bspwm/colors @@ -0,0 +1,6 @@ +#! /bin/sh +source ~/.colors + +bspc config focused_border_color $COLOR11 +bspc config active_border_color $COLOR11 +bspc config normal_border_color $COLOR0 diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc new file mode 100644 index 0000000..e3340f9 --- /dev/null +++ b/config/sxhkd/sxhkdrc @@ -0,0 +1,200 @@ +# +# bspwm hotkeys +# + +grave ; shift + c + ~/.ratpoison/wp change + +grave ; f + ~/.ratpoison/spotlight + +grave ; alt + Escape + bspc quit + +grave ; x + bspc window -c + +grave ; X + bspc window -k + +grave ; t + bspc desktop -l next + +grave ; b + bspc desktop -B + +grave ; {u,U,o} + bspc window -t {floating,pseudo_tiled,fullscreen} + +grave ; {grave,Tab} + bspc {window,desktop} -f last + +grave ; apostrophe + bspc window -s last + +#grave ; {o,i} +# bspc control --record-history off; \ +# bspc window {older,newer} -f; \ +# bspc control --record-history on + +#grave ; y +# bspc window -w last.manual + +grave ; m + bspc window -s biggest + +grave ; {h,j,k,l} + bspc window -f {left,down,up,right} + +grave ; c; {h,j,k,l} + bspc window -s {left,down,up,right} + +#grave ; {_,shift + }c +# bspc window -f {next,prev} + +grave ; {comma,period} + bspc desktop -C {backward,forward} + +grave ; bracket{left,right} + bspc desktop -f {prev,next} + +grave ; s ; {h,j,k,l} + bspc window -p {left,down,up,right} + +grave ; ctrl + {_,shift + }space + bspc {window -p cancel,desktop -c} + +hyper + {h,j,k,l} + bspc window -e {left -10,down +10,up -10,right +10} + +hyper + alt + {h,j,k,l} + bspc window -e {right -10,up +10,down -10,left +10} + +grave ; {1-9} + bspc window -f {1-9} + + +grave ; ctrl + {1-9} + bspc window -r 0.{1-9} + +{_,alt + }{F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12} + bspc {desktop -f,window -d} ^{1-9,10,11,12} +{_,alt + } shift + F12 + bspc {desktop -f,window -d} ^13 + +~button1 + bspc pointer -g focus + +hyper + button{1-3} + bspc pointer -g {move,resize_side,resize_corner} + +# Move floating windows (requires baskerville's xdo pacacur -S xdo-git) +alt + {h,l,k,j} + xdo move {-x -20,-x +20,-y -20,-y +20} + +# Resize floating windows +alt + shift + {h,l,k,j} + xdo resize {-w -20,-w +20,-h -20,-h +20} + +grave ; !button{1-3} + bspc pointer -t %i %i + +grave ; @button{1-3} + bspc pointer -u + +# +# wm independent hotkeys +# + +grave ; i + xdotool key shift+Insert + +grave ; space + urxvt + +grave ; slash + ~/.ratpoison/create_frame + +super + u + uzbl-tabbed + +super + f + firefox + +super + s + skype + +super + shift + L + i3lock -n -i ~/.wallpaper.png -z + + +# +# Clipboard hotkeys +# + +grave ; p ; {1-9} + ~/.ratpoison/clipboard paste {1-9} + +grave ; p ; p + ~/.ratpoison/clipboard menu_paste + +grave ; p ; u + ~/.ratpoison/clipboard push + +grave ; p ; o + ~/.ratpoison/clipboard pop + +grave ; y ; {1-9} + ~/.ratpoison/clipboard set {1-9} + +grave ; y ; y + ~/.ratpoison/clipboard menu_set + +grave ; shift + p + xclip -o | curl -F 'sprunge=<-' http://sprunge.us | xclip + + +# +# music control +# + +super + space + mpc -h 127.0.0.1 toggle && ~/.ratpoison/panel/music > "$PANEL_FIFO" + +super + Right + mpc -h 127.0.0.1 next && echo "p`mpc current`" | cut --bytes 1-40> "$PANEL_FIFO" + +super + Left + mpc -h 127.0.0.1 prev && echo "p`mpc current`" | cut --bytes 1-40 > "$PANEL_FIFO" + +super + Up + mpc -h 127.0.0.1 volume +5 && mpc -h 127.0.0.1 volume | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ /M/' > "$PANEL_FIFO" + +super + Down + mpc -h 127.0.0.1 volume -5 && mpc -h 127.0.0.1 volume | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ /M/' > "$PANEL_FIFO" + +XF86AudioRaiseVolume + amixer -q set Master 5+ && volume -f 'V%i' > "$PANEL_FIFO" + +XF86AudioLowerVolume + amixer -q set Master 5- && volume -f 'V%i' > "$PANEL_FIFO" +# +# brightness controls +# + + +XF86MonBrightnessUp + xbacklight -inc 10 + +XF86MonBrightnessDown + xbacklight -dec 2 + +XF86KbdBrightnessUp + kbdlight up 1 + +XF86KbdBrightnessDown + kbdlight down 1 + +# make sxhkd reload its configuration files: +grave ; Escape + pkill -USR1 -x sxhkd |