whexy1999
My Keymappings
⌨️

My Keymappings

Created
Dec 13, 2022 05:03 PM
Last edited time
Dec 14, 2022 09:40 PM
Tags

⌨️ Keyboard

I’m using Keychron K4 (Bluetooth) as my primary keyboard. To use a keyboard with a customized experience, I use KMonad to modify the key and sxhkd to create global shortcuts.
To use KMonad with my Keychron Bluetooth keyboard, I wrote a udev rule called /etc/udev/rules.d/keychron.rule to export the keyboard as a /dev/input device.
ATTRS{name}=="Keychron K4", SYMLINK+="keychron-k4"
This rule will create a file called /dev/keychron-k4. Then I can use it in the KMonad as the device-file.

bspwm

Focus

Move focus between windows, or swap windows:
super + {_,shift + }{h,j,k,l}: bspc node -{f,s} {west,south,north,east}
notion image
 
Move focus between monitors:
super + {p,n}: bspc monitor -f {prev,next}
notion image

Window State

Toggle tiled and pseudo-tiled:
super + shift + space if [ -z "$(bspc query -N -n focused.pseudo_tiled)" ]; then \ bspc node -t pseudo_tiled; \ else \ bspc node -t tiled; \ fi
notion image