helm/config/sxhkd/sxhkdrc
Henrik Lissner a75c64d04a
Rewrite to use flakes
This puts a hard dependency on 20.09, but that's to be expected.
2020-10-11 01:31:33 -04:00

124 lines
2.3 KiB
Plaintext

super + alt + Escape
bspc quit
super + {_,shift + }q
bspc node -{c,k}
super + t
bspc desktop -l next
super + apostrophe
bspc window -s last
# Attach to a detached session. If none is available create a new one, rather
# than attach to one that is already attached to elsewhere.
super + Return
xst -e bash -c "(tmux ls | grep -qEv 'attached|scratch' && tmux at) || tmux"
ctrl + super + Return
xst
super + grave
scratch
super + shift + grave
emacsclient -e '(open-scratch-frame)'
super + space
~/.config/dotfiles/bin/rofi/appmenu
super + Tab
~/.config/dotfiles/bin/rofi/windowmenu
super + backslash
~/.config/dotfiles/bin/rofi/passmenu
super + slash
~/.config/dotfiles/bin/rofi/filemenu -x
super + Escape
pkill -USR1 -x sxhkd
{Prior,Next}
:
#
##
## Toggle floating/fullscreen
super + {_,ctrl + }f
bspc node -t ~{floating,fullscreen}
super + {_,ctrl +}{h,j,k,l}
~/.config/dotfiles/bin/bspwm/focus {_,-m }{west,south,north,east}
super + shift + {_,ctrl +}{h,j,k,l}
~/.config/dotfiles/bin/bspwm/swap {_,-m }{west,south,north,east}
## Resize by preselection
super + alt + {1-9}
~/.config/dotfiles/bin/bspwm/presel 0.{1-9}
super + alt + {h,j,k,l}
bspc node -p {west,south,north,east}
super + alt + Return
~/.config/dotfiles/bin/bspwm/subtract-presel
super + alt + Delete
bspc node -p cancel
super + {_,shift +}{1-9,0}
bspc {desktop -f,node -d} {1-9,10};
# expand a window by moving one of its side outward
super + {Left,Down,Up,Right}
bspc node -z {left -40 0,bottom 0 40,top 0 -40,right 40 0}
# contract a window by moving one of its side inward
super + ctrl + {Left,Down,Up,Right}
bspc node -z {right -40 0,top 0 40,bottom 0 -40,left 40 0}
# move a floating window
super + shift + {Left,Down,Up,Right}
bspc node -v {-40 0,0 40,0 -40,40 0}
#
## Media keys
# screenshot region
Print
scrcap
# screencast region to mp4
super + Print
scrrec -s ~/recordings/$(date +%F-%T).mp4
# screencast region to gif
super + ctrl + Print
scrrec -s ~/recordings/$(date +%F-%T).gif
XF86MonBrightnessUp
light -A 5
XF86MonBrightnessDown
light -U 5
XF86AudioMute
amixer -q set Master toggle
XF86AudioLowerVolume
amixer -q set Master 10%- unmute
XF86AudioRaiseVolume
amixer -q set Master 10%+ unmute
XF86Audio{Play,Pause}
spt-send toggle
XF86AudioNext
spt-send next
XF86AudioPrev
spt-send prev
# X86Search