Bug 468137 - Feature request: Add the ability to execute a command by clicking on the spacer
Summary: Feature request: Add the ability to execute a command by clicking on the spacer
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel Spacer widget (show other bugs)
Version: master
Platform: Other Other
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-04 03:17 UTC by darhma
Modified: 2023-04-06 19:29 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description darhma 2023-04-04 03:17:47 UTC
SUMMARY
I would like to have the ability to execute a command when I click on the spacer, for example qdbus org.kde.kglobalaccel /component/kwin invokeShortcut Overview to see the overview, this is somewhat doable using other applets but I haven't found anything that uses automatically all available space as the spacer does. Honestly, not being a programmer, I don't know how complicated it can be to add a similar option, so mine is just an idea that I share (and I'm not sure how useful it can be for others, maybe it's something very related to my setup).
Comment 1 Nate Graham 2023-04-04 17:48:14 UTC
Hmm, this seems like a very niche use case. Can you use one of the widgets available on store.kde.org that support runing arbitrary terminal commands for this purpose?
Comment 2 darhma 2023-04-05 07:34:07 UTC
I'm currently using https://store.kde.org/p/1704465 creating whitespace using spaces instead of text, but that's a workaround and space isn't "flexible".
Comment 3 Nate Graham 2023-04-05 14:55:12 UTC
Yeah but why do you specifically need the flexible space to be clickable?
Comment 4 darhma 2023-04-06 17:39:54 UTC
(In reply to Nate Graham from comment #3)
> Yeah but why do you specifically need the flexible space to be clickable?

I use two separators to center the clock and some other applets and I don't use the task manager, so I would like to be able to click on the part occupied by the separators to start the overview, but I understand that it is a very niche request, so if you want close well, in the end the solution I'm currently using is not bad after all
Comment 5 Nate Graham 2023-04-06 18:32:11 UTC
Yeah I think it may be too niche for us to support, sorry. FWIW you may be able to use one of those "run command" widgets next to your spacer widget, and make its icon blank so it's invisible.
Comment 6 darhma 2023-04-06 19:29:34 UTC
(In reply to Nate Graham from comment #5)
> Yeah I think it may be too niche for us to support, sorry. FWIW you may be
> able to use one of those "run command" widgets next to your spacer widget,
> and make its icon blank so it's invisible.

Yes, just yesterday I tried "scriptinator" where I can disable the icon and also enlarge the space occupied by the widget in order to actually make it very similar to a spacer.