r/linuxmint • u/a_dumbass_sackthing • 21m ago
Support Request stupid question but…
is it possible to add more combinations to the compose key? for an example adding a few lines to make B+R+R create Ɓ, if that’s possible please tell me how to do so
2
Upvotes
•
u/AutoModerator 21m ago
Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/tadelstein9 4m ago
Yes. Create a file named .XCompose in the home folder with these two lines:
Save it, log out and back in, then test the combination in a text editor. If a program ignores the file, I would add export GTK_IM_MODULE=xim to ~/.profile and log in again.
1
u/Still-Grass8881 3m ago
Yes. You need to make an .XCompose file in your home directory.
Hit Ctrl + Alt + T to open terminal.
type in nano ~/.XCompose
type in the following:
include "%L"
<Multi_key> <B> <R> <R> : "Ɓ" U0181
# LATIN CAPITAL LETTER B WITH HOOK
what this does:
include "%L": loads all of Linux Mint's default Compose combinations
<Multi_key>: Represents your designated Compose key.
<B> <R> <R>: Defines the exact sequence (uppercase B, R, R).
"Ɓ" U0181: Outputs the target character and specifies its Unicode point (U+0181)
any line with # in front of it is for documentation and isn't run in the script
now, press Ctrl + O, Enter to save, and Ctrl + X to exit.
restart and it should work. might not work for Flatpak apps, but you can get it to work by installing Flatseal and granting read access to ~/.XCompose for the specific apps you need
i am quite drunk so let me know if this works