Re: Widget updating

2011-11-04 Thread Jörg Thalheim
It seems, that you can't use inotify to watch /proc/mounts for changes: http://stackoverflow.com/questions/1113176/how-could-i-detect-when-a-directory-is-mounted-with-inotify But I was also wrong, when I said you can use dio alone to detect mounted partitions. The only way, it could work with dio a

Re: Widget updating

2011-10-31 Thread Daniel Martí
That's very interesting, and I know dio can get any info from any partition or device. But the question is: How do I make it show up the data just for the mounted partitions? Thanks! "Jörg Thalheim" wrote: This would block awesome. But there a lua-bindings[1] avaible, which provide a non-bloc

Re: Widget updating

2011-10-31 Thread Jörg Thalheim
This would block awesome. But there a lua-bindings[1] avaible, which provide a non-blocking way. Logwatcher[2] is a example for this. But this is not needed because all partititions/disk are already stored in the table, you got back from dio. [1] http://www3.telus.net/taj_khattra/luainotify.html [

Re: Widget updating

2011-10-30 Thread Zveroy
You can use inotifywait (from inotify-tools package in Arch) for watching /proc/mounts. -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Re: Widget updating

2011-10-29 Thread Jörg Thalheim
Jörg Thalheim : > -- Forwarded message -- > From: Daniel Martí > Date: 2011/10/29 > Subject: Re: Widget updating > To: jthalh...@gmail.com > > > Exactly, yes. > > "Jörg Thalheim" wrote: >> >> Do you want dio from vicious automat

Re: Fwd: Widget updating

2011-10-29 Thread Daniel Martí
Sorry, forgot to send it to the list again :-) "Jörg Thalheim" wrote: -- Forwarded message -- From: Daniel Martí Date: 2011/10/29 Subject: Re: Widget updating To: jthalh...@gmail.com Exactly, yes. "Jörg Thalheim" wrote: > > Do you want dio from

Fwd: Widget updating

2011-10-29 Thread Jörg Thalheim
-- Forwarded message -- From: Daniel Martí Date: 2011/10/29 Subject: Re: Widget updating To: jthalh...@gmail.com Exactly, yes. "Jörg Thalheim" wrote: > > Do you want dio from vicious automatic show the disk io about new > devices as they are added to the sys

Re: Widget updating

2011-10-28 Thread Jörg Thalheim
Do you want dio from vicious automatic show the disk io about new devices as they are added to the system? 2011/10/28 Daniel Martí : > Dear awesome fellows, > > I'm trying to make a dio (disk input/output) which adds new devices as they > are mounted. So, for instance, it would have /dev/sda detec

Re: Widget updating

2011-10-28 Thread Thorsten Sperber
On 28.10.2011 21:21, Daniel Martí wrote: > Dear awesome fellows, > > I'm trying to make a dio (disk input/output) which adds new devices as > they are mounted. So, for instance, it would have /dev/sda detected as > the system hard disk, and it would append the data for /dev/sdX in > case an externa

Re: Widget updating

2011-10-28 Thread Pedram Navid
Hi Daniel, Wondering if you have looked into autofs? I am not sure a widget would be the best solution to your problem. Arch has a decent wiki: https://wiki.archlinux.org/index.php/Autofs On Fri, Oct 28, 2011 at 3:21 PM, Daniel Martí wrote: > Dear awesome fellows, > > I'm trying to make a dio (d

Widget updating

2011-10-28 Thread Daniel Martí
Dear awesome fellows, I'm trying to make a dio (disk input/output) which adds new devices as they are mounted. So, for instance, it would have /dev/sda detected as the system hard disk, and it would append the data for /dev/sdX in case an external drive was to be mounted. How would you do that