Reply to topic

Mouse gestures and keyboard shortcuts inputs.

Eien
Registered Member
Posts
7
Karma
0
Hello,

I'm trying to bind a mouse gesture to a keyboard shortcut ctrl+F9 (window presentation / overview) but it's not working.

Does anyone know how to do it?



I'm running kubuntu 18.10 plasma 5.13.5
airdrik
Registered Member
Posts
1698
Karma
4
OS
You should be able to set up custom mouse gestures in System Settings -> Workspace -> Shortcuts -> Custom Shortcuts. Right-click in the left-hand tree-list and select New > Mouse Gesture Action > and select the kind of action you want it to trigger. From there give the new gesture a name, in the Trigger tab hit Edit and perform the gesture in the box, then in the Action tab indicate what you want it to do.
To use the gesture, it should be configured to use the Middle mouse button by default.

If at first this isn't working, you may need to hit the Settings button at the bottom of the Custom Shortcuts pane and ensure the Gestures setting is checked. In that settings view you can also specify the mouse button to use (2=middle, 3=right, 4+ for additional buttons your mouse may have)


airdrik, proud to be a member of KDE forums since 2008-Dec.
Eien
Registered Member
Posts
7
Karma
0
Thank you for your help !
It's working!

I've used commands i've found here:
https://www.reddit.com/r/kde/comments/7pftu0/terminal_commands_to_access_kwin_effects/

Pasting this command in the terminal will give a list of command shortcuts:
-To list all shortcutNames:
Code: Select all
 $ qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.shortcutNames


When you have found the shortcut you need, you replace in the command bellow "shortcutname" by the command you have found.
-To call a shortcutName:
Code: Select all
$ qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut shortcutName


EXEMPLE:
I wanted to use a mouse gesture to call a window presentation/overview (task view in windows,expose/mission control in osx).

1- I have opened a terminal and pasted this command:
Code: Select all
 $ qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.shortcutNames

Ii've scrolled down the list, found the shortcut name : Expose

2- I added this shortcut (Expose) name to replace "shortcutNames" at the end of the second command like this:

Code: Select all
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut Expose


3- Opened system settings > Shortcuts > Custom shortcuts > New Mouse Gesture Action > Command/Url > then copy the command command into the Action tab > Command/URL.

Here's the command to close windows (don't forget the quotation marks) "Shortcutnames"
Code: Select all
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut "Window Close"

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], camoore, Exabot [Bot], Google [Bot], jim52, joshiravi, Majestic-12 [Bot], skylerjett, tosky, Yahoo [Bot]