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