On Thu, 17 Dec 2009, Ralf Schmitt wrote:
I'm still unsure on how the developers think we users have to
configure awesome. Should everyone of us create an own "theme"...
You are confusing theme files (definition of colors and icons) with the
configuration file, rc.lua.
...after learning lua und the awful framework?
cp /etc/xdg/awesome/rc.lua ~/.config/awesome/rc.lua
Awesome provides very good defaults on which you as a user can build.
You will change some key bindings and layouts, with time you will write
a function or two to do some kind of window manipulation. You will
probably add a few widgets into the mix... but that's all _minor_ stuff
for which you _don't_ need to learn the whole awful API.
The default rc.lua covers all the basis, it's code (and 400 lines of
it).
And play with it using the awful docs from
/usr/share/doc/awesome/luadoc The documentation is very basic. So many
things keep magic for me.
That is the API documentation, it's not supposed to be a romantic novel.
The documentation you are looking for as a first time user is in the
manual pages and on the wiki.
I tried using the "autostart" feature by doing ...
os.execute("xmodmap /home/ralf/.Xmodmap &")
os.execute("kshutdown --init &")
os.execute("kmix &")
Put that stuff in your xinitrc. You want your modmap merged? You like
your kmix? Why would you limit your self to have it started only in
awesome (and in such an ugly way).
Check my own xinitrc for some ideas (autostart, error logging, window
manager selection...): http://git.sysphere.org/dotfiles/tree/xinitrc
os.execute("awsetbg /usr/share/wallpapers/Air/contents/images/1280x1024.jpg &")
In awesome you set the wallpaper from your theme file, that way you have
all desktop look and feel settings in one place.
I failed completely in trying to get a cpu meter next to the clock.
Creating a "meter" is easy, a matter of one line:
mycpumeter = awful.widget.graph()
Where will you get the data to fill the widget? How will you parse it,
and calculate usage? How will you time the execution to always have
fresh data? That is another story.
Many users write their own Lua functions to gather data, others use
plain shell scripts, python scripts... you can choose to do that too.
On the other end there are some users that gathered a lot of those Lua
data parsers in one place and made what is called a widget library. You
can choose to go down that route instead. There are a few widget
libraries, check the wiki and pick one.
I hope the devs add some more examples to the config and improve the
api documentation some day so I can stop whining.
It seems to me it is _good enough_ for other users.
--
Adrian C. (anrxc) | anrxc..sysphere.org | PGP ID: D20A0618
PGP FP: 02A5 628A D8EE 2A93 996E 929F D5CB 31B7 D20A 0618
--
To unsubscribe, send mail to [email protected].