It is a demo application which means it lacks a lot of functionality that could be in it. Maybe in the future I will implement my further ideas.
Source code available on GitHub.
Works on most Unix like hosts with an SSH server on it. OpenSSH will do the work on linux.
Tested on Arch, Raspbian and Ubuntu. If you can test it on another OS please share your results with me.
Simple click: determinate the OS type, also works as a test whether the execution was successful or not (cannot connect to the host in case of success)
Long click: execute the chosen command (Shutdown or Reboot)