Hi,
Is there a way to set a simple Keyboard shortcut that allows me to type the £ symbol without the long winded ctrl + shift [u a 3] sequence.?
Ideally Id like it to be alt+3 or alt+shift+3
My laptop is Japanese KB layout. Ill need to use £ as the main currency when I move to the UK next month. It needs to be a simple shortcut, Ill be typing it often.
The command attempt below doesnt work, is there something like that I can set up?
Im not sure if its possible to return a result via command in this way.
xmodmap -pke shows me that the £ symbol is already mapped to the 3 key. So now I’m wondering how to actually type it.
keycode 12 = 3 numbersign 3 sterling threesuperior sterling
keycode 13 = 4 dollar 4 dollar EuroSign onequarter
Both Sterling & Euro will be useful. They seem to be level 4 & level 5 respectively.
level 4 = mode_switch+Shift+key
level 5 = AltGraph+key
Im not sure how to do mode_switch, perhaps that is the ctl+shift u a combination I am trying to avoid?
I dont have an AltGraph Key, but I understand Ctrl+Alt is the same thing, but that doesn’t work. According to the above, Ctrl+Alt+4 should be Euro but it has no effect.
Ctrl+Alt+3 / Ctrl+Alt+4 would be quite acceptable to me for typing £/Euro but it doesnt seem like Ctrl+Alt is working as AltGr.
Currently:
ctrl+shift+ [ua3] = £
ctrl+shift+ [ua4] = ¤
Not sure what that last one is, its not Euro & not in the xmodmap keycode for that key.
Actually I do have Fcitx5 input method installed, which allows me to switch from US to JP(mozc) layouts using the special Kana key on my keyboard.
Perhaps this is affecting some functions…
I have found that Sn3ipen was correct about the Alt Char Key - If I change my Gnome settings > KB > input source to “US intl” I can type alternate chars using the key I designate.
Unfortunately my KB is Japanese & there are NO alt chars shown in Gnome for any key. I cannot use a different layout (US) because then the KB will function incorrectly.
What I need to do is add my own 3rd level characters in the JP layout.
xmodmap seems unrelated or perhaps not implemented in gnome 41.2. The character mapping it reports in the layout table are not present in my actual layout.
So how can I edit the JP keyboard layout in Gnome, to add some level3 chars? I don’t know how to find or access the layout file - its certainly not what xmodmap -pke reports. Is Gnome using a different solution these days?
My actual keyboard, as shown in Gnome settings: (no level3 chars)