You are not logged in.
NetworkManager Applet does this annoying thing with tint2 that when I suspend and resume, the systray grows with empty space. I need to do a proper bug report, but first I want to just kill tint2 on suspend and launch it again on resume, so I created /etc/pm/sleep.d/99tint2
#!/bin/bash
case $1 in
hibernate)
killall tint2
;;
suspend)
killall tint2
;;
thaw)
su rob -c tint2
;;
resume)
su rob -c tint2
;;
*)
;;
esac
Then I chmod +x it and it almost works.
It kills tint2 when I suspend, but it doesn't bring it back on resume.
Last edited by pogeymanz (2011-01-15 00:42:13)
Offline
It kills tint2 when I suspend, but it doesn't bring it back on resume.
Try using 'su rob -c "env DISPLAY=:0 tint2" ' instead
Offline
Excellent!
Why is it that I need to set the Display variable?
Offline
Because its not being run from inside X. Try running a gui app from a tty and it'll need the same thing.
Offline
I had the same problem.
Based on your script and the issue thread ( http://code.google.com/p/tint2/issues/detail?id=343 ) I did this:
#!/bin/bash
case $1 in
hibernate|suspend)
;;
thaw|resume)
sleep 3 && killall -SIGUSR1 tint2
;;
*)
;;
esac
Offline