yay that does the trick! thanks!
Am Freitag, den 30.09.2011, 04:21 +0200 schrieb Adrian C.:
> On Thu, 29 Sep 2011, Sebastian Bachmann wrote:
>
> > i want to have the output of an bashscript as a widget in awesome.
>
> cat /home/anrxc/bat1.sh
>
> #!/bin/bash
> acpitool -b | awk '{print $5}'
>
> vicious.register(batwidget_bat1, function()
> return awful.util.pread("/home/anrxc/bat1.sh")
> end, "B0 $1%", 10)
>
>
> Repeat exercise for bat2.
>
> --
> Adrian C. (anrxc) | anrxc..sysphere.org | PGP ID: D20A0618
> PGP FP: 02A5 628A D8EE 2A93 996E 929F D5CB 31B7 D20A 0618
>
signature.asc
Description: This is a digitally signed message part
