Files
configs/other-scripts/keyboard-layout.sh
arnaucube 112f89502a install-new-server.sh: automate fzf installaiton, update go version,
mv launch-scripts other-scripts, rm screen-scripts
2025-06-07 18:13:13 +02:00

15 lines
291 B
Bash
Executable File

#!/bin/sh
curr=$(setxkbmap -print | awk -F"+" '/xkb_symbols/ {print $2}')
if [[ $curr = "us" ]];
then
setxkbmap -layout es -variant ',cat' -option
echo "keyboard layout set to Catalan"
else
setxkbmap -layout us -option
echo "keyboard layout set to English (US)"
fi
xmodmap ~/.Xmodmap