dotfiles/dot_local/bin/executable_dotool

8 lines
232 B
Plaintext
Raw Permalink Normal View History

2024-11-04 15:46:00 -05:00
#!/bin/sh
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 "$@"