Hi, On this same machine, on 15.2 I have edited file "/etc/X11/Xmodmap". !! Fourth example: Make Menu key on WIN95 keyboard doing Compose !! CER !! keysym Menu = Multi_key !! keysym Win_R = Multi_key Does not work !!keysym Win_Menu = Multi_key Neither keysym Super_R = Multi_key This activates the compose key (using XFCE), on the right "Windows" key of my keyboard. On Leap 15.3 the exact same paragraph does nothing. Fresh test install. Why? -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.3 x86_64 (Erebor-4))
On 2022-01-12 12:14, Carlos E. R. wrote:
Hi,
On this same machine, on 15.2 I have edited file "/etc/X11/Xmodmap".
!! Fourth example: Make Menu key on WIN95 keyboard doing Compose !! CER !! keysym Menu = Multi_key !! keysym Win_R = Multi_key Does not work !!keysym Win_Menu = Multi_key Neither keysym Super_R = Multi_key
This activates the compose key (using XFCE), on the right "Windows" key of my keyboard.
On Leap 15.3 the exact same paragraph does nothing. Fresh test install.
Why?
Seem to remember people saying, for years, that xmodmap been deprecated. Maybe this is the final blow for it in openSUSE: "There is no official package available for openSUSE Leap 15.3" https://software.opensuse.org/package/xmodmap I did make a note a few years back about the hwdb. Low level mapping. Have a look at: /usr/lib/udev/hwdb.d/60-keyboard.hwdb -- /bengan
On 12/01/2022 13.27, Bengt Gördén wrote:
On 2022-01-12 12:14, Carlos E. R. wrote:
Hi,
On this same machine, on 15.2 I have edited file "/etc/X11/Xmodmap".
!! Fourth example: Make Menu key on WIN95 keyboard doing Compose !! CER !! keysym Menu = Multi_key !! keysym Win_R = Multi_key Does not work !!keysym Win_Menu = Multi_key Neither keysym Super_R = Multi_key
This activates the compose key (using XFCE), on the right "Windows" key of my keyboard.
On Leap 15.3 the exact same paragraph does nothing. Fresh test install.
Why?
Seem to remember people saying, for years, that xmodmap been deprecated. Maybe this is the final blow for it in openSUSE:
"There is no official package available for openSUSE Leap 15.3" https://software.opensuse.org/package/xmodmap
Obviously, not correct - search for 15.3 is not working since release. cer@Erebor4:~> rpm -qa | grep -i xmodmap xmodmap-1.0.9-1.24.x86_64 cer@Erebor4:~> cer@Erebor4:~> zypper se xmodmap Loading repository data... Reading installed packages... S | Name | Summary | Type --+---------+------------------------------------------------------------+-------- i | xmodmap | Utility to modify keymaps and pointer button mappings in X | package cer@Erebor4:~>
I did make a note a few years back about the hwdb. Low level mapping. Have a look at:
/usr/lib/udev/hwdb.d/60-keyboard.hwdb
I have no idea how to use that... -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.3 x86_64 (Erebor-4))
On 12/01/2022 13.49, Bengt Gördén wrote:
On 2022-01-12 13:42, Carlos E. R. wrote:
cer@Erebor4:~> zypper se xmodmap
zypper se -s xmodmap
cer@Erebor4:~> zypper se -s xmodmap Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository --+---------+---------+------------+--------+---------------- i | xmodmap | package | 1.0.9-1.24 | x86_64 | Main Repository cer@Erebor4:~> It is an official package.
/usr/lib/udev/hwdb.d/60-keyboard.hwdb
I have no idea how to use that...
If I needed something other than what does not work, I would probably try to learn.
Yes, but no idea where to start, or whether it does what I want. Anyway, I found another method to do it, thanks :-) -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.3 x86_64 (Erebor-4))
On 12/01/2022 12.14, Carlos E. R. wrote:
Hi,
On this same machine, on 15.2 I have edited file "/etc/X11/Xmodmap".
!! Fourth example: Make Menu key on WIN95 keyboard doing Compose !! CER !! keysym Menu = Multi_key !! keysym Win_R = Multi_key Does not work !!keysym Win_Menu = Multi_key Neither keysym Super_R = Multi_key
This activates the compose key (using XFCE), on the right "Windows" key of my keyboard.
On Leap 15.3 the exact same paragraph does nothing. Fresh test install.
Why?
Background and related information: https://documentation.suse.com/sles/15-SP2/html/SLES-all/cha-gnome-settings.... 3.4 Using XCompose to Type Special Characters GNOME supports fast input source (keyboard layout) switching (Section 3.2, “Configuring Language Settings” <https://documentation.suse.com/sles/15-SP2/html/SLES-all/cha-gnome-settings.html#sec-gnome-settings-lang>). However, if you are using |xmodmap| to create custom keymaps, it may not work correctly when you switch between multiple input sources. For example, you have two input sources, English and German. Your |xmodmap| commands work fine in the first input source you select, but when you switch to the second input source the same |xmodmap| commands produce incorrect output. |xmodmap| is an older protocol and does not have a full view of the keyboard layout, so in more complex situations it causes errors. An alternative method is to use |xcompose| to assign special symbols to sequences of key presses. This should work with any input source. Install |xcompose| by installing the |libX11-devel| package. Next, assign a compose key with the Tweaks tool in Activities. You will press this key in sequence with one or two additional keys to print a special character. The keys must be pressed in the correct sequence, starting with the compose key. In the Tweaks tool, navigate to Keyboard & Mouse › Compose Key and select your command key (Figure 3.2, “Enabling the Compose Key in Tweaks” <https://documentation.suse.com/sles/15-SP2/html/SLES-all/cha-gnome-settings.html#fig-gnome-settings-keyboard-compose>). Enabling the Compose Key in Tweaks Next, create a |~/.XCompose| file. This is the default per-user configuration file. Enter your keymappings in this file, like in this example: include "%L" <Multi_key> <a> : "α" <Multi_key> <b> : "β" <Multi_key> <exclam> : "¡" |include "%L"| includes the default compose file for your locale, for example |/usr/share/X11/locale/en_US.UTF-8|. The remaining lines specify the compose key, the other keypresses, and the symbols they are intended to print. After you make changes to your compose file, you must log out of your session and log back in to activate the changes. Your key assignments are case-sensitive. |~/.XCompose| overrides the system files. Use the compose file for your locale to see what is already configured, and to copy symbols from it into your personal compose file. (These files may have a lot of whitespace at the beginning; they are not empty so keep scrolling.) As always, watch out for conflicts with the other keymaps on your system. For additional information see |man xcompose|. I have not done that, but I thought that maybe XFCE could have a keyboard configuration tool, and it does. So, going to XFCE setup, keyboard, layout. Disable "use system defaults". Then on the "Compose key" button, select "Right Win", and it works. What is the compose key? I can, for example, press [compose][-][-][-] and I get a long dash: '—' Or [compose][o][o] and I get '°", the symbol to type "°C". Or [compose][L][-] amd I get "£" And many other combinations that are not included in the keyboard. -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.3 x86_64 (Erebor-4))
On Wed, 12 Jan 2022 14:04:46 +0100 "Carlos E.R." <robin.listas@gmx.es> wrote:
What is the compose key?
I can, for example, press [compose][-][-][-] and I get a long dash: '—'
Or [compose][o][o] and I get '°", the symbol to type "°C". Or [compose][L][-] amd I get "£"
And many other combinations that are not included in the keyboard.
Hmm, ° is AltGr-Shift-0 on my keyboard without a compose key. And £ is marked as Shift-3 (and € is also marked as AltGr-4). I can never remember all the AltGr combinations though.
On 12/01/2022 14.48, Dave Howorth wrote:
On Wed, 12 Jan 2022 14:04:46 +0100 "Carlos E.R." <> wrote:
What is the compose key?
I can, for example, press [compose][-][-][-] and I get a long dash: '—'
Or [compose][o][o] and I get '°", the symbol to type "°C". Or [compose][L][-] amd I get "£"
And many other combinations that are not included in the keyboard.
Hmm, ° is AltGr-Shift-0 on my keyboard without a compose key. And £ is marked as Shift-3 (and € is also marked as AltGr-4). I can never remember all the AltGr combinations though.
°£ Yes, so they are. I just wanted to show examples, compose combos are easy to guess. ',c' is ç, for example. A letter I never use, but when I do I just can guess where it is. For example: ₤£ -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.3 x86_64 (Erebor-4))
On 2022-01-12 8:48 a.m., Dave Howorth wrote:
On Wed, 12 Jan 2022 14:04:46 +0100 "Carlos E.R." <robin.listas@gmx.es> wrote:
What is the compose key?
I can, for example, press [compose][-][-][-] and I get a long dash: '—'
Or [compose][o][o] and I get '°", the symbol to type "°C". Or [compose][L][-] amd I get "£"
And many other combinations that are not included in the keyboard. Hmm, ° is AltGr-Shift-0 on my keyboard without a compose key. And £ is marked as Shift-3 (and € is also marked as AltGr-4). I can never remember all the AltGr combinations though.
Many of those characters are available on the U.S. international keyboard. It's a simple matter to enable it. You can even easily switch between layouts. https://en.wikipedia.org/wiki/QWERTY#US-International
On 12/01/2022 15.20, James Knott wrote:
On 2022-01-12 8:48 a.m., Dave Howorth wrote:
On Wed, 12 Jan 2022 14:04:46 +0100 "Carlos E.R." <robin.listas@gmx.es> wrote:
What is the compose key?
I can, for example, press [compose][-][-][-] and I get a long dash: '—'
Or [compose][o][o] and I get '°", the symbol to type "°C". Or [compose][L][-] amd I get "£"
And many other combinations that are not included in the keyboard. Hmm, ° is AltGr-Shift-0 on my keyboard without a compose key. And £ is marked as Shift-3 (and € is also marked as AltGr-4). I can never remember all the AltGr combinations though.
Many of those characters are available on the U.S. international keyboard. It's a simple matter to enable it. You can even easily switch between layouts.
To me, it is easier to use the compose key combinations. Easy to remember combos, or guess them. A Tux key would be very nice, but no such offer for my keyboard :-) -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.3 x86_64 (Erebor-4))
Dave Howorth wrote:
Hmm, ° is AltGr-Shift-0 on my keyboard without a compose key. And £ is marked as Shift-3 (and € is also marked as AltGr-4). I can never remember all the AltGr combinations though.
Which is why the Compose-Key (IMO) is so superior, as it's based son (some) logic. Greek letters: [Compose][g][letter]: a-α, b->β etc. Same with umlauts/accents etc. [Compose][accent][letter]: ä,è,é etc. So I really hope xmodmap stays available....
* Peter Suetterlin <pit@astro.su.se> [01-20-22 08:19]:
Dave Howorth wrote:
Hmm, ° is AltGr-Shift-0 on my keyboard without a compose key. And £ is marked as Shift-3 (and € is also marked as AltGr-4). I can never remember all the AltGr combinations though.
Which is why the Compose-Key (IMO) is so superior, as it's based son (some) logic.
Greek letters: [Compose][g][letter]: a-α, b->β etc. Same with umlauts/accents etc. [Compose][accent][letter]: ä,è,é etc.
So I really hope xmodmap stays available....
and odd that your combinations only partially work on my tumbleweed systems, <compose>"g"<letter>: provides only normaly ascii <compose>"S"<s>: ß <compose>"s"<s>: ß <compose>"o"<o>: ° but I have no combination available to achieve small case alpha, α plasma5/kde5 and no idea how to use unicode tks -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc What sort of day was it? A day like all days, filled with those events that alter and illuminate our times...
Patrick Shanahan wrote:
* Peter Suetterlin <pit@astro.su.se> [01-20-22 08:19]:
Which is why the Compose-Key (IMO) is so superior, as it's based son (some) logic.
Greek letters: [Compose][g][letter]: a-α, b->β etc. Same with umlauts/accents etc. [Compose][accent][letter]: ä,è,é etc.
So I really hope xmodmap stays available....
and odd that your combinations only partially work on my tumbleweed systems, <compose>"g"<letter>: provides only normaly ascii
Ah, that's true, in the default en_US.UTF-8 Compose map those are not defined, but one can dig out the definitions from /usr/share/X11/locale/*.UTF-8/Compose files, which is what I did (long ago....), and set up my ~/.XCompose as # modified Compose table to allow greek characters # see also manpage Compose(5) include "%L" <Multi_key> <g> <A> : "Α" U0391 # GREEK CAPITAL LETTER ALPHA <Multi_key> <g> <a> : "α" U03B1 # GREEK SMALL LETTER ALPHA ..... etc The include will first load whatever Compose is defined by your locale, and then add the rest. You can easily add any 'missing' shortcut that way. HTH
I use the ctrl-shift-u key combination to enter Unicode hexcodes. If I want an à, I type the letter a, press ctrl-shift-u, enter the Unicode hexcodes 0300, press spacebar or enter key, and the two are merged into the desired character à. At address 0300 starts a whole range of accents THAT ARE MERGED with the preceding character, so there isn't really that much to memorize. It is even possible to staple accents on top of each other, if there is a character representation defined for them. If I need a pinyin (Latin transcription of Mandarin Chinese) ü with first tone, I do this. Letter 'u' Ctrl-shift-u 0308 spacebar Ctrl-shift-u 0304 spacebar The first two steps produce a 'ü' The third step adds a horizontal line on top like in 'ū', but with the diacritical dots wedged in between the letter u and the horizontal line. I also could just enter the Unicode codepoint 01d6 to obtain the same character directly if I remember the hexcodes of those codepoints that I use a lot. The added advantage of this approach is, it is OS, codepage and keyboard layout independant. As long as you know how to enter the Unicode codepoints, you are set. On a Mac you first have to activate the Unicode keyboard. Then all you need to do is press the althkey, enter the 4 digit hexcodes and the character appears. On Linux and Mac that works for me in any application I use, terminal or desktop app. Haven't really used Windows for quite a few years now, so I don't remember reliably how it worked there, but you can look it up yourself should you need to. HTH Klaus On Thu, Jan 20, 2022, 18:45 Peter Suetterlin <pit@astro.su.se> wrote:
Patrick Shanahan wrote:
* Peter Suetterlin <pit@astro.su.se> [01-20-22 08:19]:
Which is why the Compose-Key (IMO) is so superior, as it's based son (some) logic.
Greek letters: [Compose][g][letter]: a-α, b->β etc. Same with umlauts/accents etc. [Compose][accent][letter]: ä,è,é etc.
So I really hope xmodmap stays available....
and odd that your combinations only partially work on my tumbleweed systems, <compose>"g"<letter>: provides only normaly ascii
Ah, that's true, in the default en_US.UTF-8 Compose map those are not defined, but one can dig out the definitions from /usr/share/X11/locale/*.UTF-8/Compose files, which is what I did (long ago....), and set up my ~/.XCompose as
# modified Compose table to allow greek characters # see also manpage Compose(5)
include "%L"
<Multi_key> <g> <A> : "Α" U0391 # GREEK CAPITAL LETTER ALPHA <Multi_key> <g> <a> : "α" U03B1 # GREEK SMALL LETTER ALPHA ..... etc
The include will first load whatever Compose is defined by your locale, and then add the rest. You can easily add any 'missing' shortcut that way.
HTH
althkey -> alt-key On Fri, Jan 21, 2022, 09:11 Klaus Maas <klaus.maas.opensuse@gmail.com> wrote:
I use the ctrl-shift-u key combination to enter Unicode hexcodes. If I want an à, I type the letter a, press ctrl-shift-u, enter the Unicode hexcodes 0300, press spacebar or enter key, and the two are merged into the desired character à. At address 0300 starts a whole range of accents THAT ARE MERGED with the preceding character, so there isn't really that much to memorize. It is even possible to staple accents on top of each other, if there is a character representation defined for them. If I need a pinyin (Latin transcription of Mandarin Chinese) ü with first tone, I do this.
Letter 'u' Ctrl-shift-u 0308 spacebar Ctrl-shift-u 0304 spacebar
The first two steps produce a 'ü' The third step adds a horizontal line on top like in 'ū', but with the diacritical dots wedged in between the letter u and the horizontal line. I also could just enter the Unicode codepoint 01d6 to obtain the same character directly if I remember the hexcodes of those codepoints that I use a lot.
The added advantage of this approach is, it is OS, codepage and keyboard layout independant. As long as you know how to enter the Unicode codepoints, you are set.
On a Mac you first have to activate the Unicode keyboard. Then all you need to do is press the althkey, enter the 4 digit hexcodes and the character appears.
On Linux and Mac that works for me in any application I use, terminal or desktop app.
Haven't really used Windows for quite a few years now, so I don't remember reliably how it worked there, but you can look it up yourself should you need to.
HTH Klaus
On Thu, Jan 20, 2022, 18:45 Peter Suetterlin <pit@astro.su.se> wrote:
Patrick Shanahan wrote:
* Peter Suetterlin <pit@astro.su.se> [01-20-22 08:19]:
Which is why the Compose-Key (IMO) is so superior, as it's based son (some) logic.
Greek letters: [Compose][g][letter]: a-α, b->β etc. Same with umlauts/accents etc. [Compose][accent][letter]: ä,è,é etc.
So I really hope xmodmap stays available....
and odd that your combinations only partially work on my tumbleweed systems, <compose>"g"<letter>: provides only normaly ascii
Ah, that's true, in the default en_US.UTF-8 Compose map those are not defined, but one can dig out the definitions from /usr/share/X11/locale/*.UTF-8/Compose files, which is what I did (long ago....), and set up my ~/.XCompose as
# modified Compose table to allow greek characters # see also manpage Compose(5)
include "%L"
<Multi_key> <g> <A> : "Α" U0391 # GREEK CAPITAL LETTER ALPHA <Multi_key> <g> <a> : "α" U03B1 # GREEK SMALL LETTER ALPHA ..... etc
The include will first load whatever Compose is defined by your locale, and then add the rest. You can easily add any 'missing' shortcut that way.
HTH
Am 21.01.22 um 11:57 schrieb Klaus Maas:
On Fri, Jan 21, 2022, 09:31 Simon Becherer <simon@becherer.de <mailto:simon@becherer.de>> wrote:
Hi,
i never managed to get unicode numbers typing and get a char. :-(( .. have not edited any files for this up to now.
Am 21.01.22 um 09:11 schrieb Klaus Maas: > I use the ctrl-shift-u key combination to enter Unicode hexcodes.
> Letter 'u' > Ctrl-shift-u 0308 spacebar > Ctrl-shift-u 0304 spacebar
i guess that there is no composed key defined at all at a standart tumblewed installation?
how did i get this working withn this ctrl-shift-u for entering unicode?
Hi Simon I checked my claims on a relatively unaltered Tumbleweed Installation, meaning: the only changes made after installation where using SI datetime format in Panel and File Manager. My desktop is XFCE. Keyboard uses system defaults, which are English US (keyboard generic 105, layout English US - NOT international). Pressing the three keys Ctrl + shift + u simultaneously gives me the Unicode entry prompt. In terminal: after pressing ctrl-shift-u I get an underlined u. I now enter a codepoints e.g. 2625 spacebar and the underlined u and the entered code are replaced by the corresponding glyph. Same in mousepad (text editor) Same in LibreOffice apps
In LibreOffice you als have an alternative available: enter code and immediately after the last code character simultaneously press alt + x. On US-international keyboard layout, which I have on a aXubuntu system, only LEFT-ALT + x do the trick. This key combo in LibreOffice actually is a toggle. Position the cursor almost after any character (limited to text, excluding formatting char like tab) and it will be replaced by its Unicode. Toggle back to have the char reappear.
Hi klaus, bad luck here, i am on a "old" (updated) tumbleweed, but with palsma/kde. switching keyboard to en_us. (hardware: german keyboard 102 keys) non of your suggestions work. not in terminal ctrl+shift+u will do nothing in libreoffice (writer) as i understand you i type a number 0308 (i see it now on screen) then pressing alt+x will open the menu "extras" :-(( simoN
* Simon Becherer <simon@becherer.de> [01-21-22 06:41]:
Am 21.01.22 um 11:57 schrieb Klaus Maas:
On Fri, Jan 21, 2022, 09:31 Simon Becherer <simon@becherer.de <mailto:simon@becherer.de>> wrote:
Hi,
i never managed to get unicode numbers typing and get a char. :-(( .. have not edited any files for this up to now.
Am 21.01.22 um 09:11 schrieb Klaus Maas: > I use the ctrl-shift-u key combination to enter Unicode hexcodes.
> Letter 'u' > Ctrl-shift-u 0308 spacebar > Ctrl-shift-u 0304 spacebar
i guess that there is no composed key defined at all at a standart tumblewed installation?
how did i get this working withn this ctrl-shift-u for entering unicode?
Hi Simon I checked my claims on a relatively unaltered Tumbleweed Installation, meaning: the only changes made after installation where using SI datetime format in Panel and File Manager. My desktop is XFCE. Keyboard uses system defaults, which are English US (keyboard generic 105, layout English US - NOT international). Pressing the three keys Ctrl + shift + u simultaneously gives me the Unicode entry prompt. In terminal: after pressing ctrl-shift-u I get an underlined u. I now enter a codepoints e.g. 2625 spacebar and the underlined u and the entered code are replaced by the corresponding glyph. Same in mousepad (text editor) Same in LibreOffice apps
In LibreOffice you als have an alternative available: enter code and immediately after the last code character simultaneously press alt + x. On US-international keyboard layout, which I have on a aXubuntu system, only LEFT-ALT + x do the trick. This key combo in LibreOffice actually is a toggle. Position the cursor almost after any character (limited to text, excluding formatting char like tab) and it will be replaced by its Unicode. Toggle back to have the char reappear.
Hi klaus,
bad luck here, i am on a "old" (updated) tumbleweed, but with palsma/kde. switching keyboard to en_us. (hardware: german keyboard 102 keys) non of your suggestions work. not in terminal ctrl+shift+u will do nothing in libreoffice (writer) as i understand you i type a number 0308 (i see it now on screen) then pressing alt+x will open the menu "extras"
:-((
do not feel bad. I cannot use <ctrl><shift><u> <unicode> either. Also very aged but up-2-date tumbleweed. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc What sort of day was it? A day like all days, filled with those events that alter and illuminate our times...
Hi, i never managed to get unicode numbers typing and get a char. :-(( .. have not edited any files for this up to now. Am 21.01.22 um 09:11 schrieb Klaus Maas:
I use the ctrl-shift-u key combination to enter Unicode hexcodes.
Letter 'u' Ctrl-shift-u 0308 spacebar Ctrl-shift-u 0304 spacebar
i guess that there is no composed key defined at all at a standart tumblewed installation? how did i get this working withn this ctrl-shift-u for entering unicode? simoN -- www.becherer.de
On 2022/01/12 14:04:46 +0100, Carlos E.R. wrote:
On 12/01/2022 12.14, Carlos E. R. wrote:
Hi,
On this same machine, on 15.2 I have edited file "/etc/X11/Xmodmap".
!! Fourth example: Make Menu key on WIN95 keyboard doing Compose !! CER !! keysym Menu = Multi_key !! keysym Win_R = Multi_key Does not work !!keysym Win_Menu = Multi_key Neither keysym Super_R = Multi_key
This activates the compose key (using XFCE), on the right "Windows" key of my keyboard.
On Leap 15.3 the exact same paragraph does nothing. Fresh test install.
Why?
Keep it simple and use the section `Position of Compose key` from the manual page xkeyboard-config(7) in e.g. /etc/X11/xorg.conf.d/00-keyboard.conf ... or lv3:ralt_switch_multikey simply play around with setxkbmap to test with -option what you like to use but check with setxkbmap -print the initial setup/configuration
Background and related information:
https://documentation.suse.com/sles/15-SP2/html/SLES-all/cha-gnome-settings....
3.4 Using XCompose to Type Special Characters
GNOME supports fast input source (keyboard layout) switching (Section 3.2, “Configuring Language Settings” <https://documentation.suse.com/sles/15-SP2/html/SLES-all/cha-gnome-settings.html#sec-gnome-settings-lang>). However, if you are using |xmodmap| to create custom keymaps, it may not work correctly when you switch between multiple input sources. For example, you have two input sources, English and German. Your |xmodmap| commands work fine in the first input source you select, but when you switch to the second input source the same |xmodmap| commands produce incorrect output. |xmodmap| is an older protocol and does not have a full view of the keyboard layout, so in more complex situations it causes errors.
An alternative method is to use |xcompose| to assign special symbols to sequences of key presses. This should work with any input source. Install |xcompose| by installing the |libX11-devel| package.
Next, assign a compose key with the Tweaks tool in Activities. You will press this key in sequence with one or two additional keys to print a special character. The keys must be pressed in the correct sequence, starting with the compose key.
In the Tweaks tool, navigate to Keyboard & Mouse › Compose Key and select your command key (Figure 3.2, “Enabling the Compose Key in Tweaks” <https://documentation.suse.com/sles/15-SP2/html/SLES-all/cha-gnome-settings.html#fig-gnome-settings-keyboard-compose>).
Enabling the Compose Key in Tweaks
Next, create a |~/.XCompose| file. This is the default per-user configuration file. Enter your keymappings in this file, like in this example:
include "%L"
<Multi_key> <a> : "α" <Multi_key> <b> : "β" <Multi_key> <exclam> : "¡"
|include "%L"| includes the default compose file for your locale, for example |/usr/share/X11/locale/en_US.UTF-8|.
The remaining lines specify the compose key, the other keypresses, and the symbols they are intended to print. After you make changes to your compose file, you must log out of your session and log back in to activate the changes.
Your key assignments are case-sensitive. |~/.XCompose| overrides the system files. Use the compose file for your locale to see what is already configured, and to copy symbols from it into your personal compose file. (These files may have a lot of whitespace at the beginning; they are not empty so keep scrolling.) As always, watch out for conflicts with the other keymaps on your system.
For additional information see |man xcompose|.
I have not done that, but I thought that maybe XFCE could have a keyboard configuration tool, and it does.
So, going to XFCE setup, keyboard, layout. Disable "use system defaults". Then on the "Compose key" button, select "Right Win", and it works.
What is the compose key?
I can, for example, press [compose][-][-][-] and I get a long dash: '—'
Or [compose][o][o] and I get '°", the symbol to type "°C". Or [compose][L][-] amd I get "£"
And many other combinations that are not included in the keyboard.
Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr
On 12/01/2022 14.57, Dr. Werner Fink wrote:
On 2022/01/12 14:04:46 +0100, Carlos E.R. wrote:
On 12/01/2022 12.14, Carlos E. R. wrote:
Hi,
On this same machine, on 15.2 I have edited file "/etc/X11/Xmodmap".
!! Fourth example: Make Menu key on WIN95 keyboard doing Compose !! CER !! keysym Menu = Multi_key !! keysym Win_R = Multi_key Does not work !!keysym Win_Menu = Multi_key Neither keysym Super_R = Multi_key
This activates the compose key (using XFCE), on the right "Windows" key of my keyboard.
On Leap 15.3 the exact same paragraph does nothing. Fresh test install.
Why?
Keep it simple and use the section `Position of Compose key` from the manual page xkeyboard-config(7) in e.g. /etc/X11/xorg.conf.d/00-keyboard.conf
... or lv3:ralt_switch_multikey
simply play around with setxkbmap to test with -option what you like to use but check with setxkbmap -print the initial setup/configuration
Well, /etc/X11/Xmodmap was simple because I simply copied to configuration from computer to computer and it worked. I found examples on how to do it time ago. Any other method needs study and testing (why so many different methods is confusing). I still do not know why xmodmap doesn't work on Leap 15.3 er@Erebor4:~> setxkbmap -print xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete" }; xkb_symbols { include "pc+es+inet(evdev)+terminate(ctrl_alt_bksp)+compose(rwin)" }; xkb_geometry { include "pc(pc105)" }; }; Notice that "compose" is listed there, but was not working. Unless what I did below has created it. And this does work and is trivial, except that applies only to one desktop:
I have not done that, but I thought that maybe XFCE could have a keyboard configuration tool, and it does.
So, going to XFCE setup, keyboard, layout. Disable "use system defaults". Then on the "Compose key" button, select "Right Win", and it works.
What is the compose key?
I can, for example, press [compose][-][-][-] and I get a long dash: '—'
Or [compose][o][o] and I get '°", the symbol to type "°C". Or [compose][L][-] amd I get "£"
And many other combinations that are not included in the keyboard.
-- Cheers / Saludos, Carlos E. R. (from oS Leap 15.3 x86_64 (Erebor-4))
On 2022-01-12 08:09:33 Carlos E. R. wrote:
|On 12/01/2022 14.57, Dr. Werner Fink wrote: |> On 2022/01/12 14:04:46 +0100, Carlos E.R. wrote: |>> On 12/01/2022 12.14, Carlos E. R. wrote: |>>> Hi, |>>> |>>> On this same machine, on 15.2 I have edited file "/etc/X11/Xmodmap". |>>> |>>> !! Fourth example: Make Menu key on WIN95 keyboard doing Compose |>>> !! CER |>>> !! keysym Menu = Multi_key |>>> !! keysym Win_R = Multi_key Does not work |>>> !!keysym Win_Menu = Multi_key Neither |>>> keysym Super_R = Multi_key |>>> |>>> This activates the compose key (using XFCE), on the right "Windows" |>>> key of my keyboard. |>>> |>>> On Leap 15.3 the exact same paragraph does nothing. Fresh test |>>> install. |>>> |>>> Why? |> |> Keep it simple and use the section `Position of Compose key` from the |> manual page xkeyboard-config(7) in e.g. |> /etc/X11/xorg.conf.d/00-keyboard.conf |> |> ... or lv3:ralt_switch_multikey |> |> simply play around with setxkbmap to test with -option what you like to |> use but check with setxkbmap -print the initial setup/configuration | |Well, /etc/X11/Xmodmap was simple because I simply copied to |configuration from computer to computer and it worked. I found examples |on how to do it time ago. | |Any other method needs study and testing (why so many different methods |is confusing). I still do not know why xmodmap doesn't work on Leap 15.3 | | |er@Erebor4:~> setxkbmap -print |xkb_keymap { | xkb_keycodes { include "evdev+aliases(qwerty)" }; | xkb_types { include "complete" }; | xkb_compat { include "complete" }; | xkb_symbols { include |"pc+es+inet(evdev)+terminate(ctrl_alt_bksp)+compose(rwin)" }; | xkb_geometry { include "pc(pc105)" }; |}; | | |Notice that "compose" is listed there, but was not working. Unless what |I did below has created it. | |And this does work and is trivial, except that applies only to one desktop: |>> I have not done that, but I thought that maybe XFCE could have a |>> keyboard configuration tool, and it does. |>> |>> So, going to XFCE setup, keyboard, layout. Disable "use system |>> defaults". Then on the "Compose key" button, select "Right Win", and it |>> works. |>> |>> |>> What is the compose key? |>> |>> I can, for example, press [compose][-][-][-] and I get a long dash: '—' |>> |>> Or [compose][o][o] and I get '°", the symbol to type "°C". Or |>> [compose][L][-] amd I get "£" |>> |>> And many other combinations that are not included in the keyboard.
Hee hee... the word 'simple' doesn't belong in a discussion of X keyboard configuration. :-) Leslie -- Distribution: openSUSE Leap 15.3 x86_64
On 15/01/2022 03.01, J Leslie Turriff wrote:
On 2022-01-12 08:09:33 Carlos E. R. wrote:
|On 12/01/2022 14.57, Dr. Werner Fink wrote: |> On 2022/01/12 14:04:46 +0100, Carlos E.R. wrote: |>> On 12/01/2022 12.14, Carlos E. R. wrote: |>>> Hi, |>>> |>>> On this same machine, on 15.2 I have edited file "/etc/X11/Xmodmap". |>>> |>>> !! Fourth example: Make Menu key on WIN95 keyboard doing Compose |>>> !! CER |>>> !! keysym Menu = Multi_key |>>> !! keysym Win_R = Multi_key Does not work |>>> !!keysym Win_Menu = Multi_key Neither |>>> keysym Super_R = Multi_key |>>> |>>> This activates the compose key (using XFCE), on the right "Windows" |>>> key of my keyboard. |>>> |>>> On Leap 15.3 the exact same paragraph does nothing. Fresh test |>>> install. |>>> |>>> Why? |> |> Keep it simple and use the section `Position of Compose key` from the |> manual page xkeyboard-config(7) in e.g. |> /etc/X11/xorg.conf.d/00-keyboard.conf |> |> ... or lv3:ralt_switch_multikey |> |> simply play around with setxkbmap to test with -option what you like to |> use but check with setxkbmap -print the initial setup/configuration | |Well, /etc/X11/Xmodmap was simple because I simply copied to |configuration from computer to computer and it worked. I found examples |on how to do it time ago. | |Any other method needs study and testing (why so many different methods |is confusing). I still do not know why xmodmap doesn't work on Leap 15.3 | | |er@Erebor4:~> setxkbmap -print |xkb_keymap { | xkb_keycodes { include "evdev+aliases(qwerty)" }; | xkb_types { include "complete" }; | xkb_compat { include "complete" }; | xkb_symbols { include |"pc+es+inet(evdev)+terminate(ctrl_alt_bksp)+compose(rwin)" }; | xkb_geometry { include "pc(pc105)" }; |}; | | |Notice that "compose" is listed there, but was not working. Unless what |I did below has created it. | |And this does work and is trivial, except that applies only to one desktop: |>> I have not done that, but I thought that maybe XFCE could have a |>> keyboard configuration tool, and it does. |>> |>> So, going to XFCE setup, keyboard, layout. Disable "use system |>> defaults". Then on the "Compose key" button, select "Right Win", and it |>> works. |>> |>> |>> What is the compose key? |>> |>> I can, for example, press [compose][-][-][-] and I get a long dash: '—' |>> |>> Or [compose][o][o] and I get '°", the symbol to type "°C". Or |>> [compose][L][-] amd I get "£" |>> |>> And many other combinations that are not included in the keyboard.
Hee hee... the word 'simple' doesn't belong in a discussion of X keyboard configuration. :-)
Configuration may not be easy, as can be seen on most of the suggestions seen here. But once the compose key is enabled, using it is trivial, which is what I said. -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.3 x86_64 (Erebor-4))
On 2022-01-14 20:22:33 Carlos E. R. wrote:
|On 15/01/2022 03.01, J Leslie Turriff wrote: |> On 2022-01-12 08:09:33 Carlos E. R. wrote: |>> |On 12/01/2022 14.57, Dr. Werner Fink wrote: |>> |> On 2022/01/12 14:04:46 +0100, Carlos E.R. wrote: |>> |>> On 12/01/2022 12.14, Carlos E. R. wrote: |>> |>>> Hi, |>> |>>> |>> |>>> On this same machine, on 15.2 I have edited file |>> |>>> "/etc/X11/Xmodmap". |>> |>>> |>> |>>> !! Fourth example: Make Menu key on WIN95 keyboard doing Compose |>> |>>> !! CER |>> |>>> !! keysym Menu = Multi_key |>> |>>> !! keysym Win_R = Multi_key Does not work |>> |>>> !!keysym Win_Menu = Multi_key Neither |>> |>>> keysym Super_R = Multi_key |>> |>>> |>> |>>> This activates the compose key (using XFCE), on the right |>> |>>> "Windows" key of my keyboard. |>> |>>> |>> |>>> On Leap 15.3 the exact same paragraph does nothing. Fresh test |>> |>>> install. |>> |>>> |>> |>>> Why? |>> |> |>> |> Keep it simple and use the section `Position of Compose key` from |>> |> the manual page xkeyboard-config(7) in e.g. |>> |> /etc/X11/xorg.conf.d/00-keyboard.conf |>> |> |>> |> ... or lv3:ralt_switch_multikey |>> |> |>> |> simply play around with setxkbmap to test with -option what you like |>> |> to use but check with setxkbmap -print the initial |>> |> setup/configuration |>> | |>> |Well, /etc/X11/Xmodmap was simple because I simply copied to |>> |configuration from computer to computer and it worked. I found |>> | examples on how to do it time ago. |>> | |>> |Any other method needs study and testing (why so many different |>> | methods is confusing). I still do not know why xmodmap doesn't work |>> | on Leap 15.3 |>> | |>> | |>> |er@Erebor4:~> setxkbmap -print |>> |xkb_keymap { |>> | xkb_keycodes { include "evdev+aliases(qwerty)" }; |>> | xkb_types { include "complete" }; |>> | xkb_compat { include "complete" }; |>> | xkb_symbols { include |>> |"pc+es+inet(evdev)+terminate(ctrl_alt_bksp)+compose(rwin)" }; |>> | xkb_geometry { include "pc(pc105)" }; |>> |}; |>> | |>> | |>> |Notice that "compose" is listed there, but was not working. Unless |>> | what I did below has created it. |>> | |>> |And this does work and is trivial, except that applies only to one desktop: |>> |>> I have not done that, but I thought that maybe XFCE could have a |>> |>> keyboard configuration tool, and it does. |>> |>> |>> |>> So, going to XFCE setup, keyboard, layout. Disable "use system |>> |>> defaults". Then on the "Compose key" button, select "Right Win", |>> |>> and it works. |>> |>> |>> |>> |>> |>> What is the compose key? |>> |>> |>> |>> I can, for example, press [compose][-][-][-] and I get a long dash: |>> |>> '—' |>> |>> |>> |>> Or [compose][o][o] and I get '°", the symbol to type "°C". Or |>> |>> [compose][L][-] amd I get "£" |>> |>> |>> |>> And many other combinations that are not included in the keyboard. |> |> Hee hee... the word 'simple' doesn't belong in a discussion of X |> keyboard configuration. :-) | |Configuration may not be easy, as can be seen on most of the suggestions |seen here. | |But once the compose key is enabled, using it is trivial, which is what |I said.
This might be helpful: https://people.uleth.ca/~daniel.odonnell/Blog/custom-keyboard-in-linuxx11 Leslie -- Distribution: openSUSE Leap 15.3 x86_64
* J Leslie Turriff <jlturriff@mail.com> [01-14-22 21:48]:
This might be helpful: https://people.uleth.ca/~daniel.odonnell/Blog/custom-keyboard-in-linuxx11
even more so: https://www.x.org/releases/X11R7.7/doc/libX11/i18n/compose/en_US.UTF-8.html y'all ever consider trimming your posts. not top posting is only part of netiquette! -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc What sort of day was it? A day like all days, filled with those events that alter and illuminate our times...
Am 12.01.22 um 12:14 schrieb Carlos E. R.:
Hi,
On this same machine, on 15.2 I have edited file "/etc/X11/Xmodmap".
!! Fourth example: Make Menu key on WIN95 keyboard doing Compose !! CER !! keysym Menu = Multi_key !! keysym Win_R = Multi_key Does not work !!keysym Win_Menu = Multi_key Neither keysym Super_R = Multi_key
This activates the compose key (using XFCE), on the right "Windows" key of my keyboard.
On Leap 15.3 the exact same paragraph does nothing. Fresh test install.
Why?
Hi carlos, why have a windows key at all at the keyboard????? ;-)) simoN ps: working "only" with cherry g81-3000 HAD/11 gold-plated mainboard, heavy steel inside (since more than 33 years) and you hear when i HIT a key! (some of my keyboards are a little different (cherry g81-3000 HAD/XX) pps: if you like to kill somebody with a keyboard, try this one ;-)) -- www.becherer.de
On 12/01/2022 14.49, Simon Becherer wrote:
Am 12.01.22 um 12:14 schrieb Carlos E. R.:
Hi,
On this same machine, on 15.2 I have edited file "/etc/X11/Xmodmap".
!! Fourth example: Make Menu key on WIN95 keyboard doing Compose !! CER !! keysym Menu = Multi_key !! keysym Win_R = Multi_key Does not work !!keysym Win_Menu = Multi_key Neither keysym Super_R = Multi_key
This activates the compose key (using XFCE), on the right "Windows" key of my keyboard.
On Leap 15.3 the exact same paragraph does nothing. Fresh test install.
Why?
Hi carlos, why have a windows key at all at the keyboard?????
;-))
So that I can re-purpose it? :-D
simoN
ps: working "only" with cherry g81-3000 HAD/11 gold-plated mainboard, heavy steel inside (since more than 33 years) and you hear when i HIT a key! (some of my keyboards are a little different (cherry g81-3000 HAD/XX)
pps: if you like to kill somebody with a keyboard, try this one ;-))
:-DD -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.3 x86_64 (Erebor-4))
On 2022-01-12 8:49 a.m., Simon Becherer wrote:
Hi carlos, why have a windows key at all at the keyboard?????
On my desktop system, I have an IBM model M keyboard, which does not have a Windows key. For my ThinkPad, I bought some stickers that nicely fit into the Windows key, to make it a Tux key. It's also possible to buy replica IBM keyboards with a Tux key (I believe you have to replace the Windows key top with Tux). https://www.pckeyboard.com/
participants (11)
-
Bengt Gördén
-
Carlos E. R.
-
Carlos E.R.
-
Dave Howorth
-
Dr. Werner Fink
-
J Leslie Turriff
-
James Knott
-
Klaus Maas
-
Patrick Shanahan
-
Peter Suetterlin
-
Simon Becherer