Bug 379319 - Request: virtual desktop pager -- run arbitrary command when selecting current desktop
Summary: Request: virtual desktop pager -- run arbitrary command when selecting curren...
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Pager widget (other bugs)
Version First Reported In: 5.9.5
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-28 17:06 UTC by AndyKluger
Modified: 2021-05-14 14:18 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AndyKluger 2017-04-28 17:06:19 UTC
The virtual desktop pager offers two options for behavior when the current desktop is clicked: do nothing, and show desktop.

This request is for a third radio button with a text entry field to run any entered command when the current desktop is clicked.

The most obvious use case would be:

qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut ShowDesktopGrid

In fact, I'd be happy if just a hardcoded option for that action were added -- but allowing arbitrary commands is more flexible. I'll leave it to the implementers to decide which makes more sense, but I do think one of them should be added.
Comment 1 Nikolaos Kakouros 2017-04-29 10:49:28 UTC
I think that a middle click would also be nice.
Comment 2 David Edmundson 2017-10-02 08:31:42 UTC
I'm not adding UIs to run shell scripts into any places in the UI.

Note the virtual desktop is an exposed property on the root window.
You could write a program to monitor when that changes.
Comment 3 AndyKluger 2017-10-02 14:58:45 UTC
(In reply to David Edmundson from comment #2)
> I'm not adding UIs to run shell scripts into any places in the UI.
> 
> Note the virtual desktop is an exposed property on the root window.
> You could write a program to monitor when that changes.

To be clear, none of this request is about taking action when the VD changes, so I don't get what you're saying at the end there.

Also there are other places where arbitrary commands are supported (clipboard actions, custom shortcuts, autostart, etc.) so your rationale is not obvious.

Does this mean you also will never add the ability to trigger ShowDesktopGrid by clicking on the current VD in the pager, as specified in the report?

Would you care to write here your rationale for refusing each of these?
Comment 4 Christoph Feck 2017-10-12 19:54:03 UTC
I suggest to report your actual wish (showing the grid when clicking on the pager) without mentioning external commands.
Comment 5 AndyKluger 2021-05-14 14:18:43 UTC
At this point the third party script called Parachute, while buggy, provides a much better experience than either Present Windows or Desktop Grid for me, and so ideally clicking the current VD in the pager could trigger Parachute.

This report is now my "actual wish."