Skip to content

Commit 4f31b8e

Browse files
committed
fix: battery icons for 90% to 100%
1 parent 2b61899 commit 4f31b8e

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

files/scripts/20-chicago95.sh

-8
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,8 @@ cp -r Theme/Chicago95 /usr/share/themes
1717
# Icons and cursors
1818
cp -r Icons/* Cursors/* /usr/share/icons/
1919

20-
# Battery tweaks (stay on full icon from 100%-90%)
21-
for f in $(find . -name "battery-level-90*"); do
22-
target=$(echo ${f/90/100} | sed 's/-charging//')
23-
rm $f
24-
ln -s $target $f
25-
done
26-
2720

2821
# Custom app icons
29-
3022
ln -s /usr/share/icons/Chicago95/apps/48/{software,bauh}.png
3123
ln -s /usr/share/icons/Chicago95/apps/48/stock_keyring.png /usr/share/icons/Chicago95/apps/com.onepassword.OnePassword.png
3224

files/scripts/29-finalize-de-tweaks.sh

+12
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,17 @@
22

33
set -ouex pipefail
44

5+
# Battery panel icon tweaks (stay on full icon from 100% to 90%)
6+
cd /usr/share/icons/Chicago95
7+
for f in $(find . -name "battery-level-90*"); do
8+
cd /usr/share/icons/Chicago95/$(dirname $f)
9+
icon_name=$(basename $f)
10+
11+
if [[ ! $icon_name == *"charging"* ]]; then
12+
rm $icon_name
13+
ln -s ${icon_name/90/100} $icon_name
14+
fi
15+
done
16+
517
update-mime-database /usr/share/mime
618
gdk-pixbuf-query-loaders-64 --update-cache

0 commit comments

Comments
 (0)