switch back to plasma handling keyboard layout

This commit is contained in:
2024-12-11 11:21:03 -05:00
parent 28fd1bd233
commit 6b22272eb1
2 changed files with 36 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
#!/bin/sh
current_layer=$(timeout 0.1s keyd listen | grep -m 1 '^/' | sed 's/^\///')
if [ "$current_layer" = "qwerty" ]; then
current_layer="basic"
fi
current_layer=$(get_plasma_keyboard_layout)
#current_layer=$(timeout 0.1s keyd listen | grep -m 1 '^/' | sed 's/^\///')
#if [ "$current_layer" = "qwerty" ]; then
# current_layer="basic"
#fi
DOTOOL_XKB_LAYOUT=us DOTOOL_XKB_VARIANT=$current_layer /usr/bin/dotool "$@"