Click to See Complete Forum and Search --> : Add xscreensaver menu to Enlightenment's menu system


r0nster
09-23-2001, 04:27 PM
By browsing the xscreensaver manual page, I came across a good tip to add an xscreensaver menu to Enlightenment's menu system. Take in mind you can use this to make your own custom menus. First create a file named xscreensaver.menu in your ~/.enlightenment dir. Within my xscreensaver.menu, I have the following: "XScreenSaver Commands"
"Blank Screen Now" NULL exec "xscreensaver-command -activate"
"Lock Screen Now" NULL exec "xscreensaver-command -lock"
"Screen Saver Demo" NULL exec "xscreensaver-command -demo"
"Screen Saver Prefs" NULL exec "xscreensaver-command -prefs"
"Reinitialize Saver" NULL exec "xscreensaver-command -restart"
"Kill Screen Saver" NULL exec "xscreensaver-command -exit"
"Launch Screen Saver" NULL exec "xscreensaver"
be sure that xscreensaver is in your $PATH :)
Now, to add the xscreensaver menu to the existing menu system... Open up file.menu and add this to the existing list:
"XScreensaver" NULL menu "xscreensaver.menu"
save your changes and restart Enlightenment to be safe. Your new xscreensaver menu should be amongst the other entries :)
Taking this tip a bit further, you can make your own sub-menus for things like: e-mail, chat clients, office apps, games,and so on.
Have fun :)

[ 23 September 2001: Message edited by: r0nster ]

Joeri Sebrechts
10-01-2001, 05:55 AM
I don't like useless bloat on my system (because the system isn't so stellar to begin with), so I don't use xscreensaver but instead use the screensaver built into Xfree.

I've added entries to my debian menu system to show the screensaver and to put the screen in standby mode. Works perfectly, as long as your screen supports dpms.

The exact commands to do it are:
screensaver (just a black screen):
xset s activate
standby (actually turns the tube off):
xset dpms force off

The only problem I've had with it is that after I returned from a month in Africa the screen wouldn't revive. I had to log into my system with ssh and reboot it to get it to work correctly again. That may or may not be a problem with putting the screen in standby, I just don't know.