View previous topic :: View next topic |
Author |
Message |
jesnow l33t
Joined: 26 Apr 2006 Posts: 882
|
Posted: Sun Oct 27, 2024 4:20 pm Post subject: Keyboard Custom Shortcuts in plasma 6 [solved] |
|
|
I recently got a compact keyboard which is great but missing <home> and <end> which I use a lot. Simple, I'll "just" create a custom shortcut. Not so fast, says KDE. We now no longer have custom shortcuts, that's so KDE 5 and somehow no good for wayland, which everyone uses now anyway because its better for gaming.
OK, is there another way of doing this so that I can map, let's say <win>+<left arrow> to <home>? It looks like it can be done by editing xorg.conf. I thought I was never going to have to do that again.
Cheers,
Jon.
Last edited by jesnow on Sun Nov 03, 2024 1:44 pm; edited 1 time in total |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 423
|
Posted: Mon Oct 28, 2024 1:10 am Post subject: |
|
|
After looking around a bit, I can only suggest keyd:
"Linux lacks a good key remapping solution. In order to achieve satisfactory results a medley of tools need to be employed (e.g xcape, xmodmap) with the end result often being tethered to a specified environment (X11). keyd attempts to solve this problem by providing a flexible system wide daemon which remaps keys using kernel level input primitives (evdev, uinput)."
https://github.com/rvaiya/keyd
It can be found in a few overlays:
http://gpo.zugaina.org/app-misc/keyd
You could alternatively copy that ebuild and the files directory to maintain your own ebuild in a personal repo.
The ebuild appears to be able to install an openrc service, if that applies to you.
The config file is:
/etc/keyd/default.conf
and seems pretty straight forward. The ebuild appears to install a default.conf config file that is found in the overlay files directory. |
|
Back to top |
|
|
muddle n00b
Joined: 01 May 2007 Posts: 30
|
Posted: Thu Oct 31, 2024 6:12 am Post subject: |
|
|
I'm using Plasma 6.2.2. There you can find the shortcuts: Systemsettings -> Keyboard -> Shortcuts.
The shortcuts for "Beginning of Line" and "End of Line" can be set under Navigation. |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 423
|
Posted: Thu Oct 31, 2024 6:25 am Post subject: |
|
|
I just wanted to point out the difference between those two approaches, in case it is not obvious. Keyboard shortcuts are available once logged into the Plasma session. Since Keyd uses kernel level input, those shortcuts would be available once the keyd service is loaded. If the home and end keys would never be needed in the shell or outside of a Plasma session, then Plasma shortcuts would be the easiest solution. Otherwise, if you need early loading or always available full keyboard remapping, then consider something like keyd. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3872
|
Posted: Thu Oct 31, 2024 9:04 am Post subject: |
|
|
Very interesting...
Emerged here as a reminder.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
jesnow l33t
Joined: 26 Apr 2006 Posts: 882
|
Posted: Sun Nov 03, 2024 1:43 pm Post subject: |
|
|
Thanks everybody, two very useful and non-obvious solutions. |
|
Back to top |
|
|
|