Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Keyboard Custom Shortcuts in plasma 6 [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Sun Oct 27, 2024 4:20 pm    Post subject: Keyboard Custom Shortcuts in plasma 6 [solved] Reply with quote

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
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 423

PostPosted: Mon Oct 28, 2024 1:10 am    Post subject: Reply with quote

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
View user's profile Send private message
muddle
n00b
n00b


Joined: 01 May 2007
Posts: 30

PostPosted: Thu Oct 31, 2024 6:12 am    Post subject: Reply with quote

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
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 423

PostPosted: Thu Oct 31, 2024 6:25 am    Post subject: Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3872

PostPosted: Thu Oct 31, 2024 9:04 am    Post subject: Reply with quote

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
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Sun Nov 03, 2024 1:43 pm    Post subject: Reply with quote

Thanks everybody, two very useful and non-obvious solutions.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum