Last active
March 21, 2019 06:55
-
-
Save okitavera/4948d0df618c154d206de893aa288329 to your computer and use it in GitHub Desktop.
Better overamplified-volume icon for gnome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Better overamplified-volume icon for gnome with exclamation mark | |
# thanks @addy-dclxvi for the idea :) | |
IC=/usr/share/icons/Adwaita | |
OAMP=/tmp/overamplified.svg | |
command -v inkscape >/dev/null 2>&1 || { echo >&2 "Inkcape not found. exiting"; exit 1; } | |
cat <<-EOF > $OAMP | |
<svg width="16" height="16" version="1.1" xmlns="http://www.w3.org/2000/svg"> | |
<path d="m0 5h2.484l2.97-3h0.546v12h-0.475l-3.04-3h-2.485z"/> | |
<path d="m12 8c0-2.166-0.739-4.02-2-5h-1v2c0.607 0.789 1 1.76 1 3 0 1.241-0.393 2.22-1 3v2h1c1.223-0.995 2-2.873 2-5z"/> | |
<path d="m9 8c0-1.257-0.312-2.216-1-3h-1v6h1c0.672-0.837 1-1.742 1-3z"/> | |
<path d="m16 12.751a1.3399 1.3399 0 0 1-1.3399 1.3399 1.3399 1.3399 0 0 1-1.3399-1.3399 1.3399 1.3399 0 0 1 1.3399-1.3399 1.3399 1.3399 0 0 1 1.3399 1.3399z"/> | |
<path d="m13.44 1.8305h2.5v8.5h-2.5z"/> | |
</svg> | |
EOF | |
for bmp in $(find $IC -type f -iname \*overamplified\*.png) | |
do | |
size=$(echo $bmp| sed -e 's/.*\/\([0-9]*\)x\([0-9]*\)\/.*/\1/g') | |
sudo inkscape -z -f $OAMP -w $size -e $bmp | |
done | |
sudo mv $OAMP $IC/scalable/status/audio-volume-overamplified-symbolic.svg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment