.
This commit is contained in:
@@ -1,105 +1,127 @@
|
||||
#
|
||||
# wm independent hotkeys
|
||||
#
|
||||
|
||||
Super_L ; Return
|
||||
kitty
|
||||
|
||||
# # Open kitty
|
||||
# super + Return
|
||||
# kitty
|
||||
# Open terminal
|
||||
super + Return
|
||||
xfce4-terminal
|
||||
|
||||
# Open floating kitty
|
||||
# Super_L ; shift + Return
|
||||
# bsp-float kitty
|
||||
# Open floating terminal
|
||||
super + shift + Return
|
||||
bsp-float xfce4-terminal
|
||||
|
||||
# launch program (drun)
|
||||
Super_L ; @space
|
||||
super + @space
|
||||
rofi -show drun -show-icons
|
||||
|
||||
# launch program (standard run)
|
||||
# Super_L ; shift + @space
|
||||
# rofi -show run
|
||||
super + shift + @space
|
||||
rofi -show run
|
||||
|
||||
# make sxhkd reload its configuration files:
|
||||
Super_L ; Escape
|
||||
super + 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
|
||||
super + o
|
||||
qutesearch
|
||||
|
||||
# Preselect below and start a qutebrowser search
|
||||
super + p
|
||||
bspc node -p south -o 0.01 \
|
||||
&& qutesearch \
|
||||
|| bspc node -p cancel
|
||||
|
||||
# Grab color
|
||||
Print
|
||||
grabc | xclip -sel clipboard
|
||||
|
||||
# Show keybinds
|
||||
Super_L ; slash
|
||||
super + slash
|
||||
sxhkd-help
|
||||
|
||||
# Show clipmenu
|
||||
Super_L ; v
|
||||
super + v
|
||||
xfce4-popup-clipman
|
||||
|
||||
# Exit session
|
||||
# Super_L ; shift + q
|
||||
# xfce4-session-logout
|
||||
|
||||
# Lock screen
|
||||
Super_L ; q
|
||||
super + q
|
||||
xflock4
|
||||
|
||||
# Lock screen
|
||||
super + shift + q
|
||||
xfce4-session-logout
|
||||
|
||||
# Open task manager
|
||||
Super_L ; t
|
||||
super + t
|
||||
# Arguable how valuable this is tbh
|
||||
bsp-float xfce4-taskmanager
|
||||
|
||||
# Screenshot region
|
||||
Super_L ; Print
|
||||
xfce4-screenshooter -r
|
||||
XF86Launch5
|
||||
flameshot gui
|
||||
# xfce4-screenshooter -r
|
||||
|
||||
# Manage audio profiles[57362;10u]
|
||||
super + shift + Pause
|
||||
le-audio
|
||||
|
||||
# Cycle audio profile on default sink
|
||||
super + Pause
|
||||
le-audio -afc
|
||||
|
||||
#
|
||||
# bspwm hotkeys
|
||||
#
|
||||
|
||||
# quit/restart bspwm
|
||||
super + shift + {q,r}
|
||||
bspc {quit,wm -r}
|
||||
|
||||
# close and kill
|
||||
Super_L ; {_,shift + }w
|
||||
super + {_,shift + }w
|
||||
bspc node -{c,k}
|
||||
|
||||
# superernate between the tiled and monocle layout
|
||||
F3
|
||||
super + m
|
||||
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))"
|
||||
# swap the current node and the biggest window
|
||||
super + g
|
||||
bspc node -s biggest.window
|
||||
|
||||
#
|
||||
# state/flags
|
||||
#
|
||||
|
||||
# set the window state
|
||||
Super_L ; {z,shift + z,x,f}
|
||||
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
||||
# toggle window state
|
||||
super + c
|
||||
bspc node 'focused.!tiled' -t tiled || bspc node 'focused.!floating' -t floating
|
||||
# bspc node 'focused.!pseudo_tiled' -t pseudo_tiled
|
||||
|
||||
# toggle window fullscreen
|
||||
super + f
|
||||
bspc node 'focused.!tiled' -t tiled || bspc node 'focused.!fullscreen' -t fullscreen
|
||||
|
||||
|
||||
# set the node flags
|
||||
super + ctrl + {m,x,y,z}
|
||||
bspc node -g {marked,locked,sticky,private}
|
||||
|
||||
#
|
||||
# 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}
|
||||
# Focus the node in the given direction
|
||||
super + {h,j,k,l,Left,Down,Up,Right}
|
||||
bspc node -{f} {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
|
||||
# Rotate focus clockwise/counterclockwise
|
||||
super + {d,a}
|
||||
bspc node -f {next,prev}.local.window
|
||||
|
||||
# focus the last node/desktop
|
||||
super + {grave,Tab}
|
||||
@@ -116,11 +138,7 @@ super + {_,shift + }{1-6}
|
||||
# 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
|
||||
@@ -129,24 +147,42 @@ super + ctrl + space
|
||||
super + ctrl + shift + space
|
||||
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
||||
|
||||
# swap current window with preselection
|
||||
super + s
|
||||
bspc node -n last.\!automatic -t tiled
|
||||
|
||||
#
|
||||
# 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)
|
||||
super + s ; {h,j,k,l,Left,Down,Up,Right}
|
||||
STEP=20; SELECTION={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}
|
||||
super + shift + {h,j,k,l,Left,Down,Up,Right}
|
||||
bsp-smove {west,south,north,east,west,south,north,east}
|
||||
|
||||
# minimize current window, move down
|
||||
super + {z,bracketleft}
|
||||
bspc node -f 'focused.tiled' \
|
||||
&& bspc node -f north; \
|
||||
bspc node -z bottom 0 9999
|
||||
|
||||
# minimize current window, move up
|
||||
super + {x,bracketright}
|
||||
bspc node -f 'focused.tiled' \
|
||||
&& bspc node -f south; \
|
||||
bspc node -z top 0 -9999
|
||||
|
||||
super + backslash
|
||||
bspc node -e
|
||||
|
||||
#
|
||||
# Program launching binds
|
||||
@@ -159,4 +195,28 @@ super + 9
|
||||
bitwarden
|
||||
|
||||
super + 0
|
||||
kitty --hold sh -c micro
|
||||
kitty -e micro
|
||||
|
||||
#
|
||||
# Media
|
||||
#
|
||||
|
||||
# Play/pause track
|
||||
XF86AudioPlay
|
||||
playerctl play-pause
|
||||
|
||||
# Play/pause track
|
||||
Pause
|
||||
playerctl play-pause
|
||||
|
||||
# Previus track
|
||||
XF86AudioNext
|
||||
playerctl next
|
||||
|
||||
# Previous track
|
||||
XF86AudioPrev
|
||||
playerctl previous
|
||||
|
||||
# Stop track
|
||||
XF86AudioStop
|
||||
playerctl stop
|
||||
|
||||
Reference in New Issue
Block a user