summaryrefslogtreecommitdiff
path: root/.local/bin/chkb
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/chkb')
-rwxr-xr-x.local/bin/chkb29
1 files changed, 0 insertions, 29 deletions
diff --git a/.local/bin/chkb b/.local/bin/chkb
deleted file mode 100755
index 6abe5ae..0000000
--- a/.local/bin/chkb
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/local/bin/andy
-
-set -e NOTIFY_LONG keyboard
-set -e NOTIFY_SHORT `basename $args[0]
-
-set KEYBOARD at-translated-set-2-keyboard
-
-set s `{
- {
- hyprctl -j getoption input:kb_layout
- hyprctl -j getoption input:kb_variant
- }
- | jq -rn '
- [inputs]
- | map(.str | split(",\\s*"; "g"))
- | transpose
- | map("\(.[0]) (\(.[1]))")
- | .[]
- '
- | sed -E '
- s/[a-zA-Z]+/\u&/g
- s/Us \(Basic\)/English (US)/
- '
-}
-
-set choice `echo $s | osel
-set n `echo $s | sed -n "/$choice/=" | { xargs expr -1 + || true }
-hyprctl switchxkblayout $KEYBOARD $n >_
-notify 'Keyboard Layout Changed' "The keyboard layout was changed to ‘$choice’"