From 7ff798534a6fb9c99611d18ee22757346798ef61 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 23 Aug 2023 06:47:03 +0300 Subject: eww: Add an eww configuration --- .config/eww/scripts/keymap-listener | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 .config/eww/scripts/keymap-listener (limited to '.config/eww/scripts/keymap-listener') 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' -- cgit v1.2.3