Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
212 lines (157 sloc) 4.67 KB
## ${XDG_CONFIG_HOME}/bspwm/sxhkdrc
########################
## Internal (bspwm): ##
########################
#+ quit bspwm
super + {_,shift} + q
{bspc query -T > "$BSPWM_TREE"; \
bspc query -H > "$BSPWM_HISTORY"; \
bspc quit,\
bspc quit 1}
#+ close focused window
super + Delete
bspc window --close
#+ kill focused window
super + Pause
bspc window --kill
#+ (hide|unhide) managed windows
super + grave
bspc control --toggle-visibility
#+ (lock|unlock) focused window
super + x
bspc window --toggle locked
#+ balance frames
super + b
bspc desktop --balance
#+ re-balance layout
super + shift + m
bspc desktop --equalize && bspc window --swap biggest
#+ cycle (monocole|tiled) layout
super + m
bspc desktop --layout next
#+ float/unfloat, fullscreen/framed
super + {f,o}
bspc window --toggle {floating,fullscreen}
#+ jump between last frame, or view last desktop
super + {Tab,slash}
bspc {window,desktop} --focus last
#+ change focus or move window in direction
super + {_,shift + }{h,j,k,l}
bspc window {--focus,--swap} {left,down,up,right}
#+ transplant window
super + t
bspc window --to-window last.manul
#+ cycle all windows backward/forward
super + {_,shift +} space
bspc window --focus {next,prev}
#+ rotate all windows completely/forward
super + {_,shift +,control +} r
bspc desktop --rotate {90,180,270}
#+ flip layout
super + {_,shift +} v
bspc desktop --flip {vertical,horizontal}
#+ circulate all windows forward/backward
super + {_,shift +} c
bspc desktop --circulate {forward,backward}
#+ cycle to next/prev desktop
super + {comma,period}
bspc desktop --focus {prev,next}
#+ cycle to next/prev desktop
super + shift + {comma,period}
bspc window --to-desktop {prev,next}
#+ cycle to next/prev occupied desktop
super + {n,p}
bspc desktop --focus {next,prev}.occupied || bspc desktop --focus ^1
#+ manually split frame in direction
super + {minus,shift + minus,shift + equal,equal}
bspc window --presel {left,down,up,right}
#+ set common ratios for manual splitting
super + ctrl + {1-9}
bspc window --ratio 0.{1-9}
#+ cancel presel and switch back to automatic mode
super + BackSpace
bspc window --presel cancel
#+ enlarge window in direction
super + ctrl + {h,j,k,l}
bspc window --edge {left -10,down +10,up -10,right +10}
#+ shrink window in direction
super + ctrl + shift + {h,j,k,l}
bspc window --edge {right -10,up +10,down -10,left +10}
#+ view desktop or send focused window to desktop
super + {_,shift + }{1-9,0}
bspc {desktop --focus,window --to-desktop} ^{1-9,10}
########################
## External: ##
########################
#+ reload sxhkd config
super + shift + s
pkill -USR1 -x sxhkd
#+ spawn rxvt-unicode with tmux
super + Return
urxvt -e tmux -S /tmp/user-keep/h/tmux/xorg
#+ spawn rxvt-unicode
super + shift + Return
urxvt
#+ spawn application launcher
super + e
interrobang
#+ disable/enable/hide/unhide the mouse
super + Escape
zaprat --toggle
#+ refresh all windows
super + shift + b
xrefresh
#+ grab screenshot of current desktop
super + shift + g
import -window root /howl/foto/shot/$(date '+%Y_%m_%d-%H%M%S').png
#+ mplayer daemon (toggle|stop)
super + {_,shift +} d
mifo {--toggle,--stop}
#+ mplayer daemon toggle, stop
XF86Audio{Play,Stop}
mifo {--toggle,--stop}
#+ mplayer daemon (random)
super + z
mifo --random
#+ mplayer daemon repeat (on|off)
super + {_,shift +} backslash
mifo {--repeat off ; mifo --repeat on, --repeat off}
#+ mplayer daemon (prev|next)
super + bracket{left,right}
mifo {--prev,--next}
#+ mplayer daemon next, prev
XF86Audio{Next,Prev}
mifo {--next,--prev}
#+ pulseaudio mute (toggle|on|off)
super + {_,shift +,ctrl +} u
pulsevol {--mute,--mute on,--mute off}
#+ pulseaudio toggle
XF86AudioMute
pulsevol --mute
#+ pulseaudio raise volume by 5
XF86AudioRaiseVolume
pulsevol --increase 2
#+ pulseaudio lower volume by 5
XF86AudioLowerVolume
pulsevol --decrease 2
#+ if found, focus on existing dwb instance, else exec dwb
super + w
/bin/sh -c 'if [[ -n $(pidof dwb) ]] ; then if [[ "${$(bspc query -T | grep "^ III")[-1]}" != "*" ]] ; then bspc desktop --focus III ; fi ; else exec dwb ; fi'
#+ simple clipboard in/out synchronizer
super + y
/howl/code/zsh/xclip-wrapper
########################
## Mouse: ##
########################
# i do not use these #
# but have them anyway #
########################
~button1
bspc pointer --grab focus
super + button{1-3}
bspc pointer --grab {move,resize_side,resize_corner}
super + !button{1-3}
bspc pointer --track %i %i
super + @button{1-3}
bspc pointer --ungrab
# vim: set ft=sxhkdrc: