Command Output

Plasma 5 Applets

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

12
Score 83.5%
Description:

Simple widget to print output of a command run every __ seconds.

* Final newline is striped (you can replace all newlines with spaces in the config).
* You can also specify commands to run on click or scrolling up/down.
* You can change font size and color, and can hide the desktop widget background.
* You can set a fixed width/height it should occupy in the panel.

You might be interested in a more advanced widget called Kargos (https://store.kde.org/p/1173112/) which has a specific syntax for rendering the command's output as buttons/text in a popup.
Last changelog:

v10 - April 30 2020 2 months ago

* Add fixed height setting (Issue #18)
* Always use a fixed size font (Issue #18)
* Wrap only if we don't have a fixed width (not horz panel).
* Show truncated/elided text in tooltip.

marozsas

2 years ago

Thank you. Yes, it works now. For the purpose I need, the stripped newlines is a problem, as the multi-line output get garbled. I think that echoing the output "as-is" you can reach a broad range of users, as it simple to remove newlines by putting a pipe to tr '\n' '' but it is impossible to put it back afterwards. Leave the formatting to the user ! Anyway, thank you !

Report

marozsas

2 years ago

Well, I managed to do that. Just removed the "replace('\n', ' ').trim()" . The affected line is now just the bare output of the command execution: "widget.outputText = stdout".
cheers,

Report

bktan81

1 year ago

or there is a better way without modifying the source code. by adding "echo '' && your-command"

Report

C

Zren

2 years ago

It works with the Kubuntu 18.04 LiveCD. https://streamable.com/8wb4n
Or... wait you're using it as a desktop widget? Hmmm. Yeah that's a bug.

Report

9

Bugworm

3 years ago

Can you add font changing support, like in Digital Clock widget? Thanks

Report

C

Zren

2 years ago

I added font family/size/boldness configuration to v5. Sorry this was on the backburner.

Report

9

nowardev

3 years ago

nice

Report

v10 - April 30 2020 2 months ago

* Add fixed height setting (Issue #18)
* Always use a fixed size font (Issue #18)
* Wrap only if we don't have a fixed width (not horz panel).
* Show truncated/elided text in tooltip.

v10 - April 30 2020 2 months ago

* Add fixed height setting (Issue #18)
* Always use a fixed size font (Issue #18)
* Wrap only if we don't have a fixed width (not horz panel).
* Show truncated/elided text in tooltip.

v9 - November 15 2019 8 months ago

* Change hardcoded min interval to 0ms instead of 1000ms.
* Only remove final newline in stdout. Previous behavior can be re-enabled in the config. (Issue #3)
* Add ability to set default text+outline color like simpleweather.
* Run command immediately on command change. Fixes bug where widget stops updating if command was changed after command was run, but before the command finishes.
* Add ability to set a fixed width (off by default).
* Update Dutch translation by @Vistaus (Pull Request #16)

v8 - February 20 2019 1 year ago

* Fix click + mousewheel commands no longer serializing (Issue #6)

v7 - February 13 2019 1 year ago

* Added Dutch translation by @Vistaus (Pull Request #10)
* Added support opening html links `<a href="">Link</a>` in your web browser.

v6 - February 9 2019 1 year ago

* Fix boldness not persisting.
* Add ability to center/right align output, italicize and underline.
* Add ability to hide background when used as a desktop widget.
* Fix selecting the default font after changing to another font.
* Add ability to run a command on click / mousewheel (Issue #6)

v5 - May 6 2018 2 years ago

* Support use as a Desktop Widget.
* Add ability to change the font family, size, and boldness.

v4 - March 12 2018 2 years ago

* Run command on load so in case the interval is very long.

v3 - April 5 2017 3 years ago

* Use a lower version of QtQuick.Layouts so that the widget works with Plasma 5.5 (Ubuntu 16.04)

v2 - February 20 2017 3 years ago

* Fix configuring intervals other than 1 second. Thanks @sheerhub
* Use the utilities-terminal icon

12345678910
133
product-maker m4xp1 Dec 04 2019 10 the best
10 the best That's my lovest widget! Thank you very much!
product-maker b1tl0rd Jul 21 2019 10 the best
10 the best
product-maker x-varlesh-x May 24 2019 10 the best
10 the best
product-maker waces May 16 2019 9 excellent
9 excellent
product-maker alex1701c Apr 13 2019 9 excellent
+
product-maker smxms Mar 27 2019 9 excellent
+
product-maker Bugworm Mar 18 2019 9 excellent
+
product-maker jtaillon Feb 13 2019 9 excellent
+
product-maker mockroot Dec 28 2018 9 excellent
+
product-maker intika Oct 19 2018 9 excellent
+
product-maker artos May 13 2018 9 excellent
product-maker thevladsoft May 09 2018 9 excellent
product-maker alex-l Mar 17 2017 9 excellent
product-maker MalteK Feb 19 2017 9 excellent
product-maker nowardev Jan 01 2017 9 excellent
product-maker srog Dec 26 2016 9 excellent
product-maker Base: 4 x 5.0 Ratings
feldim2425
Jun 21 2020
artdev
Jun 20 2020
slm33
Apr 30 2020
m4xp1
Dec 04 2019
b1tl0rd
Jul 21 2019
waces
May 15 2019
alex1701c
May 03 2019
smxms
Mar 27 2019
Bugworm
Mar 18 2019
m0ji
Feb 06 2019
x-varlesh-x
Apr 05 2018
mirkogennari
Mar 17 2018
x-varlesh-x
May 13 2018
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
10
updated Apr 30 2020
added Dec 26 2016
downloads 24h
6
mediaviews 24h 0
pageviews 24h 12