In my ~/.XCompose, I have this line:
<Multi_key> + <3> + <3> : "¯\_(ツ)_/¯" # Shrug.
Which sadly, does not do what I want. Since only the first characters of the shrug is used.
Can I have multiple characters based of one key combinations?
In my ~/.XCompose, I have this line:
<Multi_key> + <3> + <3> : "¯\_(ツ)_/¯" # Shrug.
Which sadly, does not do what I want. Since only the first characters of the shrug is used.
Can I have multiple characters based of one key combinations?
Compose sequences which outputs strings (as opposed to just boring characters) seem to work in some applications. I’ve only tested a few.
It works in:
It doesn’t work in:
Also your mapping doesn’t work for me. But it does if I remove the plus signs:
<Multi_key> <3> <3> : "¯\_(ツ)_/¯" # Shrug.
And you should escape the backwards slash:
<Multi_key> <3> <3> : "¯\\_(ツ)_/¯" # Shrug.
I’ve ended up using compose sequences that output strings (rather than just single keysyms/characters) quite a lot. I mostly use it for single words.
In my experience it works really well, i.e. it works on most contexts that I type things.
This emoji now works for me in all four applications that I originally tested.
My own strings don’t contain Katakana (ツ) so they might be easier to use in more settings (higher Unicode code points might be less supported?).
Some exceptions: