# example sxhkdrc for use with dk
#########################################################

# launcher
super + p
	dmenu_run

# terminal
super + shift + Return
	st

# Screenshot with Selection
{_,super + }@Print
	scrot {_,-s}

# Screenshot
Print
	scrot -cd 5 '%Y-%m-%d_%H-%M-%S.png' -e 'mv $f ~/Screenshots'

# reload sxhkd
super + shift + x
	pkill -USR1 -x sxhkd

# launcher
super + space
    dmenu_run

# terminal
super + t
    st

# Firefox
super + w
	firefox

# Suckless Surf
super + shift + w
	surf

# File Manager
super + f
	thunar

# Album Art
super + k
	kunst

# Editor
super + e
	subl3

# NCMPCPP
super + shift + m
	st ncmpcpp

# screenshot and selection capture
{_,super + }@Print
    scrot {_,-s}

# Volume Up
XF86AudioRaiseVolume
	/usr/bin/volume up

# Volume Down
XF86AudioLowerVolume
    /usr/bin/volume down

XF86Audio{Play,Stop,Prev,Next}
    mpc {toggle,stop,prev,next}

# Logout
super + x
	dmenu_logout

# Clipboard
super + shift + p
	clipmenu

###########################

# quit dk
super + shift + q
	dkcmd exit

# reload dkrc
super + shift + r
	dkcmd reload

# restart dk
super + ctrl + shift + r
	dkcmd restart

###########################

# focus next or previous window
super + {j,k}
	dkcmd win focus {next,prev}

# close window, swap tiled window in/out of master, cycle tiled windows in place
super + {q,space,Tab}
	dkcmd win {kill,swap,cycle}

# toggle fullscreen and fake fullscreen (enable manipulating fullscreen window)
{_,super + }F11
	dkcmd win {full,fakefull}

# toggle floating or sticky
super + shift + {space,s}
	dkcmd win {float,stick}

# move window, signed (+/-) for relative changes
super + shift + {h,j,k,l}
	dkcmd win resize {x=-10,y=+10,y=-10,x=+10}

# resize window, signed (+/-) for relative changes
super + ctrl + {h,j,k,l}
	dkcmd win resize {w=-10,h=+10,h=-10,w=+10}

# view, send, or follow to a workspace (by number)
super + {_,shift + ,ctrl + }{1-9,0}
	dkcmd ws {view,send,follow} {1-9,10}

# 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
super + ctrl + {t,m,g,s,w,f}
	dkcmd set layout {tile,mono,grid,spiral,dwindle,none}

# 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 width {+5,-5}

# change border widths
super + ctrl + {_,shift + }{equal,minus}
	dkcmd set border {width,outer_width} {+1,-1}
