blob: 124fd9c2122a81a84c8c7488a1c948a7ac21dc5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
current_layout=$(setxkbmap -query | awk '/variant/{print $2}')
if [[ "$current_layout" == "dvorak" ]]; then
setxkbmap -layout us -option caps:swapescape
notify-send "Keyboard Layout" "Switched to QWERTY"
else
setxkbmap -layout us -variant dvorak -option caps:swapescape
notify-send "Keyboard Layout" "Switched to Dvorak"
fi
|