Is it possible to make the bettery icons scripted?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

I was just looking throught the echo icons [1] and saw the battery
icons there (which are extremely nice) but i was wondering if those
icons could be made scripted?

This is the idea:
The bettery applet shows in the notification applet and requests the
bettery icon (called batteryScript for now) with value 60 (0 - 100
meaning 0 (%) is empty and 100 (%) is full). Now batteryScript should
draw the battery icon with the value 60 (60% bettery is pritty decent
so the icon should result in something like [2]) I would also say that
the batteryScript has this for the 0 and 100 values:
0 = (light)green
100 = (dark)red

and a color in between 0 and 100 should be just created by the the
script (for example: 25 = darkgreen, 50 = orange, 75 = darker orange
(or light red) and the 96 other images)

The Advantages:
- No need to make 100 different battery icons (all done by the
script). you just supply one basic image and the script fills it in.
- The battery notification will get a lot more precise than is
possible with the current icons
- Just one icon needs to be changed if changes are required (instead
of all the battery icons)
- There must be more...

The Disadvantages:
- If you change that one icon you will likely have to change the script as well
- it's probably a little more CPU intensive than a basic .png icon..
(but it should still be just a tiny bit of cpu power)

The big questions:
- Is this possible? If yes? how?
- What do you think of it?

btw. animating the battery icon would be cool as well. for example
adding in some boiling bubbles when charging up.. but that's a
completely different idea and probable (?) hard to do with SVG's


[1] https://hosted.fedoraproject.org/projects/echo-icon-theme/wiki/IconThemeStatus
[2] http://git.fedoraproject.org/?p=hosted/echo-icon-theme;a=blob_plain;f=trunk/Echo/48x48/status/battery-high.png;hb=HEAD

_______________________________________________
Fedora-art-list mailing list
Fedora-art-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-art-list

[Index of Archives]     [Fedora Music]     [Fedora Development]     [Linux Kernel]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux