> > hostname = awful.util.pread("hostname")
> >
It can't work (for me) without modify.
> I'd do awful.util.pread("hostname -f"):gsub("\n", "")
> That way a) the trailing newline is removed, allowing simple string
> equality tests and b) the fully qualified hostname is used, which may
> aid porting the rc to a different OS. I had that with *BSD a week or two
> ago, where hostname defaulted to FQDN, where in Linux it was just the
> local host part.
>
I'm using Arch Linux, when I type "hostname -f" in term, it
only shows "localhost.localdomain".
Finally, I put:
hostname = awful.util.pread("hostname"):gsub("\n", "")
in my rc.lua, and it works fine.
Thanks.
--
To unsubscribe, send mail to [email protected].