From 06696ca201682f63ea50da3ab41d992ed6b61816 Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 25 Feb 2023 07:54:37 +0100 Subject: Feat(packages): Add my scripts --- .../scripts/small_functions/deprecated/ply-pre | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 home-manager/packages/scripts/small_functions/deprecated/ply-pre (limited to 'home-manager/packages/scripts/small_functions/deprecated/ply-pre') diff --git a/home-manager/packages/scripts/small_functions/deprecated/ply-pre b/home-manager/packages/scripts/small_functions/deprecated/ply-pre new file mode 100755 index 00000000..8e40486c --- /dev/null +++ b/home-manager/packages/scripts/small_functions/deprecated/ply-pre @@ -0,0 +1,33 @@ +#!/bin/sh + +# shellcheck source=/dev/null +. ~/.local/lib/shell/lib + + +## Preview Plymouth Splash ## +## by _khAttAm_ ## +## www.khattam.info ## +## License: GPL v3 ## + +chk_root () { + + if [ ! "$( id -u )" -eq 0 ]; then + echo Must be run as root + exit 1 + fi + +} + +chk_root + +DURATION=$1 + +if [ $# -ne 1 ]; then + DURATION=5 +fi + +plymouthd; plymouth --show-splash ; +for i in $(seq 1 $DURATION); do + plymouth --update=test"$i" ; sleep 1; +done; +plymouth quit -- cgit 1.4.1