Hello, I have the following problem with the fs widget.

I have a mount point called "/media/sam2-ntfs"

If I enter this to the format string, the variable in the widget is not
expanded correctly. You can see something like this: ${/media/sam2-ntfs used_gb}

I have tried to fix it in the fs.lua widget file, but there the mountpoint
is matched correctly. This became clear than i printed the variable m to the
logs with the following code:

if m then
        io.stderr:write(m .. "\n")
end



Maybe you have any ideas.



df -kP:

Filesystem         1024-blocks      Used Available Capacity Mounted on
udev                     10240       308      9932       4% /dev
/dev/sdb2             97656084   5420556  92235528       6% /
none                   2024700         0   2024700       0% /dev/shm
/dev/sdb1                93307     15590     72900      18% /boot
/dev/sdb5             14650748   4205380  10445368      29% /var
/dev/sdb6             97656084   1754112  95901972       2% /home
/dev/sdb7            292960332 185532128 107428204      64% /media/sam1
/dev/sdb8            234372252 138207012  96165240      59% /media/sam2-ntfs
/dev/sda3            262143996  71059180 191084816      28% /media/win2
/dev/sda5            262143996  69416664 192727332      27% /media/win3


The relevant section in the awesome config:

fswidget_sam2_text = wibox.widget.textbox({ name = "feswidget_sam2_text"   })
vicious.register(fswidget_sam1_text, vicious.widgets.fs, 
myn.brackl .. '<span color="lightblue">Sam2:</span> ${/media/sam2-ntfs used_gb} 
| <span color="white">${/media/sam2-ntfs size_gb}</span>' .. myn.brackr , 120)


-- 
To unsubscribe, send mail to [email protected].

Reply via email to