
Command Output [Plasma 6]
Source (link to git-repo or to original if based on someone elses unmodified work):
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:
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.
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
10 Excellent widget. Now I can create text with a free memory counter on the upper panel, just like in AmigaOS Workbench
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.
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?
Nvm i checked your GitHub.
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.
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.
Feature request tracked here: https://github.com/Zren/plasma-applet-commandoutput/issues/50
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?
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