Keyboard shortcuts priority

10 months ago by Motorheadbanger to c/linux4noobs

Hello, Ubuntu Studio/KDE here.

Is there any way to change the shortcuts priority? For example, there is a way to switch to keyboard layout 1 by pressing left Ctrl, and to layout 2 by pressing right Ctrl, but in that case any other shortcut that has Ctrl stops working. If I set the layout switching to Ctrl+Shift, any shortcut using Ctrl+Shift+anything else won't work.

On windows, there is a third-party program that allows selecting layouts via right and left Ctrl, and it doesn't interfere with any shortcuts that use Ctrl, i.e. the layout change will trigger only with a single Ctrl press, no holding, no chords. Is there a (relatively easy) way to achieve this in Linux?

foggy 5 points 10 months ago

You are about to find out how much you hate the caps lock key's unjustifiable real estate.

Welcome.

path: 0 20886552, hotness: undefined, score: 5, children: 2
eta 1 point 10 months ago

And that you can tell which editor a person uses based on how they remap it

path: 0 20886552 20889708, hotness: undefined, score: 1, children: 1
NerdInSuspenders 1 point 10 months ago

Shoutout to the emacs homies remapping caps lock to ctrl!

path: 0 20886552 20889708 20893195, hotness: undefined, score: 1, children: 0
cRazi_man 2 points 10 months ago

I don't have the answer to your problem, but this sort of thing can easily be done with a Vial compatible mechanical keyboard.

path: 0 20886203, hotness: undefined, score: 2, children: 0
A_norny_mousse 1 point 10 months ago

but in that case any other shortcut that has Ctrl stops working.

Not so; if the action is bound to the key release, you can still use Ctrl as a modifier with other keys.

FWIW I use Windows key combos for most shortcuts; they never interfer with canonical shortcuts (like Ctrl-c, Alt-F4 etc.).

path: 0 20889027, hotness: undefined, score: 1, children: 0
linux4noobs
linux4noobs

@programming.dev

login for more options
4505
308
83

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?
  • Mention your Linux distro and relevant system details.
  • Describe what you've tried so far.
  • Share your solution even if you found it yourself.
  • Do not delete your post. This allows other people to see possible solutions if they have a similar problem.
  • Properly format any scripts, code, logs, or error messages.
  • Be mindful to omit any sensitive information such as usernames, passwords, IP addresses, etc.

Community Rules

  • Keep discussions respectful and amiable. This community is a space where individuals may freely inquire, exchange thoughts, express viewpoints, and extend help without encountering belittlement. We were all a noob at one point. Differing opinions and ideas is a normal part of discourse, but it must remain civil. Offenders will be warned and/or removed.
  • Posts must be Linux oriented
  • Spam or affiliate links will not be tolerated.

go to feed...