best of both (icon) worlds

Dock

I'm a big fan of the Papirus icon theme. But on the other hand, there are sometimes problems with the UI icons.

Not everything always has the right padding or margin. So now I use the 'best of both worlds': Papirus for apps and folders, and Adwaita for the UI elements.

Finder

For this to work, you need a small trick: a 'new' icon theme that combines both themes via softlink.

This small script creates these links automatically in the Papirus-Custom folder (~/.local/share/icons/).

#!/usr/bin/env bash
THEME="$HOME/.local/share/icons/Papirus-Custom"
SRC="/usr/share/icons/Papirus"

mkdir -p "$THEME/addon"

for s in 8x8 16x16 18x18 22x22 24x24 32x32 42x42 48x48 64x64 84x84 96x96 128x128; do
  for c in apps places; do
    # Normalgröße
    if [ -d "$SRC/$s/$c" ]; then
      mkdir -p "$THEME/$s"
      ln -sfn "$SRC/$s/$c" "$THEME/$s/$c"
    fi
    # HiDPI-Variante (@2x), falls vorhanden
    if [ -d "$SRC/$s@2x/$c" ]; then
      mkdir -p "$THEME/$s@2x"
      ln -sfn "$SRC/$s@2x/$c" "$THEME/$s@2x/$c"
    fi
  done
done

The corresponding index.theme then also goes into the directory:

[Icon Theme]
Name=Papirus-Custom
Inherits=Adwaita
Directories=addon,8x8/apps,8x8/places,16x16/apps,16x16/places,16x16@2x/apps,16x16@2x/places,18x18/apps,18x18/places,18x18@2x/apps,18x18@2x/places,22x22/apps,22x22/places,22x22@2x/apps,22x22@2x/places,24x24/apps,24x24/places,24x24@2x/apps,24x24@2x/places,32x32/apps,32x32/places,32x32@2x/apps,32x32@2x/places,42x42/apps,42x42/places,48x48/apps,48x48/places,48x48@2x/apps,48x48@2x/places,64x64/apps,64x64/places,64x64@2x/apps,64x64@2x/places,84x84/apps,84x84/places,96x96/apps,96x96/places,128x128/apps,128x128/places

[addon]
Size=16
Type=Scalable
MinSize=8
MaxSize=512

[8x8/apps]
Size=8
Type=Fixed

[8x8/places]
Size=8
Type=Fixed

[16x16/apps]
Size=16
Type=Fixed

[16x16/places]
Size=16
Type=Fixed

[16x16@2x/apps]
Size=32
Scale=2
Type=Fixed

[16x16@2x/places]
Size=32
Scale=2
Type=Fixed

[18x18/apps]
Size=18
Type=Fixed

[18x18/places]
Size=18
Type=Fixed

[18x18@2x/apps]
Size=36
Scale=2
Type=Fixed

[18x18@2x/places]
Size=36
Scale=2
Type=Fixed

[22x22/apps]
Size=22
Type=Fixed

[22x22/places]
Size=22
Type=Fixed

[22x22@2x/apps]
Size=44
Scale=2
Type=Fixed

[22x22@2x/places]
Size=44
Scale=2
Type=Fixed

[24x24/apps]
Size=24
Type=Fixed

[24x24/places]
Size=24
Type=Fixed

[24x24@2x/apps]
Size=48
Scale=2
Type=Fixed

[24x24@2x/places]
Size=48
Scale=2
Type=Fixed

[32x32/apps]
Size=32
Type=Fixed

[32x32/places]
Size=32
Type=Fixed

[32x32@2x/apps]
Size=64
Scale=2
Type=Fixed

[32x32@2x/places]
Size=64
Scale=2
Type=Fixed

[42x42/apps]
Size=42
Type=Fixed

[42x42/places]
Size=42
Type=Fixed

[48x48/apps]
Size=48
Type=Fixed

[48x48/places]
Size=48
Type=Fixed

[48x48@2x/apps]
Size=96
Scale=2
Type=Fixed

[48x48@2x/places]
Size=96
Scale=2
Type=Fixed

[64x64/apps]
Size=64
Type=Fixed

[64x64/places]
Size=64
Type=Fixed

[64x64@2x/apps]
Size=128
Scale=2
Type=Fixed

[64x64@2x/places]
Size=128
Scale=2
Type=Fixed

[84x84/apps]
Size=84
Type=Fixed

[84x84/places]
Size=84
Type=Fixed

[96x96/apps]
Size=96
Type=Fixed

[96x96/places]
Size=96
Type=Fixed

[128x128/apps]
Size=128
Type=Fixed

[128x128/places]
Size=128
Type=Fixed

Alternative icons for apps can then also be stored in the addon folder.

Finally, build the icon cache ...

gtk-update-icon-cache ~/.local/share/icons/Papirus-Custom/

and activate the theme with gnome-tweaks or gsettings:

gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Custom'