• Arsen6331 ☭
          link
          fedilink
          arrow-up
          7
          ·
          edit-2
          2 years ago

          It’s also integrated into Xorg if you use Linux. Enable the compose key, then you can press whatever you set as compose and then type in “CCCP”, and you get: ☭.

          In KDE and probably GNOME, the compose key can be enabled from settings. If using a WM like me, you’ll need to add something like setxkbmap -option compose:ralt to your startup commands in your config. That command sets it to right alt. You can change ralt to whatever key you want to be your compose key.

          Since it is in unicode, you can also do Ctrl+Shift+U followed by 262d to make “☭” in most apps.

          • nour
            link
            fedilink
            arrow-up
            4
            ·
            2 years ago

            If using a WM like me, you’ll need to add something like setxkbmap -option compose:ralt to your startup commands in your config.

            Instead of adding it to startup commands, it’s also possible to add it to the Xorg configuration. I use a file /etc/X11/xorg.conf.d/10-keyboard.conf with the contents:

            Section "InputClass"
                    Identifier "keyboard-all"
                    MatchIsKeyboard "on"
                    Option "XkbOptions" "compose:caps"
            EndSection
            

            to enable the compose key.