aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/sb_layout.sh
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/sb_layout.sh')
-rwxr-xr-x.local/bin/sb_layout.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/sb_layout.sh b/.local/bin/sb_layout.sh
new file mode 100755
index 0000000..9fdeb51
--- /dev/null
+++ b/.local/bin/sb_layout.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+case $BUTTON in
+ # Left mouse click
+ 1) xkb-switch -n ;;
+esac
+
+printf $(xkb-switch -p | tr -d '\n')