Giter VIP home page Giter VIP logo

papirus-folders's Introduction

Papirus Folders

papirus-folders is a handy bash script that lets you change the colors of folders in the Papirus icon theme and similar themes based on version 20171007 or newer. It's an easy way to customize how your folders look.

Table of contents

Preview

Name Preview Name Preview
adwaita folder-adwaita user-adwaita-home folder-adwaita-download black folder-black user-black-home folder-black-download
blue folder-blue user-blue-home folder-blue-download bluegrey folder-bluegrey user-bluegrey-home folder-bluegrey-download
breeze folder-breeze user-breeze-home folder-breeze-download brown folder-brown user-brown-home folder-brown-download
carmine folder-carmine user-carmine-home folder-carmine-download cyan folder-cyan user-cyan-home folder-cyan-download
darkcyan folder-darkcyan user-darkcyan-home folder-darkcyan-download deeporange folder-deeporange user-deeporange-home folder-deeporange-download
green folder-green user-green-home folder-green-download grey folder-grey user-grey-home folder-grey-download
indigo folder-indigo user-indigo-home folder-indigo-download magenta folder-magenta user-magenta-home folder-magenta-download
nordic folder-nordic user-nordic-home folder-nordic-download orange folder-orange user-orange-home folder-orange-download
palebrown folder-palebrown user-palebrown-home folder-palebrown-download paleorange folder-paleorange user-paleorange-home folder-paleorange-download
pink folder-pink user-pink-home folder-pink-download red folder-red user-red-home folder-red-download
teal folder-teal user-teal-home folder-teal-download violet folder-violet user-violet-home folder-violet-download
white folder-white user-white-home folder-white-download yaru folder-yaru user-yaru-home folder-yaru-download
yellow folder-yellow user-yellow-home folder-yellow-download

Important

This project doesn't provide any folder icons. If you want to request a new folder icon or a new color of folder please open an issue here.

Installation

Ubuntu and derivatives

You can install papirus-folders from our official PPA:

sudo add-apt-repository ppa:papirus/papirus
sudo apt-get update
sudo apt-get install papirus-folders

or download .deb packages from here.

Papirus Installer

Use the script to install the latest version directly from this repo (independently on your distro):

Install

wget -qO- https://git.io/papirus-folders-install | sh

To install papirus-folders to home directory using the following command:

wget -qO- https://git.io/papirus-folders-install | env PREFIX=$HOME/.local sh

To install papirus-folders on BSD systems using the following command:

wget -qO- https://git.io/papirus-folders-install | env PREFIX=/usr/local sh

Uninstall

wget -qO- https://git.io/papirus-folders-install | env uninstall=true sh

Third-party packages

Packages listed in this section are third-party packages. If you have a problem or a question, please contact the package maintainer.

Please note that some packages in the list may be outdated, open Repology to find out package versions.

Distro Maintainer Package
Arch Linux Piotr Górski papirus-folders-git AUR
MX Linux Steven Pusser sudo apt-get install papirus-folders
NetBSD Nia Alarie papirus-folders pkgsrc
NixOS Alexandre Acebedo nix-env -iA nixos.papirus-folders
openSUSE andy great papirus-folders OBS [link]
Void Linux Benjamín Albiñana sudo xbps-install -S papirus-folders

Note

If you are a maintainer and want to be in the list, please create an issue or make a pull request.

Script usage

Papirus-folders doesn't have a GUI, but it is a fully functional command-line application with TAB-completions. Below you'll see some examples of use.

Show the current color and available colors for Papirus-Dark

papirus-folders -l --theme Papirus-Dark

Change color of folders to brown for Papirus-Dark

papirus-folders -C brown --theme Papirus-Dark

Revert to default color of folders for Papirus-Dark

papirus-folders -D --theme Papirus-Dark

Restore the last used color from a config file

papirus-folders -Ru

The last command is extremely useful for restoring color after icon theme upgrade (official installers of papirus-icon-theme and some third-party packages do this automatically).

Related projects

Use case Tool
Graphical user interface for papirus-folders papirus-folders-gui
Graphical application for generating folders icon with to your own colors or with presets for popular themes Oomox theme designer
A context menu for Nautilus, Nemo or Caja File Browser for changing the color of an individual folder Folder Color
Dolphin contextual menu for coloring a selected folders Dolphin Folder Color

Donate

If you would like to support development by making one-time donation or by becoming a supporter, please visit our page on Buy Me a Coffee.

Buy me a coffee

papirus-folders's People

Contributors

cryskram avatar kevinsmia1939 avatar smartfinn avatar varlesh avatar xbzzzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

papirus-folders's Issues

Get rid of inetutils dependecy

Good day to you!
Checked PKGBUILD and noticed that there's inetutils package in the dependencies. It seems strange to me that a bash script for changing colours of folders will not work without networking library.

The only mention of using its binaries was in the papirus-folders script for the intention of determining user hostname, or at least that's what I've found.

"$real_home/.kde4/cache-$(hostname)/icon-cache.kcache"

Can we work with just cat /etc/hostname or remove the need of the user hostname altogether? Would love to hear your thoughts on that.

P.S. Thank you very much for your work on papirus! I love it!

Possible to include the new (yet to be released) adwaita-icon-theme blue folders?

Greetings,

I was just wondering if it would be possible or likely for papirus-folders to include the new blue folder icons when Gnome 42 is released? For context I'm referring to the issue and the merge links here:

https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/126

https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/merge_requests/32

What the folder icons in question look like is below:

Screenshot_from_2021-10-06_18-23-36

Please let me know if this is something you might consider as I think the new icons help with contrast with the dark theme. I don't prefer the adwaita-icon set myself, which is why I love to use both papirus-icon-theme and papirus-folders together, hence my inquiry into this. No worries if it can't be done, I'm simply just curious and hopeful is all. In any case, thanks for making this folders package, it's always one of the first things I install on a new system.

Papirus Folders suddenly stop greenify Papirus Dark

KDEfied Bodhi Linux 16.04, using Papirus folder and papirus icon from ppa.

Around two days ago, the folder revert to blue and refused to be changed back to green.

Please help.

> renan@renan-hp14-bodhi4-64:~$ papirus-folders -C green --theme Papirus-Dark
> papirus-folders: Changing color of folders to 'green' for 'Papirus-Dark' ...
> /usr/bin/papirus-folders: line 258: mapfile: -d: invalid option
> mapfile: usage: mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]
> renan@renan-hp14-bodhi4-64:~$ 
> 

Smallest icons sizes for folders in GNOME Files do not follow the desired color scheme

The Papirus Icons look fantastic in GNOME Files/Nautilus, but the commands to change the folder icon colors do not seem to affect the folder icons when using the smallest list view (it falls back to gray folder icons no which color scheme). The new folder colors are only visible when increasing the icon size by at least one step.

Is there any chance to also change the folder icons of the minimal icon size in list view to the desired color?

[Bug report] find: No such file or directory

The temporary files that created by ln appear in find index. Sometimes it breaks the script:

$ > papirus-folders -C bluegrey -v --theme Papirus-Dark
papirus-folders: 'Papirus-Dark' is found in '/usr/share/icons'.
papirus-folders: This operation requires root privileges.
papirus-folders: 'Papirus-Dark' is found in '/usr/share/icons'.
papirus-folders: Changing color of folders to 'bluegrey' for 'Papirus-Dark' ...
find: ‘/usr/share/icons/Papirus-Adapta-Nokto/48x48@2x/places/CuCv49r7’: No such file or directory

Yaru color is not available

I am using version 1.7.0, in papirus-folders -l,
"yaru" is not in the list.

Error message: Unable to find 'yaru' color in 'Papirus'.

Void Linux package

Hello, there is a package for Void since a couple of days :-)

Distro Maintainer Package
Void Linux Benjamín Albiñana sudo xbps-install -S papirus-folders srcpkgs [link]
| Void Linux | Benjamín Albiñana | `sudo xbps-install -S papirus-folders` <sup>srcpkgs [[link](https://github.com/void-linux/void-packages/tree/master/srcpkgs/papirus-folders)]</sub> |

Color resetting after a while

  • Distribution (version): Fedora 33 and 34
  • Desktop environment: GNOME
  • Installing method: Papirus Installer (Script)

After a while (I use the color Teal) I see the color reset to the original default color, blue.

Error with installing papirus-folders

Distro - Ubuntu 20.04 LTS
installing method - PPA
Hi, i was trying to install this on my system, but I'm getting the error in the screenshot below.

Would really appreciate if I could get some help with this... I'm a complete beginner and I've been trying to figure this out for hours now.
Screenshot from 2021-12-31 19-36-25

Changing the way of how folders get patched

Currently, the way papirus-folders works is by manually modifying the theme where it's stored in /usr which doesn't work for immutable distros:

ln: failed to create symbolic link '/usr/share/icons/Papirus/22x22/places/folder-activities.svg': Read-only file system
papirus-folders: Error: Fail to create '/usr/share/icons/Papirus/22x22/places/folder-activities.svg' symlink

This issue is "addressed" in #35 but that solution requires the user to install the theme to their HOME directory rather than having it installed in their system, which most people would prefer for the sake of easy updating and maintenance.

A possible "ultimate" solution would probably be to add a method of patching icons similar to papirus-colors, where it would be possible to copy the folder icons to the users' HOME directory, manually modify/patch them there under a new "icon theme" which then relies on the original Papirus theme installation for every other icon(s) that aren't the recolored folders.

Cannot change colour in a immutable system

I'm using OpenSUSE MicroOS Gnome, an immutable system that prevents you from editing root files. I installed both the icon theme and folder from OpenSUSE's official repo. Here is the output when I tries to change the folder colour:

papirus-folders: Changing color of folders to 'brown' for 'Papirus-Dark' ...
ln: failed to create symbolic link '/usr/share/icons/Papirus-Dark/22x22/places/folder-activities.svg': Read-only file system
papirus-folders: Error: Fail to create '/usr/share/icons/Papirus-Dark/22x22/places/folder-activities.svg' symlink

Would there be any workaround? Cheers!

Provide a new papirus-folders-add tool

Since we got a lot of requests to add another folder colors, I understood that we can't cover all them. As to me, the better solution is to add a tool that allows users to add their own colors to the folders and keep only core colors built-in the icon theme.

Currently, I see the tool as:

  • a separated script for creating the custom color folders
  • an option to call GUI color picker with Zenity
  • wiki page(s) for sharing commands between users for creating the custom color folders

Next I see two paths, each of them has its proc and cons.

The first path is to be able to user changing colors for only special folder-custom icons.

Proc:

  1. Easy to implement.
  2. No need to manage list of colors.
  3. After the icon theme upgrade, need to generate limited quantity of icons.

Cons:

  1. Unable to create two and more custom colors and switching between them with papirus-folders only. It requires running the papirus-folders-add script each time before switching.

The second path is to allow the user to add unlimited color folders.

Proc:

  1. Easy switch between two and more pre-generated color folders.

Cons:

  1. Requires to keep all colors added by a user in a file (.csv) and add option to add/remove items from the file.
  2. After the icon theme upgrade, it needs to generate ~409*N, where N is a number of user's color folders.
  3. It requires a post-remove script for papirus-icon-theme to correctly remove all added icons.

Add new folder colors

Hey i'm a big fan of the Papirus icon theme, i think it would be really nice if you had Gruvbox and/or Dracula icon themes. Thanks!

Does papirus-folders act only system-wide ?

Hi,

using papirus-folders here on a Ubuntu Budgie 18.04.

When using it to change the folders default color - let's say to orange - it's applied system-wide to all the sessions / users making use of papirus icons.

Is this intended ?

Or is there a way to set default color for folders per session / per user ?

Change all folder colors (Cinnamon/Nemo)

Is there a way to change all the folder colors in Cinnamon and Nemo without having to select every single folder and changinf its color?

I am using Linux Mint 19.2 and I would like to use Papirus icon pack but with my folder icons to be Green and not Teal.

why not a GUI?

I would like to put the program in the menu and change color with a single click, I do not know if you have thought that the program has a gui or something like that

Request: Please Change To Install/Run/Work In Users $HOME

Hello,

Thanks for making this and simplifying the process, especially with smaller 3rd party file managers, but it would be nice if you can please make this to install and run from a users $HOME, instead of installing into the root / of the system.

THANKS

Different colors for light/dark variants

Is there a way to specify two different colors for light/dark variants? Say palebrown for light, and brown for dark

I've tried -t Papirus-Light -C palebrown, followed by -t Papirus-Dark -C brown, but it just overwrites itself. I've tried -t Papirus-Light -C palebrown -t Papirus-Dark -C brown but it just uses the last entry in the command. I've tried editing the keep file, but it doesn't seem to have a notion of multiple themes.

It seemed to me that it would work because I could specify the theme to be targeted, but it appears that it doesn't. Or am I missing something?

16x16 symlinks missing. wrong (black) icon in browser's save dialog.

After installing papirus-icon-theme and papirus-folders, at some point I noticed that the small icons were not showing up correctly in my browser's save-dialog (both in firefox and vivaldi). They were black and barely noticeable on the dark background. (Not sure why black).

I had set my folder variant to adwaita via papirus-folders:
papirus-folders -C adwaita --theme Papirus

I tried reverting back to the default to see if that fixed the issue:
papirus-folders -D --theme Papirus
It did not.

Upon inspecting the /usr/share/icons/Papirus directory, I discovered that in the 16x16 dir, folder.svg (was black) and was not symlinked to folder-adwaita.svg

Manually symlinking the 16x16 folder.svg proved to fix my issue.

I perused the code and papirus-folders seems to intentionally not symlink the 16x16 sizes.
Am I correct in concluding that this was the cause for my issue?
Or is skipping 16x16 indeed intentional, and there is some other stuff going on?

Autodetect all colors / list of colors is hardcoded

Hi! I installed both this and Papirus Nord (https://github.com/Adapta-Projects/Papirus-Nord) through the Arch Linux AUR and was going mad trying to figure out why it didn't list any of Papirus Nord's colors.

Then I looked at the code and realized, that the list of colors is hardcoded and that Papirus Nord ships a fork of papirus-folder.

Is there any reason for the list of valid colors to be hardcoded? Why not auto-detect all available colors instead?

Latest version install, missing colors

I may be missing something really simple, but I installed papirus icons and papirus-folders on linuxmint 20 with cinnamon DE. I'm missing the breeze folder color. Is it only available in KDE Plasma or am I missing something?

Change color of folders when viewing files and folders in List mode

Hi. First, thanks for this project, I love how the folders look.

I can see the selected color for folders when viewing files and folders in Grid mode, but when viewing them in List mode the folders are white.

Grid mode
image

List mode
image

Can the same selected color, when running the script, be applied to folders in List mode too?

Pop_OS! 22.04
Nautilus
Papirus Dark

Fedora 28 installation istructions?

Sorry to disturb you, but I'm confused on how to install these software without a guide. I'm not very expert user, so I need a textual guide to understand how to install some packages.

Cannot change folders' colour

The tool is broken after the commit 8d75a871ae8bc3794844037402d03bb8451caae8.

Now, every time I try to change folders' colour, the following error message is thrown:
/usr/bin/papirus-folders: line 258: mapfile: -d: invalid option
mapfile: usage: mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]

How to use the "custom" color?

HI.
Using the -l command-line option, I see the "custom" entry.
But how to use it?
I tried -C custom but got black icons, so I suppose I need to provide the custom color somewhere.
But where, and how?

Thanks in advance!

How to add a mark or symbol to a folder.

I want to add a mark or folder in my newly created folder i.e. the one I created, just like the default folders of ubuntu e.g. Pictures, Downloads, Documents, Videos, Music etc. How can I do that.
Screenshot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.