Click to See Complete Forum and Search --> : How to empty trash from Fluxbox menu?
ludwig1
05-12-2003, 07:56 AM
Hi,
I was wondering how one might add a submenu to the menu that allows you to empty the trash?
cheers
Ludwig :)
make it point to a script that deletes the contrents of the trash directory or just put the entire command to delete the trash in.
i.e. if ~/.trash is the trash directory :
rm ~/.trash/*
ludwig1
05-12-2003, 08:10 AM
thanks Hayl :).
Just one question: what is a script and how would I make one for this purpose?
cheers
Ludwig
ludwig1
05-12-2003, 08:28 AM
Hi Hayl:
I just wrote
[exec](Empty Trash) {rm -rf /home/ludwig/.Trash/*} into the menu and it worked fine.
Thanks :)
ludwig1
05-12-2003, 08:45 AM
ok,
Another thing I can't figure out is how to mount and unmount drives,such as a floppy.
I've tried adding
[exec](Mount Floppy) {mount /dev/fd0 /mnt/floppy}
[exec](Mount CDRW) {mount /dev/cdrom1 /mnt/cdrom1}
[exec](Mount DVD) {mount /dev/cdrom /mnt/cdrom}
to the menu,but I can't get the drives to mount.However, if I put mount /dev/fd0 /mnt/floppy in hte command line,it mounts fine.
Any ideas?
cheers
Ludwig