adding bin files
This commit is contained in:
14
bin/switchkblayout
Executable file
14
bin/switchkblayout
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
key=`setxkbmap -query | grep layout | awk '{print $2}'`
|
||||
|
||||
if [[ $key == "fr" ]]; then
|
||||
setxkbmap us
|
||||
elif [[ $key == "us" ]]; then
|
||||
setxkbmap dvorak
|
||||
else
|
||||
setxkbmap fr
|
||||
fi
|
||||
key=`setxkbmap -query | grep layout | awk '{print $2}'`
|
||||
notify-send "Keyboard Layout: $key"
|
||||
|
Reference in New Issue
Block a user