From eab52acee7ec12909d3db9f7232925c9fe692bfc Mon Sep 17 00:00:00 2001 From: Baltrust Date: Sat, 17 Oct 2026 01:59:30 +0300 Subject: [PATCH] Update after.sh --- after.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/after.sh b/after.sh index 34c751b..e9be6c0 100644 --- a/after.sh +++ b/after.sh @@ -44,6 +44,9 @@ Use=true VariantList=, EOF +# SWITCH KDE TO DARK MODE +sudo -u "$USERNAME" kwriteconfig6 --file kdeglobals --group General --key ColorScheme BreezeDark + # ───────────────────────────────────── # Install yay # ───────────────────────────────────── @@ -172,12 +175,7 @@ chown -R "$USERNAME:$USERNAME" "$USER_HOME" # Enable windblows / other OS detection sed -i 's/^#\?GRUB_DISABLE_OS_PROBER=.*/GRUB_DISABLE_OS_PROBER=false/' /etc/default/grub -#grub-mkconfig -o /boot/grub/grub.cfg - -# ───────────────────────────────────── # Install grub theme -# ───────────────────────────────────── - su - "$USERNAME" <<'EOF' curl -O https://git.baltrust.eu.org/Baltrust/fixes/raw/branch/main/Graphite-grub2-theme.tar.xz tar -xf Graphite-grub2-theme.tar.xz && rm Graphite-grub2-theme.tar.xz @@ -185,11 +183,15 @@ cd grub2 && ./install.sh cd "$OLDPWD" && rm -rf grub2 EOF +# ───────────────────────────────────── # Restore password requirement after successful installation +# ───────────────────────────────────── install -m 440 /dev/stdin "/etc/sudoers.d/00_$USERNAME" <<< "$USERNAME ALL=(ALL) ALL" visudo -c -# Remove the script from root folder after successfull installation +# ───────────────────────────────────── +# Remove the script from root folder after successfull installation and exit +# ───────────────────────────────────── rm -f after.sh exit 0 \ No newline at end of file