blob: cc3ffcf257b66f9b4e34b434a2a4df63d43bcc03 (
plain) (
blame)
1
2
3
4
5
6
7
|
#!/bin/sh
readonly IPC="$XDG_RUNTIME_DIR/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>>$KBD,//p"
|