diff options
Diffstat (limited to '.local/bin/layouthandler')
-rwxr-xr-x | .local/bin/layouthandler | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.local/bin/layouthandler b/.local/bin/layouthandler index 0bd8d33..3f8e74e 100755 --- a/.local/bin/layouthandler +++ b/.local/bin/layouthandler @@ -1,10 +1,14 @@ #!/bin/sh layout="$(setxkbmap -query | awk '$1 ~ /layout/ { print $2 }')" +alt_layout=${ALT_KB_LAYOUT?Alternative layout not set!} +echo "$alt_layout" case $layout in - en_US) - setxkbmap -layout se ;; - *) - setxkbmap -layout en_US +en_US) + setxkbmap -layout "$alt_layout" + ;; +*) + setxkbmap -layout en_US + ;; esac |