Present Windows Button

Plasma 5 Applets

Source (link to git-repo or to original if based on someone elses unmodified work): https://github.com/Zren/plasma-applet-presentwindows

10
8 .0
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 6 months ago

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

9

jcmljunior

5 months ago

9 9 excellent

Report

10

shawnsterp

10 months ago

10 10 the best

Report

10

shawnsterp

10 months ago

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.

Report

C

Zren

10 months ago

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.

Report

10

shawnsterp

10 months ago

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.

Report

C

Zren

10 months ago

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

Report

10

shawnsterp

10 months ago

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.

Report

C

Zren

10 months ago

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

Report

10

shawnsterp

10 months ago

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).

Report

C

Zren

10 months ago

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.

Report

10

shawnsterp

10 months ago

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

Report

10

shawnsterp

10 months ago

Just to be clear, opensuse on both machines.

Report

S3 10

RustyRaptor

1 year ago

10 10 the best

Report

9

p4prik4

1 year ago

9 +

Report

9

Mirko-Gennari

2 years ago

9 +100

Report

azarilh

2 years ago

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

Report

C

Zren

2 years ago

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

Report

azarilh

2 years ago

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.

Report

C

Zren

2 years ago

Does it look better in v7?

Report

azarilh

2 years ago

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.

Report

9

Warmuser

3 years ago

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.

Report

DeskDesign

3 years ago

I have Linux Mint KDE 18.2. It happens that the program works correctly but always when I log in I must activate it manually from the options: Present Windows Efect, and, Show Desktop Grid Effect. Is there any way to fix it? Thanks. Sorry my poor english.

Report

C

Zren

3 years ago

If its already checked in the system settings > uncheck it > hit apply > check it > hit apply before rebooting.

Report

DeskDesign

3 years ago

[SOLVED] I just had to activate the services from the KDE setting: Present Windows, and, Show Desktop Grid. And then activate from the setting of your widget and is active every time when restarting the system. Thanks.

Report

C

Zren

3 years ago

Hmmm. Is it persistent if you enable the effect via System Settings > Desktop Behaviour > Desktop Effects? Maybe my checkboxes are doing something incorrect.

Report

v9 - April 24 2020 6 months ago

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

v8 - September 16 2018 2 years ago

* Show preset values for the 22px and 16px icon in the config icon dropdown menu.
* Fix the Desktop Effect toggle buttons not persisting accross reboots (Issue #1).

v7 - August 4 2018 2 years ago

* Add a 22px icon, with pathing done by @andreyorst.
* Make sure the bundled icon is always smooth, even on older versions of plasma.

v6 - April 14 2018 2 years ago

Force Latte Dock v0.7.5+ to not hide this widget.

v5 - April 11 2018 2 years ago

* Add Unity 7 virtual desktop indicator style for use with the Unity Ambiance desktop theme (used in the United Look and Feel).

v4 - July 8 2017 3 years ago

* Add ability to change the panel icon.

v3 - June 22 2017 3 years ago

* Add option to toggle the Desktop Grid Effect.

v2 - June 15 2017 3 years ago

* Provide checkbox in the config to quickly enabled the "Present Windows" desktop effect.

12345678910
82
product-maker jcmljunior May 02 2020 9 excellent
9 excellent
product-maker shawnsterp Dec 09 2019 10 the best
10 the best
product-maker RustyRaptor May 24 2019 10 the best
10 the best
product-maker p4prik4 Jan 01 2019 9 excellent
+
product-maker Mirko-Gennari Sep 18 2018 9 excellent
+100
product-maker sultanypsilon Oct 20 2017 9 excellent
product-maker Warmuser Sep 11 2017 9 excellent
product-maker lctrgk Jul 08 2017 9 excellent
product-maker Cybernix Jun 23 2017 9 excellent
product-maker vmorenomarin Jun 18 2017 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
strujillodv
Jul 26 2020
termitavee
Jan 17 2020
shawnsterp
Dec 09 2019
RustyRaptor
May 24 2019
floorek
Jan 05 2019
p4prik4
Jan 01 2019
Zorit
Sep 12 2018
Mirko-Gennari
Aug 07 2018
Warmuser
Apr 23 2018
mirkogennari
Mar 17 2018
RustyRaptor
May 24 2019
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
1 Plings
0 Affiliates
Details
license
GPLv2 or later
version
9
updated Apr 24 2020
added Jun 15 2017
downloads 24h
34
mediaviews 24h 0
pageviews 24h 24