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=,
|
VariantList=,
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# SWITCH KDE TO DARK MODE
|
||||||
|
sudo -u "$USERNAME" kwriteconfig6 --file kdeglobals --group General --key ColorScheme BreezeDark
|
||||||
|
|
||||||
# ─────────────────────────────────────
|
# ─────────────────────────────────────
|
||||||
# Install yay
|
# Install yay
|
||||||
# ─────────────────────────────────────
|
# ─────────────────────────────────────
|
||||||
|
|
@ -172,12 +175,7 @@ chown -R "$USERNAME:$USERNAME" "$USER_HOME"
|
||||||
# Enable windblows / other OS detection
|
# Enable windblows / other OS detection
|
||||||
sed -i 's/^#\?GRUB_DISABLE_OS_PROBER=.*/GRUB_DISABLE_OS_PROBER=false/' /etc/default/grub
|
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
|
# Install grub theme
|
||||||
# ─────────────────────────────────────
|
|
||||||
|
|
||||||
su - "$USERNAME" <<'EOF'
|
su - "$USERNAME" <<'EOF'
|
||||||
curl -O https://git.baltrust.eu.org/Baltrust/fixes/raw/branch/main/Graphite-grub2-theme.tar.xz
|
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
|
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
|
cd "$OLDPWD" && rm -rf grub2
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# ─────────────────────────────────────
|
||||||
# Restore password requirement after successful installation
|
# Restore password requirement after successful installation
|
||||||
|
# ─────────────────────────────────────
|
||||||
install -m 440 /dev/stdin "/etc/sudoers.d/00_$USERNAME" <<< "$USERNAME ALL=(ALL) ALL"
|
install -m 440 /dev/stdin "/etc/sudoers.d/00_$USERNAME" <<< "$USERNAME ALL=(ALL) ALL"
|
||||||
visudo -c
|
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
|
rm -f after.sh
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
Loading…
Reference in a new issue