blob: 364375de750f5ea389670b17b2a9a10ebb6a2b9f (
plain) (
blame)
1
2
3
4
5
6
|
#!/bin/sh
readonly IPC=/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock
hyprctl devices -j | jq -r '.keyboards[-1].active_keymap'
socat -u UNIX-CONNECT:"$IPC" - | sed -En 's/^activelayout>>[^,]+,//p'
|