diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/chkb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/.local/bin/chkb b/.local/bin/chkb index 7837e9b..d38aaa8 100755 --- a/.local/bin/chkb +++ b/.local/bin/chkb @@ -20,10 +20,7 @@ s="$( ' | sed -E 's/[a-zA-Z]+/\u&/g' )" -if choice="$(echo "$s" | osel)" -then - n="$(echo "$s" | sed -n "/$choice/=" | { xargs expr -1 + || true; })" - hyprctl switchxkblayout $KEYBOARD $n >/dev/null - notify 'Keyboard Layout Changed' \ - "The keyboard layout was changed to ‘$choice’" -fi +choice="$(echo "$s" | osel)" +n="$(echo "$s" | sed -n "/$choice/=" | { xargs expr -1 + || true; })" +hyprctl switchxkblayout $KEYBOARD $n >/dev/null +notify 'Keyboard Layout Changed' "The keyboard layout was changed to ‘$choice’" |