Last active
December 1, 2020 11:46
-
-
Save strund3r/7e67980d8f2d29a335e8316f1c94fbd8 to your computer and use it in GitHub Desktop.
Set keyboard layout to US-Intl without dead keys on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#US=$(setxkbmap -layout us -variant intl) | |
#BR=$(setxkbmap -model abnt2 -layout br -variant abnt2) | |
PS3="Choose your keyboard layout: " | |
options=("US-INTL" "BR-ABNT2" "Quit") | |
select opt in "${options[@]}" | |
do | |
case $opt in | |
"US-INTL") | |
setxkbmap -layout us -variant intl | |
echo "Changed to US-INTL" | |
;; | |
"BR-ABNT2") | |
setxkbmap -model abnt2 -layout br -variant abnt2 | |
echo "Changed to BR-ABNT2" | |
;; | |
"Quit") | |
break | |
;; | |
*) echo "Invalid Option $REPLY";; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment