There is a file in your home folder that allows you to configure some settings for Hulu Desktop: ~/.huludesktop
. It has an option for scripts to run to dis/en-able the screensaver.
I would like to write a script to be called by Hulu while watching video. It seems that in Ubuntu 10.04 the gconftool settings idle_activation_enabled
& idle_activation_enabled
no longer inhibit the gnome-screensaver or monitor sleep.
These are the commands I tried to use:
gconftool-2 --set /apps/gnome-screensaver/idle_activation_enabled --type bool TRUE
gconftool-2 --set /apps/gnome-powermanager/idle_activation_enabled --type bool TRUE
I have also found gnome-screensaver-command
with the --inhibit
option, but that blocks while active which means that my suspend script would be hard to fit into the two .huludesktop
options (suspend_script
& resume_script
)
I would prefer not to use Caffine as this is under Ubuntu NBR and top panel space is valuable.
It's been tested; it claims to work. Enjoy.
FYI, Caffeine 2.2 now has an option to hide the tray icon:
To open the preferences again once the icon is hidden, run
caffeine -p
fromthe command line or System -> Preferences -> Caffeine Preferences.