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

Toggling Desktop Grid in KDE commands

Tags: None
(comma "," separated)
daljit97
Registered Member
Posts
1
Karma
0
So I am using touchpad gestures in KDE using libinput-gestures. Now I would like to do the following: create a script that show that the Desktop Grid with a certain gesture, then go back using the same gesture backwards. For example three fingers up to show and then three fingers down to go back, but if three fingers down is used when grid is not shown, I would like to trigger another command. The way I wanted to do this would be write a script that checks if the grid is currently active and then adjust the commands accordingly. Something like this:
Code: Select all
if (gridActive):
 toggleGrid()
else :
 doSomethingElse()


However, how I can I know if the grid is active or not, I have looked at the possible qdbus commands by using qdbusviewer but couldn't find anything.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]