|
|
|
|
|
by klibertp
1935 days ago
|
|
My config is on Github[0] and it's an absolute mess: at first I used plain Lua, then tried MoonScript (which was a huge let down, unfortunately), then switched to Haxe. In all 3 cases this config was my first time using the languages in question, so the code is... less than ideal, let's leave it at that :) If you want to set up something similar, you can start with haxeshigh/Makefile[1] and haxeshigh/bin/build (it's a shell script). In the haxeshigh/src/ there are implementations of three widgets: battery, brightness, and taglist[2]. The last one is the most complex as it uses coroutines to animate (slide in/out) the widget on screen. The rest of src/ are wrappers/type definitions for objects from Awesome, plus some macros/helpers for working with Lua tables (which are both arrays and hash tables at the same time, Haxe doesn't like this). I found some bugs in the Lua part of the Haxe compiler (genlua.ml), but it was a long time ago, so they are probably fixed already. I don't remember the details, but the fix was trivial... I'll try to look for the issue and see if it's already fixed later. [0] https://github.com/piotrklibert/awesome-config [1] https://github.com/piotrklibert/awesome-config/blob/master/h... [2] https://github.com/piotrklibert/awesome-config/blob/master/h... |
|