This script can output hyprland keyboard layout based on hyprctl devices
$ chmod +x hyprland-keyboard-layout.sh
$ ./hyprland-keyboard-layout.sh
-> en
- Input
hyprctl devices
in your terminal
- There are a lot of different devices but you need to find the one where your
active keymap
changes. Just try to switching the layouts, eventually you'll find it (in my case it'sasus-keyboard
)
-
Then just insert it into script in variable
DEVICE
-
Profit!