PDA

View Full Version : [Status Icon] Battery


Lacedaemon
01-17-2010, 10:00 AM
Hello,

This is a status bar icon replacement I made, for the battery.
Additional thanks goes to leetut for helping me find the correct icon source folder.

How to install desktop battery icon:

1) Backup /usr/share/icons/hicolor/scalable/hildon folder to your computer so you can revert back to default ones.
2) Download battery.zip (http://www.mediafire.com/?itkhmxtggnw) and unzip the folder to your computer
3) Place the folder contents(.png's) on /usr/share/icons/hicolor/scalable/hildon/ and overwrite the current ones.
4) Reboot your phone to see the results

OR

1) Unzip battery.zip and copy the folder to your N900/Documents
2) Open xterm and type(you need rootsh):

sudo gainroot
mv MyDocs/.documents/battery_scalable/* /usr/share/icons/hicolor/scalable/hildon/


If you want to revert back to normal battery icons, follow the same process after downloading battery_default.zip (http://www.mediafire.com/?t4mi4zztigl)

How to install status area battery icon:

1) Backup /usr/share/icons/hicolor/48x48/hildon folder to your computer so you can revert back to default ones.
2) Download status_battery.zip (http://www.mediafire.com/?ynjwjnmkwmm) and unzip the folder to your computer
3) Place the folder contents(.png's) on /usr/share/icons/hicolor/48x48/hildon/ and overwrite the current ones.
4) Reboot your phone to see the results

OR

1) Unzip status_battery.zip and copy the folder to your N900/Documents
2) Open xterm and type(you need rootsh):

sudo gainroot
mv MyDocs/.documents/battery_48x48/* /usr/share/icons/hicolor/48x48/hildon/


If you want to revert back to normal battery icons, follow the same process after downloading status_battery_default.zip (http://www.mediafire.com/?mgmzmfj22oz)


Preview desktop battery icon:

http://img690.imageshack.us/img690/1619/screenshot2010011716015.png

Preview status area battery icon:

http://talk.maemo.org/attachment.php?attachmentid=5911&stc=1&d=1263688664

F2thaK
01-17-2010, 10:06 AM
d/ling atm will let u know

F2thaK
01-17-2010, 10:10 AM
mine only changes one on desktop......??

Lacedaemon
01-17-2010, 10:12 AM
Will upload the status area battery zip soon.

EDIT: Done, see first post.

F2thaK
01-17-2010, 10:23 AM
link broken "status_battery.zip" ?






EDIT............ 3rd times the charm

joppu
01-17-2010, 12:41 PM
Please, do not suggest users overwriting any files on their phones. Themes and such are a completely different thing since they don't overwrite anything so you can alway change it back. Just saying "make a backup" isn't enough.

Lacedaemon
01-17-2010, 01:06 PM
As far as I know the only way to change an icon is by overwriting it. If you want to keep the default one simply do not ovewrite it with the custom one. I will also provide a zip with the stock pngs.

Also the default theme/icons can be re-installed from the repo if you mess up.
Right?

plaban
01-17-2010, 04:34 PM
can this be done via xterminal?if yes then please give the code.

Lacedaemon
01-17-2010, 04:53 PM
@plaban

Done, check first post.

plaban
01-18-2010, 02:31 AM
Looking good... thanks

amorek13
01-18-2010, 06:21 AM
great job thanks

F2thaK
01-19-2010, 07:12 AM
hitech battery icons


this is my modification of the battery icon..


please go here, this has been updated!

http://talk.maemo.org/showpost.php?p=481662&postcount=252

TimskiMcMatrix
01-24-2010, 02:29 AM
how do u access this file? im trying to find this for icon transfer.. = /usr/share/icons/hicolor/scalable/hildon/
im sorry im new to maemo community ^_^
can u help me bro?

F2thaK
01-24-2010, 02:37 AM
Remote WLAN Access To Root / System Files over Wifi

for easy file manipulation over wifi:



1. install the following apps/software


n900 end: (all these apps are in extras repos)

mad developer - this will request password when installing (WRITE DOWN / TAKE NOTE OF PASSWORD !!)

rootsh


for pc end:

winscp (http://winscp.net/)


2. open winscp and put the WLAN ip address shown in mad developer in the 'host name'

3. user name "root", password "(password created during mad developer/ssh install)"

4. save > login

5. you should now have access thru winSCP



--------------------------------------------------------------------------------------------------


No WIfi?

download app "MC" midnight commander
very similar to explorer in windows

TimskiMcMatrix
01-24-2010, 03:12 AM
can u guide me through the process? where do i start? thanks!

DaKing
01-25-2010, 02:31 PM
i have a question Lacedaemon how do i do this (Backup /usr/share/icons/hicolor/scalable/hildon folder to your computer) because when i plug the device to my computer i dont get this file i only get the songs pictures video etc.. plz help thnx

Lacedaemon
01-25-2010, 02:57 PM
You can do it via SSH connection, or terminal:

sudo gainroot
cp /usr/share/icons/hicolor/scalable/hildon /home/user/MyDocs/


This will copy the folder on your N900, you can then transfer it to your computer so you can have a backup.

raverpol
01-25-2010, 02:57 PM
great work man :)

DaKing
01-25-2010, 05:27 PM
what is SSH connection?
ok if i do it by this code in xterminal were will i get the file in order to copy it to pc? and btw its not dangerous to do that right? a reflash will fix any problem regarding this if something happens :)
forgot to ask : doesnt a normal backup (the one in the more apps) return everything as it was? i guess no right?

Lacedaemon
01-25-2010, 05:34 PM
The copied folder should be found on File Manager -> N900
Of course it's not, you are just replacing .png files here(images).

DaKing
01-25-2010, 05:37 PM
i see ok thanks alot man :)

Lacedaemon
01-25-2010, 05:45 PM
I just optimized the .png's so I advice you to re-download and re-install them if you like.
They are even lighter than the default .png's by half (4kb each and default ones are 8kb).

v13
01-25-2010, 06:00 PM
As far as I know the only way to change an icon is by overwriting it. If you want to keep the default one simply do not ovewrite it with the custom one. I will also provide a zip with the stock pngs.

Also the default theme/icons can be re-installed from the repo if you mess up.
Right?

What you want is Debian's diversions. You can divert those icons and replace them with your own. When your package is removed you'll just have to restore the diversions. As a bonus, diversions work with upgrades too. This means that your icons will survive even after a system upgrade.

Have a look here (http://www.debian.org/doc/debian-policy/ap-pkg-diversions.html).

romanianusa
01-25-2010, 08:08 PM
Hey Lacedaeman, when i put mv MyDocs/.documents/battery_scalable/* /usr/share/icons/hicolor/scalable/hildon/ in Xterminal, it says mv: cannot rename, no such file or directory. What is going on?? I did place the folder battery_scaleable in my Documents

Is there a program or manager where i can easily look into the root and move files i want in folders?

Lacedaemon
01-25-2010, 08:13 PM
Try the following and let me know:
mv home/user/MyDocs/.documents/battery_scalable/* /usr/share/icons/hicolor/scalable/hildon/

romanianusa
01-25-2010, 08:26 PM
Try the following and let me know:
mv home/user/MyDocs/.documents/battery_scalable/* /usr/share/icons/hicolor/scalable/hildon/

I try that too...i think the problem is i use .share

Now it is asking me to overwrite the .png and i enter 'y' but permission is denied??

Lacedaemon
01-25-2010, 08:32 PM
sudo gainroot command then the other commands should work.

romanianusa
01-25-2010, 08:33 PM
sudo gainroot command then the other commands should work.

I did type sudo gainroot to start it out. I also have sudser installed and use sudo -i too.

It says MyDocs/.documents/battery_scalable/statusarea_battery_full100.png: Permission denied.

even though i start out Xterminal by typing sudo gainroot.

I have root access with the sudo -i command because i installed sudser.

I got the battery_scalable working but not the 48x48

romanianusa
01-25-2010, 09:25 PM
I did this for the battery_48x48:

mv Mydocs/.documents/battery_48x48/* /usr/share/icons/hicolor/48x48/hildon/

mv: cannnot rename 'Mydocs/.documents/battery_48x48/*': No such file or directory

I did that after installing rootsh

What is going on anyway?

Laughing Man
01-25-2010, 09:28 PM
romanianusa

Retype that command as

mv MyDocs/.documents/battery_48x48/* /usr/share/icons/hicolor/48x48/hildon/

Linux is case sensitive so it will recognize a difference between Mydocs and MyDocs.

romanianusa
01-25-2010, 09:34 PM
romanianusa

Retype that command as

mv MyDocs/.documents/battery_48x48/* /usr/share/icons/hicolor/48x48/hildon/

Linux is case sensitive so it will recognize a difference between Mydocs and MyDocs.

Yea i just notice that...i can not believe i missed it!! Ok everything fixed...all good and got the GREEN BAR NOW!! VERY NICE!!

mankir
01-25-2010, 10:01 PM
If you want to have more fancy stuff, you can have a look at the MODs-thread for example:
http://talk.maemo.org/showthread.php?p=494715#post494715

AndrewG
01-31-2010, 11:35 AM
Yea it worked, but it also deleted ALL of my data. I've lost quite a lot of important things. WOOHOO.

Lacedaemon
01-31-2010, 01:19 PM
You lost what ?

AndrewG
01-31-2010, 01:24 PM
Data .
Ps your matrix theme is awesome

Lacedaemon
01-31-2010, 01:28 PM
Are you sure? What the command does is to replace icon images.

AndrewG
01-31-2010, 01:29 PM
Are you sure? What the command does is to replace icon images.

Positive, I have no idea what happened. All my files from /MyDocs/ were gone.

Lacedaemon
01-31-2010, 02:00 PM
rm -r MyDocs/.documents/battery_scalable

Should only remove the folder "battery_scalable" not the whole MyDocs.
I will remove it from the first post just in case.

Sorry for the trouble.

vintc
02-02-2010, 01:08 PM
Yes, done!! It's cool ;) great work, man :)

NokiaRocks
02-28-2010, 03:00 PM
Really cool things u made, Lacedaemon.

Scottlfa
02-28-2010, 04:43 PM
yeah a rm -r is dangerous in the wrong hands

rocky272727
04-01-2010, 05:28 PM
hitech battery icons


this is my modification of the battery icon..


please go here, this has been updated!

http://talk.maemo.org/showpost.php?p=481662&postcount=252

Thanks a lot looks great. Any other modifications you doing ?

cardiff-blues
04-05-2010, 06:45 PM
When I try this I don't see a hildon folder within scalable...What am I missing here?

notaridavid
04-19-2010, 06:27 PM
Great Jobs thanks

ONG
04-20-2010, 09:22 AM
please help me!

I have fallowed all the commands I have typed the same but the end of the operation it says "permission denied" ???

I have rootsh by the way..

and anybody can tell me how can I access the root folder from my pc because xterminal doesnt work

please help me!!

Ronaldo
04-20-2010, 09:32 AM
please help me!

I have fallowed all the commands I have typed the same but the end of the operation it says "permission denied" ???

I have rootsh by the way..

and anybody can tell me how can I access the root folder from my pc because xterminal doesnt work

please help me!!

when you are in xterminal type

sudo gainroot

then enter the commands

plaban
04-20-2010, 09:34 AM
please help me!

I have fallowed all the commands I have typed the same but the end of the operation it says "permission denied" ???

I have rootsh by the way..

and anybody can tell me how can I access the root folder from my pc because xterminal doesnt work

please help me!!
have you tried this first?

sudo gainroot

zimon
04-20-2010, 09:39 AM
have you tried this first?

sudo gainroot

btw, what is the difference in
sudo su -
and
sudo gainroot

or, are there other differences than just the home directory?

I've always wondered why there is that separate "gainroot" command.

ONG
04-20-2010, 06:17 PM
ofcourse I typed "sudo gainroot" first everytime..

first command works but the second one.. it says "permission denied"

A_P_1
06-28-2010, 11:42 PM
@ONG - Yes, same thing happened to me. Help!!

maxximuscool
06-29-2010, 12:09 AM
@ONG - Yes, same thing happened to me. Help!!

FFS just install "rootsh" from Extra-Devel and you'll get

sudo gainroot

also you can just type:

root

But in your case I think because of the battery icon is being used by another application.
To do this is to remove the previous version:

type:
cd /usr/share/icons/hicolor/scalable/hildon/



Alternatively if you are not a Linux sage. Then you can always do this way. Easier to manage way.

Install SSH server, then Install SSH Client from Extra-Devel

Give it a password and remember it. Login should be "root" and your password.

Now on the PC download Winscp427 from google.

A_P_1
06-30-2010, 09:51 PM
type:
cd /usr/share/icons/hicolor/scalable/hildon/
.

After doing that it tells me /opt/usr/share/icons/hicolor/scalable/hildon #

???

vitamina
07-14-2010, 01:13 AM
It is posible to have circular battery ? maybe when just 1 unit remain it weel flashing on the screen and turning red

El Amir
07-14-2010, 01:56 AM
It is posible to have circular battery ? maybe when just 1 unit remain it weel flashing on the screen and turning red

Do you have any links to the these very nice looking icons? :)

NB: I "+1" the idea of a circular battery btw

elwirchito
07-14-2010, 04:12 AM
I like the circle battery is awesome... where i can find it. Please post it!

vintc
07-14-2010, 07:41 AM
http://www.droidforums.net/forum/droid-themes/27169-round-battery-icon.html

http://forum.xda-developers.com/showthread.php?t=587578

one minute with google.. :)
not for our phone, but like proposal..
just an idea :)

vintc
07-14-2010, 10:47 AM
So..I tried it...
aaand..statuarea is good for it..but desktop is too small :(
You can try my version, but it's very hard alpha version :D

Warning: if you have other theme (for example Black Plastic) you have to copy files to appropriate place..

blwthompson
07-14-2010, 01:41 PM
That's awesome. I love the idea of a circle battery icon. However i would love for a Double Helix that fills with red for critical and low and blue for full etc, how difficult would that one be??

vitamina
07-26-2010, 11:12 AM
Any news with circular battery ?

Switch_
07-26-2010, 11:17 AM
Any news with circular battery ?

Knocked this one up for you quickly mate - hope it's what you want :D

Switch_
07-26-2010, 11:20 AM
That's awesome. I love the idea of a circle battery icon. However i would love for a Double Helix that fills with red for critical and low and blue for full etc, how difficult would that one be??

Can be done. I'll check out Google for some DNA / RNA structures with the legendary double-helix....

vitamina
07-26-2010, 11:21 AM
Thanks Switch :D looks great

Switch_
07-26-2010, 11:22 AM
Pleasure mate, glad you like it

mihapodb
07-26-2010, 12:38 PM
Where I have to copy that in the ZIP? That is all needed for the look like from vitamina?

vintc
07-29-2010, 01:45 AM
Here is V2 battery for STATUSAREA...

BTW..Anybody knows how to do large place in desktop, because 18x36 is very small :( some modification in file?!