PapirusDevelopmentTeam / papirus-icon-theme

Pixel perfect icon theme for Linux
https://git.io/papirus-icon-theme
GNU General Public License v3.0
6.48k stars 410 forks source link

global folder-color #557

Closed Armanmd closed 6 years ago

Armanmd commented 7 years ago

Hello We had global folder-color before the update, but now we have not got what I can do. I want a cyan color.

screen shot

what to do ?

(i use debian machine with your ppa for geting update)

SmartFinn commented 7 years ago

Folder color doesn't support Global Color feature anymore. I try to find another way to changing the global color of folders.

At the moment, you can rollback Folder Color version to 0.0.79, but I'll drop support the version soon.

Armanmd commented 7 years ago

@SmartFinn how can rollback Folder Color version to 0.0.79

Armanmd commented 7 years ago

@SmartFinn but I am impatiently waiting for your new way

The correct version 0.0.82

ghost commented 6 years ago

I wonder if it could be possible for our beloved Papirus team to generate variations like "Papirus-Adapta" in order to provide different colors. I mean maybe we could have "Papirus", "Papirus-Adapta", "Papirus-Brown", "Papirus-Green", etc... ?

Global folder colors was a neat feature and unfortunately of course @SmartFinn' python script doesn't work anymore too.

SmartFinn commented 6 years ago

We thinking about a system that allows building custom themes from one Papirus theme, but this can't be created in the near future.

ghost commented 6 years ago

Yeah it's a lot of work ^^

alkaef commented 6 years ago

I used to do this manually by renaming the colored folder but that's too time consuming. The most efficient solution I got at the moment is using sed to replace the default color with the color you want. For example you want to change the default blue folder color with magenta. Firstly do sudo su then:

sed -i 's/4877b1/957552/g' /usr/share/icons/Papirus/*/places/* && sed -i 's/5294e2/ae8e6c/g' /usr/share/icons/Papirus/*/places/* && sed -i 's/1d344f/3d3226/g' /usr/share/icons/Papirus/*/places/*

This will search blue color and replace it with magenta. You may notice there are 3 different colors for blue and magenta. These color represent the base folder color, the darker background, and even darker folder icon (i.e. pictures, docs, etc).

source

ghost commented 6 years ago

Haha yeah that's my hacky solution from my yesterday Reddit post, for other people in the source link there is a command for brown folders.

alkaef commented 6 years ago

Oh just realized you were the submitter @DarthWound. Unixporn is awesome!

ghost commented 6 years ago

palimpsest

@SmartFinn: based on my sed trick, I wrote a (dirty but working) bash script to globally change folders colors. But Papirus must be installed/updated with this script to create backup files. It calls your root install script which is the recommended method anyway. You can optionally install Paper cursor too. I use sed to have brown Papirus since a long time now, but it seems that this trick was very appreciated on r/unixporn so I decided to make a script for everybody. Hopefully future Papirus updates won't break it :)

Link from my GitHub Gist: https://gist.github.com/DarthWound/5beb8dd334497b6f9bc7c4b51e027cd9#gistcomment-2247502

Install: su -c 'cd /opt && mkdir Palimpsest && cd Palimpsest && git clone https://gist.github.com/5beb8dd334497b6f9bc7c4b51e027cd9.git && cd 5beb8dd334497b6f9bc7c4b51e027cd9 && chmod +x palimpsest.sh'

Run: su -c '/opt/Palimpsest/5beb8dd334497b6f9bc7c4b51e027cd9/palimpsest.sh'

("su -c 'command'" is a way to launch a command as root)

You may add an alias for the "run" command in your bashrc file, or even create a desktop file.

capture d ecran de 2017-11-04 06-24-24

About this name...

SmartFinn commented 6 years ago

@DarthWound oh, that really dirty :smile:

We using symlinks to switch folder color (compare Papirus and Papirus-Adapta for example), so you could simply change symlink from folder-download.svg -> folder-blue-download.svg to folder-download.svg -> folder-brown-download.svg to change folder color to brown.

I made a script for this, but the script doesn't support Papirus-Adapda{,-Nokto} (as yours). I can publish it, but this cannot be an official solution.

Btw, my script works wonderful and supports all know install paths. I using it when switching color folder color to cyan for Papirus-Adapta.

varlesh commented 6 years ago

Yes, yes... better solution - remap symlinks...

ghost commented 6 years ago

Yeah :laughing: but I'm not part of your team and I don't really know how you work on your icon theme ^^

At least it's something that works, we were desperately missing a tool. If you have your own script share it with us we would be more than happy!

alkaef commented 6 years ago

Yea share it please

SmartFinn commented 6 years ago

I finally made an official script for changing folders color :slightly_smiling_face:

papirus-folders must work on any modern Linux distro (BSD version will be soon) in any desktop environment.

All official installation scripts and a deb package can restore the selected color of folders when upgrading. I hope that maintainers of unofficial packages will also add this feature to their own post-install scripts.

CC @NusryNizam @holden87 @lasnevadas @pgrycz @kennethso168

NusryNizam commented 6 years ago

@SmartFinn Thanks. Works like charm!

ghost commented 6 years ago

Thank you!

varlesh commented 6 years ago

@SmartFinn Wonderful work!!!

varlesh commented 6 years ago

Tested on KDE, worked fine: image

SmartFinn commented 5 years ago

@jadenjoner this code snippet is senseless. Specify theme that you using by papirus-folders -C orange --theme Papirus-Dark or update icon caches for all themes running papirus-folders -C orange -u.