diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-23 06:47:03 +0300 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-23 06:47:03 +0300 |
commit | 7ff798534a6fb9c99611d18ee22757346798ef61 (patch) | |
tree | 1f6603ff9f3eede365e6963b3ac66b5edbd232fb /.config/eww/scripts/keymap-listener | |
parent | 8f7cbf4ad87d63fe82173645ecb590ebb0f12354 (diff) |
eww: Add an eww configuration
Diffstat (limited to '.config/eww/scripts/keymap-listener')
-rwxr-xr-x | .config/eww/scripts/keymap-listener | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.config/eww/scripts/keymap-listener b/.config/eww/scripts/keymap-listener new file mode 100755 index 0000000..a9666aa --- /dev/null +++ b/.config/eww/scripts/keymap-listener @@ -0,0 +1,16 @@ +#!/bin/sh + +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 +} +' + +socat -u UNIX-CONNECT:"$IPC" - | sed -En 's/^activelayout>>[^,]+,//p' |