From 7f196949a62a9806aeeea1af196872d79603a910 Mon Sep 17 00:00:00 2001 From: Joe Ipson Date: Mon, 22 Jan 2024 23:07:09 -0700 Subject: [PATCH] Just files --- config/files/usr/bin/dx-user-gsettings | 2 + .../usr/share/ublue-os/just/60-custom.just | 95 +++++++++++++++++++ 2 files changed, 97 insertions(+) diff --git a/config/files/usr/bin/dx-user-gsettings b/config/files/usr/bin/dx-user-gsettings index a89b65e..e8c1e28 100755 --- a/config/files/usr/bin/dx-user-gsettings +++ b/config/files/usr/bin/dx-user-gsettings @@ -5,6 +5,8 @@ USER_SETUP_VER=1 USER_SETUP_VER_FILE="${XDG_DATA_HOME:-$HOME/.local/share}/cabos/gsettings-configured" USER_SETUP_VER_RAN=$(cat "$USER_SETUP_VER_FILE") +mkdir -p "$(dirname "$USER_SETUP_VER_FILE")" || exit 1 + ## Backup incase local.d config doesn't take for whatever reason # Run script if updated diff --git a/config/files/usr/share/ublue-os/just/60-custom.just b/config/files/usr/share/ublue-os/just/60-custom.just index 9fbf492..1756614 100644 --- a/config/files/usr/share/ublue-os/just/60-custom.just +++ b/config/files/usr/share/ublue-os/just/60-custom.just @@ -1,2 +1,97 @@ import '100-bling.just' # Include some of your custom scripts here! + +# Configure GRUB screen with various options +configure-grub ACTION="prompt": + #!/usr/bin/env bash + bold=$(tput bold) + normal=$(tput sgr0) + OPTION={{ ACTION }} + if [ "$OPTION" == "prompt" ]; then + echo "${bold}Configuring GRUB${normal}" + echo 'GRUB hiding option can be useful for making boot-times faster.' + echo 'Hide or Unhide GRUB? Press ESC to exit.' + OPTION=$(ugum choose "Unhide (Default)" Hide) + elif [ "$OPTION" == "help" ]; then + echo "Usage: ujust configure-grub