dotfiles/dot_config/sxhkd/sxhkdrc

261 lines
4.7 KiB
Plaintext

#
# wm independent hotkeys
#
# terminal emulator
XF86Explorer
alacritty
super + Return
alacritty
# program launcher
super + d
i3-rofi
# make sxhkd reload its configuration files:
super + shift + alt + Escape
pkill -USR1 -x sxhkd
#
# bspwm hotkeys
#
# quit bspwm normally
super + alt + Escape
bspc quit
# close and kill
super + {_,shift + }q
bspc node -{c,k}
# alternate between the tiled and monocle layout
button11
bspc desktop -l next
super + m
bspc desktop -l next
# send the newest marked node to the newest preselected node
super + y
bspc node newest.marked.local -n newest.!automatic.local
# swap the current node and the biggest node
super + g
bspc node -s biggest.local
# # insert receptacle, or clear receptacles on current desktop
# super + {_,shift} + r
# {bspc node -i,for win in `bspc query -N -d -n .leaf.!window`; do bspc node $win -k; done}
#
# state/flags
#
#
super + w
firefox
# set the window state
super + {t,shift + t,s,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
# set the node flags
super + ctrl + {m,x,y,z,h}
bspc node -g {marked,locked,sticky,private,hidden}
#
# focus/swap
#
# focus the node in the given direction
super + {_,shift + }{j,k,i,l}
bspc node -{f,s} {west,south,north,east}
# focus the node for the given path jump
super + {p,b,comma,period}
bspc node -f @{parent,brother,first,second}
# focus the next/previous node in the current desktop
super + {_,shift + }c
bspc node -f {next,prev}.local
# focus the next/previous desktop in the current monitor
super + bracket{left,right}
bspc desktop -f {prev,next}.local
super + {button8, button9}
bspc desktop -f {prev,next}.local
# focus the last node/desktop
super + {Escape,Tab}
bspc {node,desktop} -f last
# focus the older or newer node in the focus history
super + {_, shift +} Tab
bspc wm -h off; \
bspc node {older,newer} -f; \
bspc wm -h on
super + r
bspc node @/ -R 90
super + shift + r
bspc node -f @parent; \
bspc node -R 90
#
# preselect
#
# preselect the direction
super + ctrl + {j,k,i,l}
bspc node -p {west,south,north,east}
# preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# cancel the preselection for the focused node
super + ctrl + space
bspc node -p cancel
# cancel the preselection for the focused desktop
super + ctrl + shift + space
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
#
# move/resize
#
# expand a window by moving one of its side outward
super + alt + {j,k,i,l}
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
# contract a window by moving one of its side inward
super + alt + shift + {j,k,i,l}
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
# move a floating window
super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}
# media keys
XF86AudioRaiseVolume
amixer -D pulse sset Master 1%+
super + Prior
amixer -D pulse sset Master 1%+
XF86AudioLowerVolume
amixer -D pulse sset Master 1%-
super + Next
amixer -D pulse sset Master 1%-
XF86AudioMute
amixer -D pulse set Master toggle
XF86AudioPlay
mpc toggle
XF86AudioPause
mpc toggle
XF86AudioNext
mpc next
XF86AudioPrev
mpc prev
XF86AudioStop
mpc toggle
XF86MonBrightnessUp
brightnessctl set 5%+
XF86MonBrightnessDown
brightnessctl set 5%-
# Bascht
super + v
rofi-pass
super + x
rofi-clipboard
super + a
rofi-marks
super + o
tdrop -a -w 800 -h 400 -y -500 -x -900 pcmanfm
super + u
tdrop -a -w -4 -y "30" -h 70% -s dropdown alacritty
super + e
tdrop -a -w 50% -h 50% -y 25% -x 25% -s dropdown emacs
Print
i3-screenshot
shift + Print
i3-screenshot -s
control + shift + Print
i3-dropshot
control + alt + l
i3-blur-lock
super + 1
bspc desktop -f work
super + 2
bspc desktop -f web
super + 3
bspc desktop -f comm
super + 4
bspc desktop -f docs
super + 5
bspc desktop -f media
super + 6
bspc desktop -f files
super + 7
bspc desktop -f graphics
super + 8
bspc desktop -f dump
super + shift + 1
bspc node -d work
super + shift + 2
bspc node -d web
super + shift + 3
bspc node -d comm
super + shift + 4
bspc node -d docs
super + shift + 5
bspc node -d media
super + shift + 6
bspc node -d files
super + shift + 7
bspc node -d graphics
super + shift + 8
bspc node -d dump
# un/hide currently active window
super + h
bspc node -g hidden
super + shift + h
bspc node $(bspc query -N -n .hidden | tail -n1) -g hidden=off
# super + o
# if ! xdotool search --onlyvisible --classname 'scratchpad' windowunmap; then
# if ! xdotool search --classname 'scratchpad' windowmap; then
# alacritty --title 'scratchpad' --name 'scratchpad' -e tmux a;
# bspc node --swap biggest;
# fi;
# fi