Description: Applet for KDE Plasma 5 showing a status of the servers defined by user.
Features: - Add as many servers as you want - Customize font size and icons - 4 server checking methods: ping, ping for IPv6 addresses, HTTP 200 OK response, custom command - Automatic update of server status - Manual refresh by clicking on the server name
Custom command: You can define your custom command which will be executed on each server update. The plasmoid interprets exit code 0 as the server being online. Any other exit code will result in offline status. You can use `%hostname%` string in the command definition to pass particular server's hostname as an argument or option.
I've just added and started using this, it is a great tool! Please make sure you update your applet for Plasma 6 which is coming early next year. More info @ https://pointieststick.com/2023/10/24/its-time-to-port-your-widgets-to-plasma-6/
10Very cool.
I use the "command" option for checking my home computer.
nc -vz AdressOfMyHomeComputer PortToMyHomeComputer
nc command works! (instead of ping)
Anyways, I wanted to say that the "move up" and "move down" buttons are broken - they remain disabled no matter where I click. I had to edit ~/.config/plasma-org.kde.plasma.desktop-appletsrc manually to reorder my servers
A quick look at the source code reveals that it uses the plasmoid user configuration API.
As stated in `https://develop.kde.org/docs/plasma/widget/configuration/#contentsconfigmainxml` , everything is stored in `~/.config/plasma-org.kde.plasma.desktop-appletsrc`
Just open in text editor and search for `server=` and you will find the configuration serialised to `json` very quickly
Thanks, this works really well!
One question though: It seems that the custom command always runs in bash, regardless of what shell I'm using. Is it possible to change that?
Elegant widget. Thank you. However, I have just installed it using the Plasma 5 'Get New Widgets' dialogue, and it is showing server faults when I can ping the same URLs (including one which is my router) from Konsole without any problem. Is this an installation problem?
Thanks and regards
Thank you, i was waiting for this.
Could you please add another option to execute a command when the server status changes? I'd like to use notify-send.
As far as I can see, the command option seems to execute the command every time the server is checked for rather than only when the server status changes. Is there a way to execute a command only when the servers status changes?
Ratings & Comments
29 Comments
I've just added and started using this, it is a great tool! Please make sure you update your applet for Plasma 6 which is coming early next year. More info @ https://pointieststick.com/2023/10/24/its-time-to-port-your-widgets-to-plasma-6/
10 Very cool. I use the "command" option for checking my home computer. nc -vz AdressOfMyHomeComputer PortToMyHomeComputer nc command works! (instead of ping)
8 Very handy tool! Thank you very much, great work!
8 Awesome widget. The only reason I did not give it 10 is the "move up
Apparently this comment form hasn't been properly escaped? I typed an ampersand and everything afterwards was eaten
Anyways, I wanted to say that the "move up" and "move down" buttons are broken - they remain disabled no matter where I click. I had to edit ~/.config/plasma-org.kde.plasma.desktop-appletsrc manually to reorder my servers
8 It's pretty good, but it kinda auto resizes when you logout and log back in and it's weird. Please fix that.
10 10 the best Using different commands for different servers would be good option.
9 +works
9 +1
Little buggy, but very handy. Where are the settings stored? Had to setup a new user and I'd like to take the old content.
A quick look at the source code reveals that it uses the plasmoid user configuration API. As stated in `https://develop.kde.org/docs/plasma/widget/configuration/#contentsconfigmainxml` , everything is stored in `~/.config/plasma-org.kde.plasma.desktop-appletsrc` Just open in text editor and search for `server=` and you will find the configuration serialised to `json` very quickly
Correction: `servers=`, not `server=`
9 +
9 +
9 +
9 +
Thanks, this works really well! One question though: It seems that the custom command always runs in bash, regardless of what shell I'm using. Is it possible to change that?
What if you explicitly run a particular shell? Something like `zsh -c "ping %hostname% -c 2"`?
That kind of thing does work :) I guess it uses the system's shell instead of the user's?
Elegant widget. Thank you. However, I have just installed it using the Plasma 5 'Get New Widgets' dialogue, and it is showing server faults when I can ping the same URLs (including one which is my router) from Konsole without any problem. Is this an installation problem? Thanks and regards
Thank you, i was waiting for this. Could you please add another option to execute a command when the server status changes? I'd like to use notify-send.
Yes, I will release an update next week.
Great, thanks!
As far as I can see, the command option seems to execute the command every time the server is checked for rather than only when the server status changes. Is there a way to execute a command only when the servers status changes?