Skip to content

Commit

Permalink
feat(kmonad): add glove80 to script
Browse files Browse the repository at this point in the history
  • Loading branch information
KirkEasterson committed Dec 13, 2024
1 parent b423424 commit 7a5ec4d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions kmonad/.config/kmonad/external_keyboard_script.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#!/bin/bash

laptop="/dev/input/by-path/platform-i8042-serio-0-event-kbd"
moergo="/dev/input/by-id/usb-MoErgo_Glove80_Left_moergo.com:GLV80-320B6C0561C725F1-event-kbd"
dactyl="/dev/input/by-id/usb-izwan_zwactyl_50_vial:f64c2b3c-event-kbd"
laptop="/dev/input/by-path/platform-i8042-serio-0-event-kbd"

# This isn't an ideal solution. But the external keyboard gets high priority
# than the laptop keyboard, so check for that first.
if [ -e "${dactyl}" ]; then
echo "dactyl"
if [ -e "${moergo}" ]; then
KBD_DEV=$moergo
elif [ -e "${dactyl}" ]; then
KBD_DEV=$dactyl
elif [ -e "${laptop}" ]; then
echo "laptop"
KBD_DEV=$laptop
else
echo "exiting"
Expand Down

0 comments on commit 7a5ec4d

Please sign in to comment.