10 lines
281 B
Bash
Executable file
10 lines
281 B
Bash
Executable file
#!/bin/sh
|
|
|
|
original=$(hyprctl devices -j | jq '.keyboards[4].active_keymap')
|
|
|
|
case "$original" in
|
|
'"English (US)"') echo "us" ;;
|
|
'"Serbian (Latin, QWERTY)"') echo "rs(lat)" ;;
|
|
'"Serbian (Cyrillic, ZE and ZHE swapped)"') echo "rs(cyr)" ;;
|
|
'"German (QWERTY)"') echo "de" ;;
|
|
esac
|