Added custom plymouth theme and added utilities for getting system info

This commit is contained in:
Bram Prieshof
2022-09-22 16:05:43 +02:00
parent bd1b77c19e
commit 9558763a42
11 changed files with 66 additions and 5 deletions

View File

@@ -0,0 +1 @@
Assessment-Kiosk

2
config/includes.chroot/etc/plymouth/plymouthd.conf Normal file → Executable file
View File

@@ -1,2 +1,2 @@
[Daemon] [Daemon]
Theme=tribar Theme=simple-image

4
config/includes.chroot/etc/skel/.bashrc Normal file → Executable file
View File

@@ -21,9 +21,7 @@ NetCheck
while [[ "$Net" = "false" ]]; do while [[ "$Net" = "false" ]]; do
read -p "Network could not be initialized, Try again (y/n) " yn read -p "Network could not be initialized, Try again (y/n) " yn
case $yn in case $yn in
[yY]* ) [yY]* ) NetCheck;;
NetCheck
break;;
[Nn]* ) break;; [Nn]* ) break;;
* ) echo invalid response;; * ) echo invalid response;;
esac esac

Binary file not shown.

View File

@@ -0,0 +1,24 @@
Copyright (c) 2017, litarvan.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the <organization> nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,9 @@
# Plymouth theme - Simple Image
This is a theme for plymouth which only displays a simple image. The current image is a simple logo for ArchLinux.
To change the image, you can simple change the `img.png` to whatever you want to show.
This package is avaliable on the [AUR](https://aur.archlinux.org/packages/plymouth-theme-simple-image-git).
_The current background is borrowed from [Litarvan's](https://github.com/Litarvan) excellent [lightdm theme](https://github.com/Litarvan/lightdm-webkit-theme-litarvan)._

View File

@@ -0,0 +1,8 @@
[Plymouth Theme]
Name=Arch Linux Simple Image
Description=This is a plymouth theme which simply displays an image
ModuleName=script
[script]
ImageDir=/usr/share/plymouth/themes/simple-image
ScriptFile=/usr/share/plymouth/themes/simple-image/simple-image.script

View File

@@ -0,0 +1,15 @@
image = Image("img.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);
fun refresh_callback () {
sprite.SetOpacity(1);
spr.SetZ(15);
}
Plymouth.SetRefreshFunction (refresh_callback);

8
config/package-lists/kiosk.list.chroot Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#BaseKiosk
matchbox-window-manager matchbox-window-manager
x11-xserver-utils x11-xserver-utils
xinit xinit
@@ -7,4 +8,9 @@ chromium
discover discover
discover-data discover-data
alsa-utils alsa-utils
plymouth plymouth
plymouth-label
plymouth-themes
#AssementTools
#Broken#lsh
jq

Binary file not shown.

Before

Width:  |  Height:  |  Size: 821 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 KiB