Apply customization for School Edition

This commit is contained in:
Michael Smith
2024-09-11 10:39:48 +02:00
parent c08e57de0d
commit 8e3c2c64ee
17 changed files with 95 additions and 47 deletions

View File

@@ -0,0 +1,16 @@
{stdenv}:
stdenv.mkDerivation {
pname = "lightbulb-installer-plymouth";
version = "0.0.1";
src = ./src;
installPhase = ''
runHook preInstall
sed -i 's:\(^ImageDir=\)/usr:\1'"$out"':' lightbulb-installer.plymouth
sed -i 's:\(^ScriptFile=\)/usr:\1'"$out"':' lightbulb-installer.plymouth
mkdir -p $out/share/plymouth/themes/lightbulb-installer
cp * $out/share/plymouth/themes/lightbulb-installer
runHook postInstall
'';
}

View File

@@ -0,0 +1,8 @@
[Plymouth Theme]
Name=Lightbulb Installer
Description=A theme that displays the Lightbulb Installer logo
ModuleName=script
[script]
ImageDir=/usr/share/plymouth/themes/lightbulb-installer
ScriptFile=/usr/share/plymouth/themes/lightbulb-installer/lightbulb-installer.script

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,8 @@
image = Image("lightbulb-installer.png");
pos_x = Window.GetWidth()/2 - image.GetWidth()/2;
pos_y = Window.GetHeight()/2 - image.GetHeight()/2;
sprite = Sprite(image);
sprite.SetX(pos_x);
sprite.SetY(pos_y);