From dd96f6351926d767ec06ca2d3ad73d6297150a30 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 20 Nov 2023 23:59:23 +0100 Subject: eww: Ignore non-laptop keyboards --- .config/eww/scripts/keymap-listener | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3