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}
|
2022-02-20 22:58:51 +01:00
|
|
|
bspc desktop -f {1-9,10}
|
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}
|
2022-02-20 22:58:51 +01:00
|
|
|
bspc node -d {1-9,10}
|
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}
|
|
|
|
|
2022-11-10 22:13:39 +01:00
|
|
|
# switch window layout
|
2022-07-30 16:30:44 +02:00
|
|
|
alt + space
|
|
|
|
bsp-layout next --layouts wide,tall,tiled
|
2021-09-09 21:55:28 +02:00
|
|
|
|
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
|
|
|
|
2022-08-20 14:17:16 +02:00
|
|
|
# start rofi-bluetooth
|
|
|
|
super + b
|
|
|
|
rofi-bluetooth
|
|
|
|
|
|
|
|
# start rofi-power-menu
|
|
|
|
super + p
|
|
|
|
rofi -show power-menu -modi power-menu:rofi-power-menu
|
|
|
|
|
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
|
|
|
|
|
2022-11-10 22:13:39 +01:00
|
|
|
# switch keyboard layout
|
|
|
|
super + l
|
|
|
|
setxkbmap -query | grep -Eq "layout:\s+de" && setxkbmap us && dunstify "Layout US"|| (setxkbmap de && dunstify "Layout DE")
|
|
|
|
|
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)"
|