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

Add shortcut to Meta key

Tags: None
(comma "," separated)
piroaa
Registered Member
Posts
2
Karma
0

Add shortcut to Meta key

Sun May 20, 2018 5:54 pm
Hi.
I want to add shortcut to Meta key. I find this in google :
https://github.com/psifidotos/Latte-Doc ... p-launcher
https://www.reddit.com/r/kde/comments/5 ... ng_plasma/
So to do that I just must edit ~/.config/kwinrc and add to section [ModifierOnlyShortcuts] Meta=
Works great for this :
org.kde.plasmashell,/PlasmaShell,org.kde.PlasmaShell,activateLauncherMenu
But I want to run expo. To do that I just run :
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut Expose
in terminal and work great but when I add this:
org.kde.kglobalaccel,/component/kwin,org.kde.kglobalaccel.Component.invokeShortcut,Expose
to ~/.config/kwinrc nothing happens
Is there any possibility to run expo using meta key ?
airdrik
Registered Member
Posts
1854
Karma
5
OS

Re: Add shortcut to Meta key

Tue May 22, 2018 7:55 pm
I believe you should be able to do that through System Settings -> Shortcuts and Gestures -> Custom Shortcuts. Right-click in the empty space under the list of actions -> New -> Global Shortcut -> D-Bus Command, then fill in the necessary details.


airdrik, proud to be a member of KDE forums since 2008-Dec.
piroaa
Registered Member
Posts
2
Karma
0

Re: Add shortcut to Meta key

Sun May 27, 2018 11:57 am
Hi.
Doesn't work. When I pres Meta it show : "Meta + ..." its looks like waiting for another key.
airdrik
Registered Member
Posts
1854
Karma
5
OS

Re: Add shortcut to Meta key

Thu May 31, 2018 6:16 pm
Ah, I apologize.
The first link that you posted includes in the instructions that when making the change to the config that you need to reload the config by calling:
Code: Select all
qdbus org.kde.KWin /KWin reconfigure


This informs kwin that it needs to apply the changes that you've made (alternatively, logging out and back in would do it as well).

If after running that command to reconfigure it still doesn't work, you might go back and verify that it works with the original dbus call listed in those instructions, then double-check that you have the syntax correct. (I did verify that the instructions work as written using Plasma 5.12.4, Latte Dock 0.7.1)


airdrik, proud to be a member of KDE forums since 2008-Dec.
bugworm
Registered Member
Posts
1
Karma
0

Re: Add shortcut to Meta key

Tue Mar 05, 2019 6:54 pm
Code: Select all
kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.kglobalaccel,/component/kwin,org.kde.kglobalaccel.Component,invokeShortcut,ExposeAll"

qdbus org.kde.KWin /KWin reconfigure


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar