On Thu, 26 Jul 2001, Karsten M. Self <kmself@ix.netcom.com> wrote:

>on Thu, Jul 26, 2001 at 09:16:50PM +0200, Philipp Lehman ([EMAIL PROTECTED]) 
>wrote:
>> 
>> Can't help with a pointer to a dedicated app, but you could at least
>> built a poor man's confirmation in WMRooutMenu:
>> 
>> ( "Shutdown", EXEC, sure.sh "%a(Shutdown,Shutdown now [y/n?])"
>> 
>> ...where sure.sh is something like
>> 
>> #!/bin/sh
>> if [ $1 = "y" ]; then sudo shutdown -h now; fi
>
>Bingo!  That does it.

Hmm, you could actually parse that internally. In wmmacros, put
somthing like the following:

#define CONFIRM_SHUTDOWN(SURE)  \
        if [ SURE = "y" ]; then \
        sudo shutdown -h now;   \
        fi

And in your menu file:

"Shutdown" SHEXEC CONFIRM_SHUTDOWN(%a(Shutdown,Shutdown now [y/n]?))

This is old-style syntax.

>Where the hell is the '%a' arguments parameter documented within
>WindowMaker?  I was never aware that it existed.

wmaker ships with a couple of menu* (old-style) and plmenu*
(new-style) samples. See the sample wmmacros file as well.

>> >KDE _would_ be a great desktop, but it isn't currently available in
>> >Debian/Stable.  I'm likely headed in this direction though long-term.  I
>> >do think that WMaker plus GMC (for desktop icons for storage & a file
>> >browser) is a pretty good, simple, desktop.
>> 
>>[What about wmaker + kfm?]
>
>Mind, my personal preference, as a technical user, is WindowMaker.

Now, are we talking about your box or the one you're setting up for
your parents?

>It's cleaner, simpler, saner, stays out of my way.  KDE is the
>Joe-Luser desktop IMO.  Not that this is a bad thing, just not my
>preference.

Yeah sure, everbody loves wmaker. But it's a window manager after all
and window managers manage windows. They don't even make coffee.

-- 
Philipp Lehman <[EMAIL PROTECTED]>

Reply via email to