summaryrefslogtreecommitdiff
path: root/.config/eww/scripts/keymap-listener
diff options
context:
space:
mode:
Diffstat (limited to '.config/eww/scripts/keymap-listener')
-rwxr-xr-x.config/eww/scripts/keymap-listener3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/eww/scripts/keymap-listener b/.config/eww/scripts/keymap-listener
index 364375d..82304b2 100755
--- a/.config/eww/scripts/keymap-listener
+++ b/.config/eww/scripts/keymap-listener
@@ -1,6 +1,7 @@
#!/bin/sh
readonly IPC=/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock
+readonly KBD=at-translated-set-2-keyboard
hyprctl devices -j | jq -r '.keyboards[-1].active_keymap'
-socat -u UNIX-CONNECT:"$IPC" - | sed -En 's/^activelayout>>[^,]+,//p'
+socat -u UNIX-CONNECT:"$IPC" - | sed -En "s/^activelayout>>$KBD,//p"