aboutsummaryrefslogtreecommitdiff
path: root/setkbmap
diff options
context:
space:
mode:
Diffstat (limited to 'setkbmap')
-rwxr-xr-xsetkbmap/setkbmap7
1 files changed, 7 insertions, 0 deletions
diff --git a/setkbmap/setkbmap b/setkbmap/setkbmap
new file mode 100755
index 0000000..a1d8056
--- /dev/null
+++ b/setkbmap/setkbmap
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ -n '$SWAYSOCK' ]; then
+ swaymsg input '*' xkb_layout "$@"
+else
+ setxkbmap "$@"
+fi