Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-20 Thread Nick
Quoth LuX: > I wanted to add to wmii some basic ability to deal with > USB pens: > > - mount and open them automatically when plugged in; FWIW, I have a one-liner udev rule which uses pmount to do this nicely for me; in /etc/udev/rules.d/85-mount-usbdisks.rules I have KERNEL=="sd?[0-9]*", SUBS

Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-19 Thread Kris Maglione
On Mon, Jul 19, 2010 at 03:21:43PM -0700, Suraj Kurapati wrote: On Mon, Jul 19, 2010 at 11:46 AM, LuX wrote: I wanted to add to wmii some basic ability to deal with USB pens: - mount and open them automatically when plugged in; I use ConsoleKit (by way of the Thunar file manager) for this, b

Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-19 Thread Suraj Kurapati
On Mon, Jul 19, 2010 at 11:46 AM, LuX wrote: > I wanted to add to wmii some basic ability to deal with USB pens: > > - mount and open them automatically when plugged in; I use ConsoleKit (by way of the Thunar file manager) for this, but I don't know how it works internally. I would imagine that

Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-19 Thread Kris Maglione
On Mon, Jul 19, 2010 at 08:46:32PM +0200, LuX wrote: https://bbs.archlinux.org/viewtopic.php?pid=794658#p794658 Oh, and while I'm thinking about it, it's really best not to post such scripts as diffs. I tend to just post them as they'd appear in wmiirc_local, so: foo() { ... } local_ev

Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-19 Thread Kris Maglione
On Mon, Jul 19, 2010 at 08:46:32PM +0200, LuX wrote: By the way, what I wanted to do when I encountered this "stupid" problem with -f flag, if not "clever", might at least be usefull for other people. I wanted to add to wmii some basic ability to deal with USB pens: - mount and open them autom

Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-19 Thread LuX
Hi! Thank you for your quick and complete answer. On Sun, Jul 18, 2010 at 09:30:19PM -0400, Kris Maglione wrote: > First of all, you're making things too complicated. The following > would suffice: You're right, but I wanted to know was the reason why this command didn't work in wmiirc. You gav

Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-18 Thread Kris Maglione
On Mon, Jul 19, 2010 at 02:43:22AM +0200, LuX wrote: I am puzzled at the moment by the following problem. I would like to list a part of the content of a directory (in /dev/disk/by-id, list all the files whose name starts with 'usb') and make a test on this list in order to perform some actions.

[dev] wmii: dash, bash and tests in wmiirc

2010-07-18 Thread LuX
Hello list! First of all I would like to thank the author of wmii for this wonderful window manager. I am puzzled at the moment by the following problem. I would like to list a part of the content of a directory (in /dev/disk/by-id, list all the files whose name starts with 'usb') and make a t