zenity --info --text="$(w -h)"
would pop up the relevant w output
while true; do zenity --info --text="$(w -h)"; sleep 15m; done
#!/bin/bash
#kill any previous boxes
kill $(ps aux | grep "Right now:" | grep -v "grep" | awk '{print $2}')
#now start a new one
zenity --question --title "Alert" --text "Right now: Is this really what you want to be doing?"
save it somewhere, then edit your crontab (using 'crontab -e') to add the script:
0,15,30,45 * * * * export DISPLAY=:0 && bash /path/to/yourscript.sh 2> /dev/null
You are not logged in, either login or create an account to post comments
posted by aheckler at 9:00 AM on June 1