This can basically do anything from triggering an event or task to starting a daemon or service, from running a bash script to opening multiple programs at once. You can even make it a killswitch if you want.
Just put the widget in your panels or desktop and right click it and click 'Configure Run' to configure it.
Your widget doesn't seem to work any more the way it used to work: in plasma 5 it was possible to run a shell command and see its output inside the control bar. I can not make it work that way any more in plasma 6, I only can define a command that should be run when clicked upon. Is this a bug or a feature?
I believe that is some other widget you are talking about. This one did not show output in Plasma 5.
However, here is a way to achieve the functionality you want. Use the below command in this widget.
konsole --hold -e bash -c "echo hi"
It will open konsole and execute "echo hi" or any command you specify in bash. Off cource you can change bash for any other shell.
Ratings & Comments
5 Comments
On plasma 6, nothing can not be set, when the task bar / panel is stacked vertical.
Thanks for the report. Its been fixed.
Your widget doesn't seem to work any more the way it used to work: in plasma 5 it was possible to run a shell command and see its output inside the control bar. I can not make it work that way any more in plasma 6, I only can define a command that should be run when clicked upon. Is this a bug or a feature?
I believe that is some other widget you are talking about. This one did not show output in Plasma 5. However, here is a way to achieve the functionality you want. Use the below command in this widget. konsole --hold -e bash -c "echo hi" It will open konsole and execute "echo hi" or any command you specify in bash. Off cource you can change bash for any other shell.
Ups! You're right: the widget I was using is called "Command Output". I am very sorry for the confusion!