2020-02-07 16:32:59 +00:00
|
|
|
#
|
|
|
|
# wm independent hotkeys
|
|
|
|
#
|
|
|
|
|
|
|
|
# terminal emulator
|
|
|
|
super + Return
|
2021-04-16 10:07:15 +00:00
|
|
|
$TERMINAL
|
2020-02-07 16:32:59 +00:00
|
|
|
|
|
|
|
# program launcher
|
|
|
|
super + d
|
2022-03-26 14:08:10 +00:00
|
|
|
LANG=C rofi -show
|
2020-02-07 16:32:59 +00:00
|
|
|
|
|
|
|
# password manger
|
|
|
|
super + p
|
2022-03-26 14:08:10 +00:00
|
|
|
LANG=C rofi-pass
|
2020-02-07 16:32:59 +00:00
|
|
|
|
|
|
|
# make sxhkd reload its configuration files:
|
|
|
|
super + Escape
|
|
|
|
pkill -USR1 -x sxhkd
|
|
|
|
|
2021-03-30 20:59:59 +00:00
|
|
|
super + Print
|
|
|
|
screenshot
|
2021-07-09 22:52:35 +00:00
|
|
|
super + ctrl + Print
|
|
|
|
screenshot no_upload
|
|
|
|
|
2020-02-07 16:32:59 +00:00
|
|
|
|
|
|
|
super + Pause
|
2022-03-21 21:20:12 +00:00
|
|
|
menu-shutdown
|
2020-02-07 16:32:59 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# wm independent media hotkeys
|
|
|
|
#
|
|
|
|
|
|
|
|
XF86AudioPlay
|
2021-02-24 15:19:38 +00:00
|
|
|
playerctl play-pause
|
2020-02-07 16:32:59 +00:00
|
|
|
XF86AudioPause
|
2021-02-24 15:19:38 +00:00
|
|
|
playerctl pause
|
2020-02-07 16:32:59 +00:00
|
|
|
XF86AudioNext
|
2021-02-24 15:19:38 +00:00
|
|
|
playerctl next
|
2020-02-07 16:32:59 +00:00
|
|
|
XF86AudioPrev
|
2021-02-24 15:19:38 +00:00
|
|
|
playerctl prev
|
2020-02-07 16:32:59 +00:00
|
|
|
XF86AudioRaiseVolume
|
2021-04-30 14:31:30 +00:00
|
|
|
playerctl volume 0.1+
|
|
|
|
#mpc volume +1
|
2020-02-07 16:32:59 +00:00
|
|
|
XF86AudioLowerVolume
|
2021-04-30 14:31:30 +00:00
|
|
|
playerctl volume 0.1-
|
|
|
|
#mpc volume -1
|
2020-02-07 16:32:59 +00:00
|
|
|
#XF86AudioMute
|
|
|
|
# mpc toggleoutput
|
|
|
|
|
2020-02-14 11:59:23 +00:00
|
|
|
XF86MonBrightnessUp
|
2022-03-22 11:28:39 +00:00
|
|
|
backlight -inc 5
|
2020-02-14 11:59:23 +00:00
|
|
|
XF86MonBrightnessDown
|
2022-03-22 11:28:39 +00:00
|
|
|
backlight -dec 5
|
2020-02-14 11:59:23 +00:00
|
|
|
|
2020-11-18 15:07:34 +00:00
|
|
|
super + v
|
2021-11-26 16:10:24 +00:00
|
|
|
freetube "$(xclip -o -selection clipboard)"
|
2021-12-12 20:18:38 +00:00
|
|
|
super + shift + v
|
|
|
|
mpv $(xclip -o -selection clipboard); notify-send "mpv media playback finished"
|
2021-11-26 16:10:24 +00:00
|
|
|
|
2020-02-07 16:32:59 +00:00
|
|
|
#
|
|
|
|
# bspwm hotkeys
|
|
|
|
#
|
|
|
|
|
|
|
|
# quit/restart bspwm
|
|
|
|
super + shift + r
|
|
|
|
bspc wm -r
|
|
|
|
|
|
|
|
# close and kill
|
|
|
|
super + {_,shift + }q
|
|
|
|
bspc node -{c,k}
|
|
|
|
|
|
|
|
# alternate between the tiled and monocle layout
|
|
|
|
super + m
|
2021-04-16 10:07:15 +00:00
|
|
|
bsp-layout cycle --layouts tall,wide,grid,rgrid,monocle
|
|
|
|
#bspc desktop -l next
|
2020-02-07 16:32:59 +00:00
|
|
|
|
2021-04-30 14:31:30 +00:00
|
|
|
super + shift + m
|
|
|
|
bsp-layout set tiled
|
|
|
|
|
2020-02-07 16:32:59 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
|
#
|
|
|
|
# state/flags
|
|
|
|
#
|
|
|
|
|
|
|
|
# set the window state
|
|
|
|
super + {t,shift + t,s,f}
|
|
|
|
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
|
|
|
|
|
|
|
# set the node flags
|
2020-07-15 13:50:56 +00:00
|
|
|
super + ctrl + {m,comma,period,p}
|
2020-02-07 16:32:59 +00:00
|
|
|
bspc node -g {marked,locked,sticky,private}
|
|
|
|
|
|
|
|
#
|
|
|
|
# focus/swap
|
|
|
|
#
|
|
|
|
|
|
|
|
# focus the node in the given direction
|
|
|
|
super + {_,shift + }{h,j,k,l}
|
|
|
|
bspc node -{f,s} {west,south,north,east}
|
|
|
|
|
|
|
|
# focus the node for the given path jump
|
2020-02-18 00:45:57 +00:00
|
|
|
super + {p,b}
|
|
|
|
bspc node -f @{parent,brother}
|
2020-02-07 16:32:59 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# focus the last node/desktop
|
|
|
|
super + {grave,Tab}
|
|
|
|
bspc {node,desktop} -f last
|
|
|
|
|
|
|
|
# focus the older or newer node in the focus history
|
|
|
|
super + {o,i}
|
|
|
|
bspc wm -h off; \
|
|
|
|
bspc node {older,newer} -f; \
|
|
|
|
bspc wm -h on
|
|
|
|
|
|
|
|
# focus or send to the given desktop
|
|
|
|
super + {_,shift + }{1-9,0}
|
|
|
|
bspc {desktop -f,node -d} '^{1-9,10}'
|
2020-03-31 22:15:46 +00:00
|
|
|
super + {_,shift + } dead_circumflex
|
2021-09-13 15:31:01 +00:00
|
|
|
bspc {desktop -f,node -d} 'focus'
|
2020-02-07 16:32:59 +00:00
|
|
|
|
2021-11-21 13:58:26 +00:00
|
|
|
super + shift + p
|
|
|
|
bspc desktop 'presenter1' --swap 'presenter2'
|
|
|
|
|
2020-02-07 16:32:59 +00:00
|
|
|
#
|
|
|
|
# preselect
|
|
|
|
#
|
|
|
|
|
|
|
|
# preselect the direction
|
|
|
|
super + ctrl + {h,j,k,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 + {h,j,k,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 + {h,j,k,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}
|