dotfiles/home/user/.local/bin/switch-layout

12 lines
241 B
Bash
Executable File

#!/bin/bash
echo "here" > /tmp/test
current=$(setxkbmap -query | grep layout | awk '{print $2}')
if [ "${current}" = "us" ]; then
setxkbmap -model pc105 -option ctrl:nocaps ru
else
setxkbmap -model pc105 -option ctrl:nocaps us
fi