How to add more folder colours to Ubuntu 14.04?

Asked by Navin Talati

I installed Folder Colours through following command lines:

sudo add-apt-repository ppa:costales/folder-color
sudo apt-get update && sudo apt-get install folder-color

The resultant gave 12 different folder colours (Black, Blue, Brown, Cyan, Green, Grey, Orange, Pink, Purple, Red, mWhite, Yellow). Out of these one (Orange) is the default of Ubuntu OS.

Could more colours be added into this? How?

Question information

Language:
English Edit question
Status:
Solved
For:
Folder Color Edit question
Assignee:
No assignee Edit question
Solved by:
Navin Talati
Solved:
Last query:
Last reply:
Revision history for this message
costales (costales) said :
#1

Hi! You can, but it's a semi-manual process:

Create new icon colors.

Add new icons here (be careful with the file/folders names, use same as the others): /usr/share/folder-color/media/

and in /usr/share/nautilus-extension/folder-color.py, append the new colors:
self.COLORS = {'black': ("Black"),
'brown': ("Brown"),
'cyan': ("Cyan"),
'blue': ("Blue"),
'green': ("Green"),
'grey': ("Grey"),
'orange': ("Orange"),
'pink': ("Pink"),
'red': ("Red"),
'purple': ("Purple"),
'yellow': ("Yellow"),
'white': ("White") }

Best regards :)

Revision history for this message
Navin Talati (n-m-talati) said :
#2

Sir,
What I understood from your reply is as under:

(1)Add new icons here (be careful with the file/folders names, use same as the others): /usr/share/folder-color/media/

Here, I could see different 9 folders in each colour's folder (like Desktop, Doccuments, Download, Folders, Music, Pictures, Public, Templets, Videos) and each with .svg extension.

Here, I tried to create a new folder for new colour (e.g say 'rainbow' ) but It does not allow. T think there will be specific COMMAND-LINE which one shyould apply in Terminal.

As I am not a technical person, I request to suggest that for any specific colour (i.e. other then those included).

(2).....and in /usr/share/nautilus-extension/folder-color.py, append the new colors:
self.COLORS = {'black': ("Black"),
'brown': ("Brown"),
'cyan': ("Cyan"),
'blue': ("Blue"),
'green': ("Green"),
'grey': ("Grey"),
'orange': ("Orange"),
'pink': ("Pink"),
'red': ("Red"),
'purple': ("Purple"),
'yellow': ("Yellow"),
'white': ("White") }

Here do you mean that I should add the new colour's name in the same format/style/structure after ...'white': ("White")... and then put the ..... }..... symbol at the end?

If any specific command-line is required, please suggest it.

Please guide for the above TWO steps as requested and oblige.

Revision history for this message
costales (costales) said :
#3

Hi! :) Don't worry, in a Terminal this 3 commands:

sudo cp -r /usr/share/folder-color/media/grey /usr/share/folder-color/media/rainbow

sudo gedit /usr/share/nautilus-extension/folder-color.py
And add this line:
'grey': ("Grey"),
'rainbow': ("Rainbow"), <<<< Be careful! Same spaces in the left as grey and as orange.
'orange': ("Orange"),

nautilus -q ; nautilus

You have to see the new "rainbow" ;) But it'll be as grey because it's the same color. You have to overwrite the .svg files.
Cheers!

Revision history for this message
costales (costales) said :
#4

Hi! You can add new colors in an easy way :)
http://bazaar.launchpad.net/~costales/folder-color/trunk/view/head:/README
Cheers!

Revision history for this message
Navin Talati (n-m-talati) said :
#5

Thanks sir,
Very good information and literature is a content of the link.

Revision history for this message
costales (costales) said :
#6

Hi :)
Folder Color changed a lot in this time. Now is totally dynamic ;) then you
can just copy a icon :D

Please, take a look to this document:
http://bazaar.launchpad.net/~costales/folder-color/trunk/view/head:/README

Best regards!