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" > InstallLast changelog:
v9 - April 24 2020
* Add Parachute (KWin Script) support (Issue #9) * Added Dutch translations by @Vistaus (Pull Request #3)
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... 😐
8Works 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!
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.
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.
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.
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
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.
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).
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.
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
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.
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.
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.
Ratings & Comments
34 Comments
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... 😐
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!
10 10 the best
10 10 the best
9 9 excellent
10 10 the best
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.
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.
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.
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
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.
What distro (on both your machines)? Does using qdbus-qt5 instead work?
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).
Just to be clear, opensuse on both machines.
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.
Okay, that did it. I gotta admit, I am flabbergasted at your patience and help. I really appreciate it.
10 10 the best
9 +
9 +100
Good but the icon does not have auto-antialias applied.
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
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.
Does it look better in v7?
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.
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.