Init
BIN
nixos/plymouth/miku/images/frames/frame_0000.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0001.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0002.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0003.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0004.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0005.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0006.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0007.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0008.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0009.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0010.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0011.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0012.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0013.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0014.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0015.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0016.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0017.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0018.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0019.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0020.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0021.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0022.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0023.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0024.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0025.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0026.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0027.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0028.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0029.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0030.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0031.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0032.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0033.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0034.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0035.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0036.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0037.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0038.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0039.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0040.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0041.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0042.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0043.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0044.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0045.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0046.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0047.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0048.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0049.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0050.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0051.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
nixos/plymouth/miku/images/frames/frame_0052.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
8
nixos/plymouth/miku/miku.plymouth
Normal file
@@ -0,0 +1,8 @@
|
||||
[Plymouth Theme]
|
||||
Name=Miku
|
||||
Description=Hatsune Miku Dancing
|
||||
ModuleName=Script
|
||||
|
||||
[script]
|
||||
ImageDir=/usr/share/plymouth/themes/miku
|
||||
ScriptFile=/usr/share/plymouth/themes/miku/miku.script
|
||||
30
nixos/plymouth/miku/miku.script
Normal file
@@ -0,0 +1,30 @@
|
||||
# Screen dimensions
|
||||
screen_width = Window.GetWidth();
|
||||
screen_height = Window.GetHeight();
|
||||
|
||||
# Load frames
|
||||
frame_count = 53;
|
||||
frames = [];
|
||||
for (i = 0; i < frame_count; i++) {
|
||||
num = String(i);
|
||||
if (i < 10) num = "000" + num;
|
||||
else if (i < 100) num = "00" + num;
|
||||
else num = "0" + num;
|
||||
frames[i] = Image("frames/frame_" + num + ".png");
|
||||
}
|
||||
|
||||
# Position centered
|
||||
x = (screen_width - 498) / 2;
|
||||
y = (screen_height - 498) / 2;
|
||||
|
||||
# Animation state
|
||||
current_frame = 0;
|
||||
|
||||
fun refresh_callback() {
|
||||
sprite = Sprite(frames[current_frame]);
|
||||
sprite.SetX(x);
|
||||
sprite.SetY(y);
|
||||
current_frame = (current_frame + 1) % frame_count;
|
||||
}
|
||||
|
||||
Plymouth.SetRefreshFunction(refresh_callback);
|
||||