# example sxhkdrc for use with dk ######################################################### # launcher super + p dmenu_run # terminal super + Return urxvt # Quick Start Applications super + F1 firefox-esr super + F2 urxvt -title mutt -e mutt super + F3 urxvt -title ranger -e ranger super + F4 urxvt -title slrn -e slrn # reload sxhkd super + shift + x pkill -USR1 -x sxhkd # reload dkrc super + shift + r $HOME/.config/dk/dkrc # restart dk super + ctrl + shift + r dkcmd restart # quit dk super + shift + q dkcmd exit # focus next or previous window super + {j,k} dkcmd win focus {next,prev} super + {Up,Down} dkcmd win focus {prev,next} # close window, swap tiled window in/out of master, cycle tiled windows in place super + {q,space,Tab} dkcmd win {kill,swap,cycle} # move in stack... super + shift + Up dkcmd win mvstack up super + shift + Down dkcmd win mvstack down # toggle fullscreen and fake fullscreen (enable manipulating fullscreen window) {_,super + }F11 dkcmd win {full,fakefull} # toggle floating, sticky, or scratchpad super + shift + {space,s} dkcmd win {float,stick} super + grave dkcmd win scratch # move window, signed (+/-) for relative changes, for tiled windows # y coord changes will move the window up/down the stack super + shift + {h,j,k,l} dkcmd win resize {x=-20,y=+20,y=-20,x=+20} # resize window, signed (+/-) for relative changes super + ctrl + {h,j,k,l} dkcmd win resize {w=-20,h=+20,h=-20,w=+20} # view, send, or follow to a workspace (by number) super + {_,shift + ,ctrl + }{1-6} dkcmd ws {view,send,follow} {1-6} # view, send, or follow to the next, previous, last active, # next non-empty, or prev non-empty workspace #super + {_,shift + ,ctrl + }{bracketleft,bracketright,BackSpace,Left,Right} # dkcmd ws {view,send,follow} {prev,next,last,prevne,nextne} # view, send, or follow to the next, previous, or last active monitor #super + {_,shift + ,ctrl + }{comma,period,backslash} # dkcmd mon {view,send,follow} {prev,next,last} # change active workspace layout or cycle between them #super + {t,r,m,g,s,w,f,u,c} # dkcmd set layout {tile,rtile,mono,grid,spiral,dwindle,none,tstack,cycle} super + t dkcmd set layout tile && notify-send "Layout" "Switched to Tile" super + m dkcmd set layout mono && notify-send "Layout" "Switched to Mono" super + g dkcmd set layout grid && notify-send "Layout" "Switched to Grid" super + s dkcmd set layout spiral && notify-send "Layout" "Switched to Spiral" super + w dkcmd set layout dwindle && notify-send "Layout" "Switched to Dwindle" super + f dkcmd set layout none && notify-send "Layout" "Switched to Floating" super + u dkcmd set layout tstack && notify-send "Layout" "Switched to T-Stack" super + c dkcmd set layout cycle # change number of windows in master or first stack super + {_,shift + }{i,d} dkcmd set {master,stack} {+1,-1} # change gap width super + {equal,minus} dkcmd set gap {+5,-5} # change border widths #super + ctrl + {_,shift + }{equal,minus} # dkcmd set border {width,outer_width} {+1,-1} # vim:ft=sxhkdrc