-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Using ruby's Net::SSH, the widget, every 15min or so, will ssh to a workstation and run the command 'w.'
- ssh'ing fails, the workstation name is shown in red implying an inability to connect
- ssh'ing succeeds, :[,...] is listed in green
- This is acheived by shelling out and running 'w'
-
The widget should be square with a background color dependent upon the state of the system. The foreground color should be easily readable and have high contrast with all background colors -- this probably means white or black, but the foreground color may change when the background color changes. States:
-
Unreachable/powered-off
-
Powered on but nobody logged in
-
Someone logged in remotely but nobody logged in on console
-
Someone logged in on console but screen is locked
-
Someone logged in on console but screen is unlocked and they are idle
-
Someone logged in on console but screen is unlocked and they are unidle
-
The widget should contain a set of center-aligned strings (large/very-small/small font sizes):
-
The name of the workstation in large
-
The IP of the workstation in very small and wrapped in parentheses
-
A small amount of vertical space
-
The username of whoever is logged in on console, or another string like 'Available!'
-
The amount of time said user has been idle, in small
-
A small amount of vertical space
-
Load numbers in small, possibly also in parentheses