Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

script for fixing gray-on-gray icons december 2023 edition

I previously wrote about fixing the offending icons for audio volume notifications, and here are a few more files that need to be fixed in the Numix-Circle theme.

files/2023/12/listings/fix-icon-colors.sh (Source)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#!/bin/sh
# Startdate: 2023-12-11-2 18:46
# Purpose: fix gray-on-gray for icons that I use
# Reference:
#    1. https://bgstack15.ddns.net/blog/posts/2023/10/26/fixed-the-offending-icons-for-audio-volume-notifications/
# Improve:
# Documentation:
#    powerkit has a different problem. see fix-powerkit-icons.sh

# icons in notifications for changing audio volume
sudo sed -i.bup -r -e "s/fill:#ececec;/fill:#000000;/g;" $( readlink -f $( find /usr/share/icons \( -iname 'audio-volume-medium.*' -o -iname 'audio-volume-low.*' -o -iname 'audio-volume-high.*' -o -iname 'audio-volume-*mute*' \) ! -iname '*block*' -ipath '*Numix/*' ) | sort -u )

# tray icons for krb5-auth-dialog
sudo sed -i.bup -r -e "s/fill:#ececec;/fill:#000000;/g;" $( find /usr/share/icons/Numix -iname 'krb-no-valid-ticket*' -o -iname 'gtk-dialog-authentication-panel.*' | sort -u )

# tray icons for connman-gtk network manager
sudo sed -i.bup -r -e "s/fill:#ececec;/fill:#000000;/g;" /usr/share/icons/Numix/16/status/network-offline.svg /usr/share/icons/Numix/16/status/network-transmit-receive.svg

Comments