Preface
Goal: Statusbar customization, with powerline style using Lain.
This is not another library, such as Vicious and Lain,
but just Arrow decoration using Lain, mixed with Lain widgets.
If the previous article talk about how to use Lain,
this article explain how to decorate it.
Table of Content
I know this section is short
1: Prerequisite
rc.lua
Put the statusbar code at the end of the rc.lua
,
and comment other statusbar.
Prerequisite: The Lain Library
Since we use lain
, the configuration is the same with previous article.
Artefacts
This is basically just using Lain
library.
We need additional custom.lua
for non lain
widget.
I use one
and two
for helper name.
Arrow Decoration
The same as previous article.
Code Preview
Very similar with previous article.
2: Arrow Example
It is a good time to put these bunch of technique together.
Left Wibox
Playing with color would makes the status bar pretty right!
Right Wibox
And if you want more simple color.
Top Right Wibox
I also move the progressbar to the top.
Conclusion
I think that is all. After this article, we are done.
Better Example
I do not claim myself to be mastered of AwesomeWM of something,
these articles I have wrote is intended to be guidance for beginner.
If you need sophisticated statusbar widgets programming with Lua,
you can go right away to Pavel Makhov site:
These will be a very interesting discussion,
but unfortunately, this is beyond of my blog scope.
Farewell
I’ll be back!
What do you think ?