[Solved] compose key

Share your own howto's etc. Not for support questions!

[Solved] compose key

Postby milomak » 2019-07-16 21:26

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: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1973
Joined: 2009-06-09 22:20

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable