FvwmScript Shutdown

Hi all,

I wrote a script for a shutdown / reboot / logout popup.

Download it here http://blackboard.tudelft.nl/bbcswebdav/users/baswenneker/ShutDown_japio.tar.gz

Here’s the README

#/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\#
#	     __              .__        				#
#	    |__|____  ______ |__| ____  				#
#	    |  \__  \ \____ \|  |/  _ \ 				#
#	    |  |/ __ \|  |_> >  (  <_> )				#
#	/\__|  (____  /   __/|__|\____/ 				#
#	\______|    \/|__|              				#
#	Email: 		B.Wenneker [at] hccnet [dot] nl			#	
#	File:		ShutDown					#
#	Date:		13 Sep 2005					#
#									#
#/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\#

See the screenshot provided with this package to see how it looks.
The script contains a 20 second countdown. If nothing is pressed it closes
the window. The buttons are self-explanatory. I execute this script from my 
FvwmButtons dock:

*FvwmButtonsDock: \
( \
	24x26+1230, \
	Icon $[fvwm_dock_icons]/plain/logout.png, \
	ActiveIcon $[fvwm_dock_icons]/select/logout.png, \
	PressIcon $[fvwm_dock_icons]/plain/logout.png, \
	ActionOnPress, \
	Action(Mouse 1) `FvwmScript scripts/ShutDown` \
)

It can also be executed from a menu of course:

+ %$[fvwm_icons]/logout.png%"&logout"		FvwmScript scripts/ShutDown 

BOTH EXAMPLES ASSUME YOU PLACE THE FILE IN FOLDER ~/.fvwm/scripts
ALSO YOU HAVE TO CHANGE SUDO RIGHTS IN ORDER TO REBOOT AND SHUTDOWN.
GOOGLE FOR 'VISUDO' AND 'SUDOERS FILE'.

BTW. I use this script at a 1280x1024 resolution, and it's placed in the 
centre of the screen. If it is not centered, change the WindowPosition at 
row 24. 
The colorset used is:	
Colorset 0 
	fg   #333333, \
	fgsh #c2c4c7, \	
	bg   #FFFFFF, \	
	hi   #c4c4c4, \	
	sh   #c4c4c4

TODO: 
I want to make the script also execute a dark transparant FvwmButtons,
that is all over the desktop, kinda like when you shutdown WinXP.

Seems like a cool idea. I had something like this once in my configuration but used FvwmButtons instead. This is definitely improvement. However, I can’t seem to download your script without a password?

This looks very familiar:stuck_out_tongue:

I’ve also tried implementing your TODO eye-candy effect (basically, using imlib2 to take a screenshot of the current desktop and overlay a black grid) but found that having a FvwmButtons the size of the screen was buggy and slowish (on my 600mhz computer). It did look great though. So if you can figure it out a clean/fast way to do it, I’m interested.

ow sorry for the password… I’m going to fix that… it’s from my college server… trying to unlock it now

yes stole it from you :smiling_imp:

There still problem with downloading. Could you post here the text part of your FvwmScript?