1
0
Fork 0
mirror of synced 2024-11-21 17:45:36 -05:00
garuda-common-settings/garuda-common-settings.install
2022-04-15 13:11:07 +05:30

26 lines
872 B
Text

post_install() {
systemctl --global enable psd
systemctl enable systemd-oomd
systemctl enable btrfs-balance.timer
systemctl enable btrfs-defrag.timer
systemctl enable btrfs-scrub.timer
systemctl enable btrfs-trim.timer
systemctl enable garuda-pacman-lock
systemctl enable garuda-pacman-snapshot-reject
}
post_upgrade() {
echo "Performing misc postinstall operations..."
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
glib-compile-schemas usr/share/glib-2.0/schemas
gtk-update-icon-cache -ftq usr/share/icons/hicolor
/bin/sh -c 'dconf update'
if [[ $(vercmp 2.6.0 $2) -gt 0 ]]; then
systemctl enable garuda-pacman-snapshot-reject
fi
}