dotfiles/config/sxhkd/sxhkdrc.old

163 lines
3.1 KiB
Plaintext

#
# wm independent hotkeys
#
Super_L ; Return
kitty
# # Open kitty
# super + Return
# kitty
# Open floating kitty
# Super_L ; shift + Return
# bsp-float kitty
# launch program (drun)
Super_L ; @space
rofi -show drun -show-icons
# launch program (standard run)
# Super_L ; shift + @space
# rofi -show run
# make sxhkd reload its configuration files:
Super_L ; Escape
pkill -USR1 -x sxhkd && notify-send 'Key daemon reloaded'
super + alt + Menu
le-keyboard && notify-send 'Remapped Keyboard'
# Start a qutebrowser search
Super_L ; o
qutesearch
# Show keybinds
Super_L ; slash
sxhkd-help
# Show clipmenu
Super_L ; v
xfce4-popup-clipman
# Exit session
# Super_L ; shift + q
# xfce4-session-logout
# Lock screen
Super_L ; q
xflock4
# Open task manager
Super_L ; t
# Arguable how valuable this is tbh
bsp-float xfce4-taskmanager
# Screenshot region
Super_L ; Print
xfce4-screenshooter -r
#
# bspwm hotkeys
#
# close and kill
Super_L ; {_,shift + }w
bspc node -{c,k}
# superernate between the tiled and monocle layout
F3
bspc desktop -l next
# send the newest marked node to the newest preselected node
Super_L ; y
bspc node newest.marked.local -n newest.!automatic.local
# Plumb selected text
Super_L ; c
zsh -c "$(sselp | goawk $(cat ~/plumber.awk))"
#
# state/flags
#
# set the window state
Super_L ; {z,shift + z,x,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
#
# focus/swap
#
# focus the node in the given direction
super + {w,a,s,d,j,k,i,l,Left,Down,Up,Right}
bspc node -f {west,south,north,east,west,south,north,east,west,south,north,east}
# Change window, counterclockwise/clockwise
{F1,F2}
bspc node -f {prev,next}.local.!hidden.window
# focus the next/previous desktop in the current monitor
super + bracket{left,right}
bspc desktop -f {prev,next}.local
# focus the last node/desktop
super + {grave,Tab}
bspc {node,desktop} -f last
# focus or send to the given desktop
super + {_,shift + }{1-6}
bspc {desktop -f,node -d} '^{1-6}'
#
# preselect
#
# preselect the direction
super + ctrl + shift {h,j,k,l,Left,Down,Up,Right}
bspc node -p {west,south,north,east,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
#
# Resize a window by moving one of its side outward/inward
# Super_L ; {w,a,s,d,j,k,i,l,Left,Down,Up,Right}
# STEP=20; SELECTION={1,2,3,4,1,2,3,4,1,2,3,4}; \
# bspc node -z $(echo "left -$STEP 0,bottom 0 $STEP,top 0 -$STEP,right $STEP 0" | cut -d',' -f$SELECTION) || \
# bspc node -z $(echo "right -$STEP 0,top 0 $STEP,bottom 0 -$STEP,left $STEP 0" | cut -d',' -f$SELECTION)
# move a floating window
super + {h,j,k,l}
bspc node -v {-30 0,0 20,0 -30,20 0}
# move a window
super + shift + {w,s,a,d,j,k,i,l,Left,Down,Up,Right}
bsp-smove {west,south,north,east,west,south,north,east,west,south,north,east}
#
# Program launching binds
#
super + 8
vesktop
super + 9
bitwarden
super + 0
kitty --hold sh -c micro