10 lines
165 B
Bash
10 lines
165 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
current_layout=$(setxkbmap -query | grep layout | awk '{print $2}')
|
||
|
|
||
|
if [[ "$current_layout" == "us" ]]; then
|
||
|
setxkbmap ru
|
||
|
else
|
||
|
setxkbmap us
|
||
|
fi
|