L11: hardware keyboard with tilded chars

I’m talking here about the foldable hardware keyboard of the Librem 11 (not the OSK). The keyboard is a simple QWERTY English keyboard. On my laptops I’m used to use xmodmap to get Spanish tilded characters while using the (useless) Windows key as the modifier key together with a normal key, with such definitions:

# we use the Win-key to add more (esp. Spanish) letters to the keys:

xmodmap -e "keycode 10 =  1 exclam exclamdown onesuperior"
xmodmap -e "keycode 20 =  questiondown question backslash ssharp"
xmodmap -e "keycode 26 =  e E eacute Eacute"
xmodmap -e "keycode 30 =  u U uacute Uacute"
xmodmap -e "keycode 31 =  i I iacute Iacute"
xmodmap -e "keycode 32 =  o O oacute Oacute"
xmodmap -e "keycode 38 =  a A aacute Aacute"
xmodmap -e "keycode 57 =  n N ntilde Ntilde"
xmodmap -e "keycode 64 =  Mode_switch"
xmodmap -e "keycode 94 = less greater guillemotleft guillemotright bar brokenbar"
# PgUp, PgDown, Home, End keys:
xmodmap -e "keycode 111 =  Up   Up   Prior" # XXX: Home
xmodmap -e "keycode 116 =  Down Down Next"  # XXX: End
# F11
xmodmap -e "keycode 67  = F1 F1 F11"
xmodmap -e "keycode 68  = F2 F2 F12"
xmodmap -e "keycode 69  = F3 F3 F13"
xmodmap -e "keycode 70  = F4 F4 F14"
# avoid shutdown of X11 with the Powerbutton
xmodmap -e "keycode 124  = F11 F11"

This gives the symbols éíóúñ ÉÍÓÚÑ¡¿…

Is there a way to do this in the L11 for the Console with the hardware keyboard and Wayland?