FVWM: TkGoodStuff --- one button popped in, other --- out

From: Jim Nicholson <jim_at_pcks.digex.net>
Date: Wed, 28 May 1997 11:22:15 -0400

imennov_at_juno.com writes:
> How can I make tkGoodStuff to pop out one button,
> when I click the otherone, and vise-versa?
>
> ( I'm using it to mount-umount a cdrom)
>
> Is there a way a button can be pressed and look
> pressed until I click it again?

BTW - This probably should be directed to the TkGoodstuff list (if
there is one), not the fvwm list...

>
> If there is no way to do it, how can I *automaticly*
> mount and unmount CD when I hit EJECT _on
> my CD Drive itself_? I tried eject command, but it doesn't
> seem to work (it doesn't umount/mount a CD)

One method I've used in the past is to do something like this:

AddToMenu "DiskOps" "Disk Operations" Title
+ "Mount CD" Exec exec su -c "mount -t iso9660 -o ro /dev/hdd /cdrom"
+ "Unmount CD" Exec exec su -c "umount /cdrom ; xcdeject"

NOTE: Don't do this exactly this way. Use sudo, or use a mount that
understands "user" in fstab. xcdeject is something I found somewhere
on the net; try a search. Using su like this relies on root having no
password, which is extremely evil.

Or, you could try using the automounter in
http://sunsite.unc.edu/system/misc/mount

although I have no experience with it.

>
>
> TIA,
> Nikita.
>
>
> P.s. Thanks to all who replyed on my emacs' backup files
> removal...
>
> P.P.s. I'm looking for sample GoodStuff and FVWM files.
> --
> Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
> To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
> message to majordomo_at_hpc.uh.edu.
> To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed May 28 1997 - 10:26:32 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST