Update after.sh
This commit is contained in:
parent
0b15b9df53
commit
eab52acee7
1 changed files with 8 additions and 6 deletions
14
after.sh
14
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
|
||||
Loading…
Reference in a new issue