Closed boolean-is-null closed 9 years ago
One of the goals of the main scripts is to have as few dependencies as possible. I don't think something depending on font awesome would be appropriate for the core scripts. You may be interested in https://github.com/vivien/i3blocks-contrib which is for user contributed scripts.
See http://perldoc.perl.org/utf8.html for how to use UTF8 in perl. You may also be interested in seeing or forking https://github.com/kb100/i3blocks-battery which does the same thing but in python. I wrote that before the new battery icons came out so it's due for an update.
Hi @boolean-is-null, I agree with @kb100 here. Default scripts will become quite minimal. But if you guys feel the need to share a fancier battery script, feel free to discuss about a new one in the i3blocks-contrib repository. I'm closing this ticket!
I've tried to customize the given perl scripts to my needs (in this case battery) by adding more descriptive icons from font awesome 4.4.0 (https://fortawesome.github.io/Font-Awesome/icons/)
The altered parts are:
and
the used unicodes are: f240 - f244 and f1e6..
Now the problem is that the battery block is now empty, if started in the command line i get:
This is the first time I wrote anything in perl, so that might be a problem as well.. The script as I see it:
edit: the problem seems to be with (< 50% battery left)