maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Design (https://talk.maemo.org/forumdisplay.php?f=46)
-   -   [Status Icon] Battery (https://talk.maemo.org/showthread.php?t=41035)

Lacedaemon 2010-01-17 14:00

[Status Icon] Battery
 
3 Attachment(s)
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 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):
Code:

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

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 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):
Code:

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


Preview desktop battery icon:

http://img690.imageshack.us/img690/1...0011716015.png

Preview status area battery icon:

http://talk.maemo.org/attachment.php...1&d=1263688664

F2thaK 2010-01-17 14:06

Re: [Status Icon] Battery
 
d/ling atm will let u know

F2thaK 2010-01-17 14:10

Re: [Status Icon] Battery
 
mine only changes one on desktop......??

Lacedaemon 2010-01-17 14:12

Re: [Status Icon] Battery
 
Will upload the status area battery zip soon.

EDIT: Done, see first post.

F2thaK 2010-01-17 14:23

Re: [Status Icon] Battery
 
link broken "status_battery.zip" ?






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

joppu 2010-01-17 16:41

Re: [Status Icon] Battery
 
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 2010-01-17 17:06

Re: [Status Icon] Battery
 
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 2010-01-17 20:34

Re: [Status Icon] Battery
 
can this be done via xterminal?if yes then please give the code.

Lacedaemon 2010-01-17 20:53

Re: [Status Icon] Battery
 
@plaban

Done, check first post.

plaban 2010-01-18 06:31

Re: [Status Icon] Battery
 
Looking good... thanks

amorek13 2010-01-18 10:21

Re: [Status Icon] Battery
 
great job thanks

F2thaK 2010-01-19 11:12

Re: [Status Icon] Battery
 
1 Attachment(s)
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...&postcount=252

TimskiMcMatrix 2010-01-24 06:29

Re: [Status Icon] Battery
 
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 2010-01-24 06:37

Re: [Status Icon] Battery
 
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 2010-01-24 07:12

Re: [Status Icon] Battery
 
can u guide me through the process? where do i start? thanks!

DaKing 2010-01-25 18:31

Re: [Status Icon] Battery
 
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 2010-01-25 18:57

Re: [Status Icon] Battery
 
You can do it via SSH connection, or terminal:

Code:

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 2010-01-25 18:57

Re: [Status Icon] Battery
 
great work man :)

DaKing 2010-01-25 21:27

Re: [Status Icon] Battery
 
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 2010-01-25 21:34

Re: [Status Icon] Battery
 
The copied folder should be found on File Manager -> N900
Of course it's not, you are just replacing .png files here(images).

DaKing 2010-01-25 21:37

Re: [Status Icon] Battery
 
i see ok thanks alot man :)

Lacedaemon 2010-01-25 21:45

Re: [Status Icon] Battery
 
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 2010-01-25 22:00

Re: [Status Icon] Battery
 
Quote:

Originally Posted by Lacedaemon (Post 478328)
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.

romanianusa 2010-01-26 00:08

Re: [Status Icon] Battery
 
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 2010-01-26 00:13

Re: [Status Icon] Battery
 
Try the following and let me know:
Code:

mv home/user/MyDocs/.documents/battery_scalable/* /usr/share/icons/hicolor/scalable/hildon/

romanianusa 2010-01-26 00:26

Re: [Status Icon] Battery
 
Quote:

Originally Posted by Lacedaemon (Post 494648)
Try the following and let me know:
Code:

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 2010-01-26 00:32

Re: [Status Icon] Battery
 
sudo gainroot command then the other commands should work.

romanianusa 2010-01-26 00:33

Re: [Status Icon] Battery
 
Quote:

Originally Posted by Lacedaemon (Post 494674)
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 2010-01-26 01:25

Re: [Status Icon] Battery
 
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 2010-01-26 01:28

Re: [Status Icon] Battery
 
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 2010-01-26 01:34

Re: [Status Icon] Battery
 
Quote:

Originally Posted by Laughing Man (Post 494766)
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 2010-01-26 02:01

Re: [Status Icon] Battery
 
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...715#post494715

AndrewG 2010-01-31 15:35

Re: [Status Icon] Battery
 
Yea it worked, but it also deleted ALL of my data. I've lost quite a lot of important things. WOOHOO.

Lacedaemon 2010-01-31 17:19

Re: [Status Icon] Battery
 
You lost what ?

AndrewG 2010-01-31 17:24

Re: [Status Icon] Battery
 
Data .
Ps your matrix theme is awesome

Lacedaemon 2010-01-31 17:28

Re: [Status Icon] Battery
 
Are you sure? What the command does is to replace icon images.

AndrewG 2010-01-31 17:29

Re: [Status Icon] Battery
 
Quote:

Originally Posted by Lacedaemon (Post 503997)
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 2010-01-31 18:00

Re: [Status Icon] Battery
 
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 2010-02-02 17:08

Re: [Status Icon] Battery
 
Yes, done!! It's cool ;) great work, man :)

NokiaRocks 2010-02-28 19:00

Re: [Status Icon] Battery
 
Really cool things u made, Lacedaemon.


All times are GMT. The time now is 11:48.

vBulletin® Version 3.8.8