clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

switch-keyboard: move to hypr

sspaeti bdd117a3 3577a0af

+46 -1
+1 -1
hypr/.config/hypr/bindings.conf
··· 23 23 bind = SUPER, D, exec, $terminal -e lazydocker 24 24 25 25 #keyboard switch 26 - bindd = SUPER ALT, BACKSPACE, Toggle Keyboard, exec, ~/.local/bin/switch-keyboard ; notify-send "Keyboard Setup" "Toggle keyboard" 26 + bindd = SUPER ALT, BACKSPACE, Toggle Keyboard, exec, ~/.config/hypr/sspaeti/switch-keyboard ; notify-send "Keyboard Setup" "Toggle keyboard" 27 27 28 28 # fix for using SUPER ESC on KBDFans Keyboard 29 29 bind = SUPER, grave, exec, ~/.local/share/omarchy/bin/omarchy-menu-power
+45
hypr/.config/hypr/sspaeti/switch-keyboard
··· 1 + #\!/bin/bash 2 + 3 + # Switch between kinesis.kbd and lenovo.kbd configurations 4 + # Usage: ./switch-keyboard [kinesis|lenovo] 5 + 6 + SCRIPT_DIR="/home/sspaeti/.config/kanata" 7 + TARGET_FILE="$SCRIPT_DIR/kanata.kbd" 8 + 9 + # if [[ $EUID -ne 0 ]]; then 10 + # echo "This script must be run as root" 11 + # exit 1 12 + # fi 13 + 14 + # If no argument provided, detect current config and switch 15 + if [ $# -eq 0 ]; then 16 + if cmp -s "$TARGET_FILE" "$SCRIPT_DIR/kinesis.kbd"; then 17 + CONFIG="lenovo" 18 + else 19 + CONFIG="kinesis" 20 + fi 21 + else 22 + CONFIG="$1" 23 + fi 24 + 25 + case "$CONFIG" in 26 + kinesis) 27 + sudo cp "$SCRIPT_DIR/kinesis.kbd" "$TARGET_FILE" 28 + echo "Switched to kinesis configuration" 29 + ;; 30 + lenovo) 31 + sudo cp "$SCRIPT_DIR/lenovo.kbd" "$TARGET_FILE" 32 + echo "Switched to lenovo configuration" 33 + ;; 34 + *) 35 + echo "Usage: $0 [kinesis|lenovo]" 36 + echo "If no argument provided, automatically switches to the other config" 37 + exit 1 38 + ;; 39 + esac 40 + 41 + echo "Reloading systemd and restarting kanata..." 42 + #systemctl daemon-reload 43 + sudo systemctl restart kanata 44 + 45 + echo "Done\!"