You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
291 B

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