This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Activate KRunner with META key

Tags: None
(comma "," separated)
User avatar
simgunz
Registered Member
Posts
56
Karma
0
OS

Activate KRunner with META key

Tue Jun 19, 2018 6:20 am
I would like to activate KRunner with the META key. The krunner shortcut is ALT+F2, so I tried the following:

1. Assign ALT+F1 to KRunner. Not working.
2. Run
Code: Select all
kwriteconfig5 --file kwinrc --group ModifierOnlyShortcuts --key Meta "Alt+F2"
to assign the META key to ALT+F2. Not working.

It seems that if nothing is written in the config file ~/.config/kwinrc META is automatically assigned to ALT+F1, is that right?

Any suggestion?
airdrik
Registered Member
Posts
1854
Karma
5
OS

Re: Activate KRunner with META key

Wed Jun 20, 2018 8:22 pm
A little googling turns up a reddit post which links to a blog post which describes how to do it.

It looks like the piece that you are missing is that you don't bind the modifier to another key (sequence), but you bind it to the specific (dbus) action that you want it to perform; which in the case of krunner is: org.kde.krunner,/App,,display
(also, make sure you run kwin_x11 --replace to restart kwin for the change can take effect)


airdrik, proud to be a member of KDE forums since 2008-Dec.
User avatar
simgunz
Registered Member
Posts
56
Karma
0
OS

Re: Activate KRunner with META key

Thu Jun 21, 2018 11:26 am
I need to improve my googling skills given that I missed such an obvious answer. ;-)

I've just found many answers referring to the now obsolete ksuperkey.

Thanks for the reply
The Lucho
Registered Member
Posts
3
Karma
0

Re: Activate KRunner with META key

Fri Jun 04, 2021 6:39 am
Just to resume the code here:
Add to the file /home/username/.config/kwinrc the following code, and then restart from console with kwin_x11 --replace & disown
Code: Select all
[ModifierOnlyShorcuts]
 Meta=org.kde.krunner,/App,,display


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]