projects
/
~bandali
/
configs
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use XF86LaunchA for changing the keyboard layout
[~bandali/configs]
/
sxhkd
/
.local
/
bin
/
toggle-layout
diff --git a/sxhkd/.local/bin/toggle-layout
b/sxhkd/.local/bin/toggle-layout
new file mode 100755
(executable)
index 0000000..
fcae134
--- /dev/null
+++ b/
sxhkd/.local/bin/toggle-layout
@@ -0,0
+1,9
@@
+#!/bin/bash
+
+lang="$(setxkbmap -print | grep xkb_symbols | cut -d'+' -f 2)"
+
+if [ "$lang" = "us" ]; then
+ setxkbmap ir
+else
+ setxkbmap us
+fi
\ No newline at end of file