1
0
Fork 0
mirror of synced 2024-11-05 01:39:00 -05:00
garuda-common-settings/garuda-common-settings.install

59 lines
1.8 KiB
Text

msg() {
ALL_OFF="\e[1;0m"
BOLD="\e[1;1m"
RED="${BOLD}\e[1;31m"
local mesg=$1; shift
printf "${RED}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&2
}
post_install() {
systemctl enable btrfs-balance.timer
systemctl enable btrfs-defrag.timer
systemctl enable btrfs-scrub.timer
systemctl enable btrfs-trim.timer
systemctl enable fstrim.timer
systemctl enable grub-btrfs.path
systemctl enable haveged
systemctl enable memavaild
systemctl enable nohang-desktop
systemctl enable preload
systemctl enable prelockd
}
post_upgrade() {
msg "Disable conflicting services..."
systemctl disable --now ananicy
systemctl disable --now irqbalance
systemctl disable --now systemd-oomd
systemctl disable --now systemd-swap
systemctl disable --now uresourced
msg "Attempting to enable services..."
systemctl enable btrfs-balance.timer
systemctl enable btrfs-defrag.timer
systemctl enable btrfs-scrub.timer
systemctl enable btrfs-trim.timer
systemctl enable fstrim.timer
systemctl enable grub-btrfs.path
systemctl enable haveged
systemctl enable memavaild
systemctl enable nohang-desktop
systemctl enable preload
systemctl enable prelockd
msg "Updating font cache..."
mkfontscale /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1
mkfontdir /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1
fc-cache -s >/dev/null
echo ""
msg "Performing misc postinstall operations..."
glib-compile-schemas usr/share/glib-2.0/schemas
gtk-update-icon-cache -ftq usr/share/icons/hicolor
/bin/sh -c 'dconf update'
echo ""
msg "Done!
This update replaces systemd-swap with zram-generator & makes irqbalance, uresourced and ananicy optdepends. Please remove the resulting orphans after this update by using the Garuda Assistant option!"
echo ""
}