Add gotty, add keyboard-layout, update .Xmodmap

This commit is contained in:
arnaucube
2020-11-22 17:34:03 +01:00
parent 50133535a7
commit 18191e0e38
6 changed files with 43 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
#!/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