Skip to content

Commit 2ad73bc

Browse files
committed
plymouth: increase spinner size
1 parent d412a9c commit 2ad73bc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

modules/plymouth.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
"$f"
2525
done
2626
27+
# Scale spinner images up by 30%
28+
for f in $out/share/plymouth/themes/${mytheme}/progress-*.png; do
29+
magick "$f" -resize 130% "$f"
30+
done
31+
2732
# Add background wallpaper
2833
cp ${wallpaper} $out/share/plymouth/themes/${mytheme}/background.png
2934
@@ -37,6 +42,10 @@ bg_sprite = Sprite(bg_image);\
3742
bg_sprite.SetPosition(Window.GetX(), Window.GetY(), -100);' \
3843
$out/share/plymouth/themes/${mytheme}/${mytheme}.script
3944
45+
# Hide spinner during password prompt
46+
sed -i 's/flyingman_sprite.SetImage(flyingman_image\[Math.Int(progress \/ 2) % 60\]);/if (state.status == "play") { flyingman_sprite.SetOpacity(1); flyingman_sprite.SetImage(flyingman_image[Math.Int(progress \/ 2) % 60]); } else { flyingman_sprite.SetOpacity(0); }/' \
47+
$out/share/plymouth/themes/${mytheme}/${mytheme}.script
48+
4049
# Update .plymouth to point to the new paths
4150
sed -i "s|ImageDir=.*|ImageDir=$out/share/plymouth/themes/${mytheme}|" \
4251
$out/share/plymouth/themes/${mytheme}/${mytheme}.plymouth

0 commit comments

Comments
 (0)