I try

allclients = awful.client.visible(client.focus.screen) for i,v in
ipairs(allclients) do print(allclients[i]) print(v) end | awesome-client

but no see the output


On Sat, Jan 17, 2009 at 9:17 PM, Gregor Best <[email protected]>wrote:

> At Sat, 17 Jan 2009 20:34:39 -0300
> JuanPablo wrote:
>
> > hi,
> > how I can use awful of command line ?
> >
> > I can't load from lua
> >
> > $ lua
> > Lua 5.1.2  Copyright (C) 1994-2007 Lua.org, PUC-Rio
> > > require("awful")
> > stdin:1: module 'awful' not found:
> >         no field package.preload['awful']
> >         no file './awful.lua'
> >         no file '/usr/local/share/lua/5.1/awful.lua'
> >         no file '/usr/local/share/lua/5.1/awful/init.lua'
> >         no file '/usr/local/lib/lua/5.1/awful.lua'
> >         no file '/usr/local/lib/lua/5.1/awful/init.lua'
> >         no file '/usr/share/lua/5.1/awful.lua'
> >         no file '/usr/share/lua/5.1/awful/init.lua'
> >         no file './awful.so'
> >         no file '/usr/local/lib/lua/5.1/awful.so'
> >         no file '/usr/lib/lua/5.1/awful.so'
> >         no file '/usr/local/lib/lua/5.1/loadall.so'
> > stack traceback:
> >         [C]: in function 'require'
> >         stdin:1: in main chunk
> >         [C]: ?
> >
> > and the /usr/local/share/lua/ directory not exists.
> >
> > thanks
> > JuanPablo
>
> That is because you use the standalone lua interpreter which doesn't know
> about
> awesome. Even if awful was available to it, it'd be useless, as it doesn't
> have
> any awesome support whatsoever. You might want to try awesome-client, which
> allows to control awesome's lua environment from the commandline.
>
> --
>     Gregor Best
>

Reply via email to