diff options
Diffstat (limited to '.config/eww/scripts/keymap-listener')
-rwxr-xr-x | .config/eww/scripts/keymap-listener | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/.config/eww/scripts/keymap-listener b/.config/eww/scripts/keymap-listener index a9666aa..e526d03 100755 --- a/.config/eww/scripts/keymap-listener +++ b/.config/eww/scripts/keymap-listener @@ -4,13 +4,5 @@ set -e readonly IPC=/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock -hyprctl devices | sed -En '/Keyboard at/ { - :loop - n - /active keymap:/! b loop - s/.*active keymap: //p - q -} -' - +hyprctl devices -j | jq -r '.keyboards[-1].active_keymap' socat -u UNIX-CONNECT:"$IPC" - | sed -En 's/^activelayout>>[^,]+,//p' |