2021-11-22 11:11:58 +01:00
|
|
|
# BSPWM
|
|
|
|
# Uses modifier key ALT
|
2021-09-09 21:55:28 +02:00
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# Desktop
|
|
|
|
# View desktop
|
|
|
|
alt + {1-9,0}
|
2021-12-04 11:44:16 +01:00
|
|
|
bspc desktop -f {6-9,10,1-5}
|
2021-09-09 21:55:28 +02:00
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# Move node to desktop
|
2021-12-12 12:19:34 +01:00
|
|
|
alt + shift + {1-9,0}
|
2021-12-04 11:44:16 +01:00
|
|
|
bspc node -d {6-9,10,1-5}
|
2021-09-09 21:55:28 +02:00
|
|
|
|
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# WM
|
2021-09-09 21:55:28 +02:00
|
|
|
# quit/restart bspwm
|
|
|
|
alt + shift + {e,r}
|
|
|
|
bspc {quit,wm -r}
|
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# close/kill node
|
2021-09-09 21:55:28 +02:00
|
|
|
alt + {_,shift + }q
|
2021-11-22 11:11:58 +01:00
|
|
|
bspc node -{c,k}
|
2021-09-09 21:55:28 +02:00
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# make sxhkd reload its configuration files:
|
|
|
|
alt + shift + c
|
|
|
|
pkill -USR1 -x sxhkd && dunstify 'sxhkd' 'Reloaded config!'
|
2021-09-09 21:55:28 +02:00
|
|
|
|
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# State and Flags
|
2021-09-09 21:55:28 +02:00
|
|
|
# set the window state
|
|
|
|
alt + {t,shift + t,s,f}
|
|
|
|
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
|
|
|
|
|
|
|
# set the node flags
|
2021-11-22 11:11:58 +01:00
|
|
|
alt + ctrl + {m,l,s,p,}
|
2021-09-09 21:55:28 +02:00
|
|
|
bspc node -g {marked,locked,sticky,private}
|
|
|
|
|
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# Focus/Swap Nodes
|
2021-09-09 21:55:28 +02:00
|
|
|
# focus the node in the given direction
|
|
|
|
alt + {_,shift + }{h,j,k,l}
|
|
|
|
bspc node -{f,s} {west,south,north,east}
|
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# Rotate tree
|
|
|
|
alt + shift + {d,a}
|
|
|
|
bspc node @/ -C {forward,backward}
|
2021-09-09 21:55:28 +02:00
|
|
|
|
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# Resize Node
|
2021-09-09 21:55:28 +02:00
|
|
|
# expand a window by moving one of its side outward
|
2021-11-22 11:11:58 +01:00
|
|
|
alt + ctrl + {h,j,k,l}
|
2021-09-09 21:55:28 +02:00
|
|
|
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
|
2021-11-22 11:11:58 +01:00
|
|
|
alt + shift + ctrl + {h,j,k,l}
|
2021-09-09 21:55:28 +02:00
|
|
|
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
|
|
|
|
|
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# XF86 Keys
|
2021-09-09 21:55:28 +02:00
|
|
|
XF86AudioRaiseVolume
|
2021-09-10 10:12:11 +02:00
|
|
|
pamixer -i 5
|
2021-09-09 21:55:28 +02:00
|
|
|
XF86AudioLowerVolume
|
2021-09-10 10:12:11 +02:00
|
|
|
pamixer -d 5
|
2021-09-09 21:55:28 +02:00
|
|
|
XF86AudioMute
|
2021-09-10 10:12:11 +02:00
|
|
|
pamixer -t
|
2021-11-22 11:11:58 +01:00
|
|
|
|
2021-09-09 21:55:28 +02:00
|
|
|
XF86AudioPlay
|
2021-11-04 17:28:42 +01:00
|
|
|
[ $(playerctl -p "spotifyd,firefox" status) = "Playing" ] && playerctl -p "spotifyd,firefox" pause || playerctl -p "spotifyd,firefox" play
|
2021-09-09 21:55:28 +02:00
|
|
|
XF86AudioNext
|
2021-11-22 11:11:58 +01:00
|
|
|
playerctl -p "spotifyd,firefox" next
|
2021-09-09 21:55:28 +02:00
|
|
|
XF86AudioPrev
|
2021-11-22 11:11:58 +01:00
|
|
|
playerctl -p "spotifyd,firefox" previous
|
2021-09-09 21:55:28 +02:00
|
|
|
|
|
|
|
XF86MonBrightnessDown
|
2021-09-10 11:16:00 +02:00
|
|
|
brightnessctl s 10%-
|
2021-09-09 21:55:28 +02:00
|
|
|
XF86MonBrightnessUp
|
2021-09-10 11:16:00 +02:00
|
|
|
brightnessctl s +10%
|
2021-09-09 21:55:28 +02:00
|
|
|
|
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# Programs
|
|
|
|
# Uses modifier key SUPER
|
2021-09-09 21:55:28 +02:00
|
|
|
|
2021-11-22 11:11:58 +01:00
|
|
|
# Rofi
|
|
|
|
# start rofi
|
|
|
|
super + d
|
|
|
|
rofi -show combi
|
|
|
|
|
|
|
|
# start Networkmanager rofi
|
2021-09-09 21:55:28 +02:00
|
|
|
super + w
|
|
|
|
networkmanager_dmenu
|
2021-11-22 11:11:58 +01:00
|
|
|
|
2021-09-09 21:55:28 +02:00
|
|
|
# start rofi-calc
|
|
|
|
super + c
|
|
|
|
rofi -show calc -modi calc -no-show-match -no-sort | xclip -selection clipboard
|
2021-11-22 11:11:58 +01:00
|
|
|
|
|
|
|
# Show help
|
|
|
|
super + h
|
|
|
|
~/bin/sxhkd-help
|
|
|
|
|
|
|
|
# Apps
|
|
|
|
# start firefox
|
|
|
|
super + {_,shift} +f
|
|
|
|
firefox {_,--private-window}
|
|
|
|
|
|
|
|
# terminal emulator
|
|
|
|
super + Return
|
|
|
|
kitty
|
|
|
|
|
|
|
|
|
|
|
|
# Emacs
|
2021-09-09 21:55:28 +02:00
|
|
|
# start emacs
|
2021-09-29 13:35:53 +02:00
|
|
|
super + e
|
2021-09-09 21:55:28 +02:00
|
|
|
emacsclient -c -a emacs
|
2021-11-22 11:11:58 +01:00
|
|
|
# emacs everywhere
|
2021-09-29 13:35:53 +02:00
|
|
|
super + shift + e
|
|
|
|
bspc rule -a 'Emacs' -o state=floating sticky=on; \
|
|
|
|
emacsclient --eval "(emacs-everywhere)"
|