I would like to create a small window that counts down the time left before a system reboot. Ideally, I would like to add such a timer to the menu or task bar, but popping up the countdown window anywhere on the screen would be fine. I would also like to put a button on the window that, when pushed, will logout the acct automatically.
The specific issues I have are:
1) Creating a window to hold the countdown time and logout button
2) Displaying the countdown time
Can I do the time control and window creation all in the same program? I would like to use a bash script for this if possible.
I have tried using xmessage, but wasnt successful. I am running RedHat with Fedora Core using gnome.
Any helpful suggestions would be much appreciated