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.