Command Output

Plasma 5 Add-Ons

Source (required if based on other people's work): https://github.com/Zren/plasma-applet-commandoutput

2
Score 67%
Description:

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

Newlines are striped.

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 commands output as buttons/text in a popup.
Last changelog:

v5 - May 6 2018 4 months ago

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

pierat

1 month ago

Nice, small. and very useful! :) One request, though: could you make the alignment of the output optional? (Left, center, right).

Report

marozsas

4 months ago

There is no output on Kubuntu 18.04. Just a plain dark grey window even with the provided test example. Missing dependecies ?

Report

C

Zren

4 months 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

C

Zren

4 months ago

v5 should fix use as a desktop widget.

Report

marozsas

4 months 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

4 months 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

Bugworm

1 year ago

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

Report

C

Zren

4 months ago

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

Report

nowardev

1 year ago

nice

Report

v5 - May 6 2018 4 months ago

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

v4 - March 12 2018 6 months ago

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

v3 - April 5 2017 1 year ago

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

v2 - February 20 2017 1 year ago

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

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
1 Plings
Details
license
GPLv2 or later
version
5
updated May 06 2018
added Dec 26 2016
downloads today
0
page views today 1