Knowledge Base

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

Fixed the offending icons for audio volume notifications!

In a recent post I had a complicated workaround just to have my notification daemon use a different icon theme. But now in my Numix icon theme I've fixed the offending gray-on-gray icon. Check out this insanity:

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 )

The Unix master Foo would be pleased.

For myself whenever I find this again:

I find the exact icons I care about by fuzzy name (find), and then get target files (readlink -f) so I don't waste time on symlinks or trying to modify twice, and then remove duplicates (sort -u) and then I change the evil middling gray (#ececec;) to a visible black (#000000;). Ah, glorious visible icons. It's a shame the Numix only has up to size 24x24 icons for this one and my daemon doesn't try to scale the scaleable icon to 64x64 or something. That's a different problem for a different day.

Comments