Originally Posted by dh2k
Thinking about this I would probably recommend just invoking the (fluxbox-remote "FLUXBOX_INTERNAL_COMMAND") command;
then it is upto you to consider the system shutdown which would require updating the sudoers file (visudo as root).
So to summarise:
c: fluxbox-remote "RootMenu"
c: if xmessage center -buttons No:1,Yes:0 "Really logout?"; then fluxbox-remote "Exit"; fi
c: if xmessage -center -buttons No:1,Yes:0 "Really shutdown?"; then sudo /sbin/halt; fi
So, be sure to change/personalise the icon paths and this will work -
or you could have the button execute a bash script that creates a dialog and askes you.
on my openbox i use this:
gxmessage "Are you sure you want to shut down your computer?" -center -title "Take action" -font "Sans bold 10" -default "Cancel" -buttons "_Cancel":1,"_Log out":2,"_Reboot":3,"_Shut down":4 >/dev/null
case $? in
sudo /sbin/shutdown -r now;;
sudo /sbin/shutdown -hP now;;
just replace the commands to match your system.