blob: e526d03ba9007522dc5ef8b30da1c3f819eb77e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
#!/bin/sh
set -e
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'
|