Present Windows Button

Plasma 5 Applets

Source i (link to git-repo or to original if based on someone elses unmodified work):

https://github.com/Zren/plasma-applet-presentwindows

10
Become a Fan
8.1

Available as/for:
Description:
Trigger the Present Windows desktop effect's shortcut with a click.

It essentially runs the following command on click.
qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "ExposeAll"

You can also configure it to toggle the desktop grid.

v5 has a Unity 7 style so that it looks better with the Unity Ambiance desktop theme.

v9 has support for the Parachute KWin Script (https://store.kde.org/p/1370195/) which can be install via:
System Settings > Window Management > KWin Scripts > Get New Scripts > Search for "Parachute" > Install
Last changelog:

v9 - April 24 2020

* Add Parachute (KWin Script) support (Issue #9)
* Added Dutch translations by @Vistaus (Pull Request #3)


Ratings & Comments

34 Comments

gleycon

Will this app have a version for plasma 6? My Garuda forced entry to plasma 6. But this add-on is more important to me than plasma 6. Now I'm unable to use it... 😐

jacksaur

8 Works as intended, fast too. Only criticism I have is that the icon is a fixed size. If the width could adapt to custom icons, rather than resizing the custom icon to fit the tiny box, it'd be perfect!

narch

10 10 the best

mirkogennari

10 10 the best

jcmljunior

9 9 excellent

shawnsterp

10 10 the best

shawnsterp

The widget is not working. It also is not allowing me to toggle the enable "present windows" in the widget settings. I have the effect enabled in the kde system settings, and compositing is on. I have switched between opengl 2-3-xrender with no effect. I am able to get the effect with the key combo, but not the widget.

Zren

Weird. Sounds like it's not able to call commands. All this widget does is call one of these terminal commands to trigger the keyboard shortcut. https://github.com/Zren/plasma-applet-presentwindows/blob/master/package/contents/ui/Main.qml#L87 The only other thing I can think of, is that you only have 0-1 windows open, as the effect does nothing when there's only 1 window.

shawnsterp

Yeah, very strange. I tested it out and it works fine on my other machine (same distro and all). So, obviously something weird going on with my laptop. Just for clarity sake, when I try to toggle the present windows effect and show desktop effect in the widget settings, it will not do it. It turns toggled (filled blue) for a split second, and then returns to untoggled. Just mentioning in case that triggers an idea as to what is wrong lol. Thanks for the feedback.

Zren

Go to System Settings > Workspace Behavior > Desktop Effects > Present Windows and enable it there. Also, run the following commands to make sure compositor is active? qdbus org.kde.KWin /Compositor active qdbus org.kde.KWin /Compositor compositingPossible qdbus org.kde.KWin /Compositor compositingNotPossibleReason

shawnsterp

interesting... " If 'qdbus' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf qdbus". On the computer that the widget is working on, I get an expected output instead of this. So, what am I missing? Probably something obvious, lol, but I swear, compositing is on. I can toggle the present windows with the key combo.

Zren

What distro (on both your machines)? Does using qdbus-qt5 instead work?

shawnsterp

Opensuse. On the machine that the widget works on, both qdbus... AND qdbus-qt5... commands display as "true". On the computer that the widget does NOT work on, only the qdbus-qt5 commands work. I did a search for anything installed with qdbus, and the only package on either machine is libqt5-qdbus (only one installed and only one available).

shawnsterp

Just to be clear, opensuse on both machines.

Zren

Edit ~/.local/share/plasma/plasmoids/com.github.zren.presentwindows/contents/ui/Main.qml So that the qdbus commands are qdbus-qt5. Then relog to restart the panel. The widget should work then. No idea why you only have qdbus-qt5 on that machine. I'll look into using that command by default in the next version.

shawnsterp

Okay, that did it. I gotta admit, I am flabbergasted at your patience and help. I really appreciate it.

RustyRaptor

10 10 the best

p4prik4

9 +

Mirko-Gennari

9 +100

azarilh

Good but the icon does not have auto-antialias applied.

Zren

I'm not sure what you mean? Is the "windows like icon" it blurry or the "Unity 7" style? Are you using a large panel? Or are you using a HiDPI screen? Maybe I need to use SvgItem.smooth? I don't think normal icons use smooth though. Or wait, IconItem DOES use smooth by default, while SvgItem does NOT use it by default. Interesting. * https://github.com/KDE/plasma-framework/blob/master/src/declarativeimports/core/iconitem.cpp#L42 * https://github.com/KDE/plasma-framework/blob/master/src/declarativeimports/core/svgitem.cpp#L39

azarilh

The standard icon you put does not need antialias coz it's only squares, but if ye try to change icon (something that's not only squares), you'll notice there is no smoothness.

Zren

Does it look better in v7?

azarilh

Seems that the antialias now works with icons that are in the icon set but not with icons that are in my home folder, but this is fine, i just need to add the icons in the icon set.

Warmuser

Great Job! It works great on Fedora 26 + KDE Plasma 10. But sometimes If I try to click the button with the opened windows it does do nothing. It happened only a few times.

1 Pling
0 Affiliates
Details
license GPLv2 or later
version 9
updated
added
downloads 24h 52
mediaviews 24h 0
pageviews 24h 6

More Plasma 5 Applets from Zren:

Win7 Show Desktop [Plasma 5]
Zren
last update date: 10 months ago

Score 8.3

AlphaBlack Control [Plasma 5]
Zren
last update date: 1 year ago

Score 8.2

Command Output [Plasma 5]
Zren
last update date: 1 year ago

Score 9.0

TodoList
Zren
last update date: 4 years ago

Score 8.8

GitLab Issues
Zren
last update date: 5 years ago

Score 6.9

GitHub Issues
Zren
last update date: 5 years ago

Score 7.9

Other Plasma 5 Applets:

WebView test
kinta
last update date: 10 years ago

Score 5.0

Google Task - web - obsoleted
suli
last update date: 8 years ago

Score 6.1

CodeShip Monitor
Naraku
last update date: 8 years ago

Score 5.0

Media Controller Compact
bkueng
last update date: 6 years ago

Score 7.7

Shaders example plasmoid
mart
last update date: 11 years ago

Score 6.5

Simple RSS reader
aloos
last update date: 9 years ago

Score 7.0