Command Output [Plasma 6]

Plasma 6 Applets

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

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

Original
7
Become a Fan
7.0

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

Plasma 5: https://store.kde.org/p/1166510/

v12 added experimental Support for Ansi Escape Colors (\033[31mRed), 8-bit colors (\033[38;2;255m), and RGB colors (\033[38;5;255;255;255m). More at https://stackoverflow.com/a/33206814/947742
The following commands have been tested:
* git -C ~/Code/plasma-applets/commandoutput/ log --oneline --color --decorate
* SYSTEMD_COLORS=1 journalctl -q -b0 -n10

Other Features:

* 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:

v14 - April 30 2024

* Resize and wrap command TextFields in the config to make them easier to edit (Issue #54)
* Update LibConfig and widget build scripts
* Updated French translations by @Almtesh (Pull Request #52)
* Updated Dutch translations by @Vistaus (Pull Request #53)


Ratings & Comments

9 Comments

QkiZ

10 Excellent widget. Now I can create text with a free memory counter on the upper panel, just like in AmigaOS Workbench

0x00

7 It's an useful widget, but not for all commands eg `top`(or `top -b`), `btop`, `zsh`. It would be better if it supports interactive commands.

azarilh

10 I love it. I can put so much stuff on my panels now. Except i can't seem to be able to put a custom icon that is not an emoji. Is there a way?

azarilh

Nvm i checked your GitHub.

kefkapalazzo

8 As a former tiling window manager user, this applet/widget is exactly what I need. Incredible useful and I think this should be a standard applet in Plasma 6. Just needs a little tweaks here and there, and a few features more. I use it since long a year or so on Plasma 5 before.

kefkapalazzo

Thank you for porting it to Plasma 6! What I would like to see is to specify the "Run every" setting in seconds, minutes and hours. A little checkbox that automatically converts to value*60 would go a long way to me.

Zren

Feature request tracked here: https://github.com/Zren/plasma-applet-commandoutput/issues/50

babblegum

10 was using this a lot on plasma (currently im on gnome) but planning to install plasma6 soonish. would it be possible to specify commands for right and middle click as well? i suppose right might be reserved for the popup menu though, but middle click maybe?

Zren

Right click is reserved for the context menu to open the config window or removing the widget (there are other ways) so I won't be adding that. Middle click is possible I guess. https://github.com/Zren/plasma-applet-commandoutput/issues/51

Pling
0 Affiliates
Details
license GPLv2 or later
version 14
updated
added
downloads 24h 47
mediaviews 24h 0
pageviews 24h 12

More Plasma 6 Applets from Zren:

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

Score 5.0

Other Plasma 6 Applets:

bumblebee-indicator
bxabi
last update date: 11 months ago

Score 7.1

Awesome Widgets
arcanis
last update date: 10 months ago

Score 7.9

Qalculate
dschopf
last update date: 8 months ago

Score 7.7

Shutdown or Switch
davide-sd
last update date: 1 year ago

Score 6.6

Workrave Applet
wojnilowicz
last update date: 4 months ago

Score 6.3

Plasmataker
solant
last update date: 7 months ago

Score 7.3