[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fvwm
Subject:    FVWM: TkGoodStuff --- one button popped in, other --- out
From:       Jim Nicholson <jim () pcks ! digex ! net>
Date:       1997-05-28 15:22:15
[Download RAW message or body]

imennov@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@hpc.uh.edu.
 > To report problems, send mail to fvwm-owner@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@hpc.uh.edu.
To report problems, send mail to fvwm-owner@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@hpc.uh.edu.
To report problems, send mail to fvwm-owner@hpc.uh.edu.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic