this post was submitted on 10 Aug 2023
26 points (96.4% liked)

Linux

47345 readers
1260 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

What if I want to combine Ctrl+Shift+1+0 to obtain "≠", for example? I'm saying this combination, like I could say any other (like a+b), it's just one example.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (1 children)

I may be wrong but I don't think xmodmap can do key combinations. You can use it to remap individual keys and modifiers.

I would suggest autokey for what you want. With it, you create a phrase that outputs ≠ and assign it to the key combo you want.

Keep in mind that using both 1 and 0 for a combo won't work, you must use a single normal key plus optional modifiers.

You can do it if you reassign either 1 or 0 to be a modifier, but I imagine you need to write 1 and 0 occasionally.

You could remap one of them temporarily with xmodmap, trigger the combo you want with autokey, then map them back. You can use autokey to run commands to apply xmodmap maps, or you can run the commands in other ways (command line, taskbar shortcuts etc.)

If you have a smart keyboard (for example one using Via or QMK firmware) you can do these kind of shenanigans directly with the firmware.

[–] [email protected] 1 points 1 year ago

I'll investigate it, thanks!