dotfiles/bin/keymap-show
Petar Kapriš 9d963b922a Add /bin
2025-12-16 21:42:18 +01:00

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