artix-loadkeys_at_boot.sh 351 B

1234567891011121314151617
  1. #!/bin/bash
  2. # fail if any commands fails
  3. #set -e
  4. # debug log
  5. #set -x
  6. # Set superuser privileges command if not set
  7. if [[ -z $su ]]; then
  8. export su="sudo"
  9. fi
  10. # show available keymaps
  11. find /usr/share/kbd/keymaps/ -type f | grep la
  12. $su sed -i 's/keymap="us"/keymap="es"/g' /etc/conf.d/keymaps
  13. $su sed -i 's/KEYMAP=us/KEYMAP=es/g' /etc/vconsole.conf