dotfiles/modules/desktop/bspwm/sxhkdrc

117 lines
2.2 KiB
Plaintext
Raw Normal View History

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
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}
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
2021-12-26 23:34:42 +01:00
sxhkd-help
2021-11-22 11:11:58 +01:00
2022-01-24 11:20:45 +01:00
# script for sharing files
super + s
share
2021-11-22 11:11:58 +01:00
# Apps
# start firefox
2022-01-24 11:20:45 +01:00
super + {_,shift} + f
2021-11-22 11:11:58 +01:00
firefox {_,--private-window}
# terminal emulator
2022-01-24 11:20:45 +01:00
super + {_,shift} + Return
{_,bspc rule -a "kitty" -o state=floating;} kitty
2021-11-22 11:11:58 +01:00
# 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)"