Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] compose key

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
milomak
Posts: 2158
Joined: 2009-06-09 22:20
Been thanked: 1 time

[Solved] compose key

#1 Post by milomak »

this is important for me when wanting euro and pound symbols (it especially help me with my mac keyboard)

so i have /etc/default/keyboard as

Code: Select all

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS="compose:lalt,terminate:ctrl_alt_bksp"

BACKSPACE="guess"
however even with the above it is still using ralt as the compose key.

what have i missed?

edit - i'm guessing there is some /etc/X11 override

edit - i am guessing that left alt being a windows thing, has been preserved somewhat

Code: Select all

$ grep "compose:" /usr/share/X11/xkb/rules/base.lst
  compose:ralt         Right Alt
  compose:lwin         Left Win
  compose:lwin-altgr   3rd level of Left Win
  compose:rwin         Right Win
  compose:rwin-altgr   3rd level of Right Win
  compose:menu         Menu
  compose:menu-altgr   3rd level of Menu
  compose:lctrl        Left Ctrl
  compose:lctrl-altgr  3rd level of Left Ctrl
  compose:rctrl        Right Ctrl
  compose:rctrl-altgr  3rd level of Right Ctrl
  compose:caps         Caps Lock
  compose:caps-altgr   3rd level of Caps Lock
  compose:102          <Less/Greater>
  compose:102-altgr    3rd level of <Less/Greater>
  compose:paus         Pause
  compose:prsc         PrtSc
  compose:sclk         Scroll Lock
went with lwin which is the cmd key on a mac (imac) keyboard

and the keystrokes you use to get the symbols are found here - /usr/share/X11/locale/en_US.UTF-8/Compose

for instance i've added to the file

Code: Select all

<Multi_key> <c> <minus>                 : "€"   EuroSign # EURO SIGN
<Multi_key> <minus> <c>                 : "€"   EuroSign # EURO SIGN
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

Post Reply