Skip to content

Instantly share code, notes, and snippets.

@simone-sanfratello
Last active January 7, 2023 14:46
Show Gist options
  • Save simone-sanfratello/bfd6b03a7858207190afcce7e0bea922 to your computer and use it in GitHub Desktop.
Save simone-sanfratello/bfd6b03a7858207190afcce7e0bea922 to your computer and use it in GitHub Desktop.
xmodmap Italian accents on linux / ubuntu

Get Italian accent vowels and euro symbol

Right Ctrl + A > á
Right Ctrl + E > é
Right Ctrl + I > í
Right Ctrl + O > ó
Right Ctrl + U > ú
AtrGr + E > €

create ~/map-italian-accents.sh

!/bin/bash

setxkbmap -option

xmodmap -e "keycode  38 = a A aacute Aacute ae AE ae"
xmodmap -e "keycode  26 = e E eacute Eacute EuroSign cent EuroSign"
xmodmap -e "keycode  31 = i I iacute Iacute rightarrow idotless rightarrow"
xmodmap -e "keycode  32 = o O oacute Oacute oslash Oslash oslash"
xmodmap -e "keycode  30 = u U uacute Uacute downarrow uparrow downarrow"
xmodmap -e "keycode 105 = Mode_switch"
chmod 755 ~/map-italian-accents.sh

Add it to startup apps

! choose "Ubuntu on Xorg" on login on Ubuntu 22

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment