1
0
Fork 0
mirror of synced 2024-11-22 10:05:37 -05:00
BluishHumility 2023-11-08 21:35:33 -05:00
parent 2c9248f9d7
commit 65015934d7
2 changed files with 84 additions and 0 deletions

39
PKGBUILD Normal file
View file

@ -0,0 +1,39 @@
# Maintainer: dr460nf1r3 <dr460nf1r3 at garudalinux dot org>
# Contributor: Librewish <librewish@gmail.com>
pkgname=garuda-common-settings
pkgver=git
pkgrel=1
arch=('any')
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"
license=('GPL')
source=("$pkgname::git+$url#branch=bluish-branch")
sha256sums=('SKIP')
pkgdesc='Garuda Linux common settings'
depends=('btrfsmaintenance'
'garuda-bash-config'
'garuda-hooks'
'garuda-icons'
'garuda-migrations'
'garuda-update'
'garuda-wallpapers'
'profile-sync-daemon'
'zram-generator'
'systemd-oomd-defaults'
'noto-color-emoji-fontconfig')
optdepends=('garuda-browser-settings: Garuda Linux Browser settings'
'performance-tweaks: Tuning for best performance'
'powersave-tweaks: Tuning for lower power usage'
'pacutils: Required for garuda-inxi funstuff')
makedepends=('polkit')
conflicts=('systemd-swap' 'ipw2100-fw' 'ipw2200-fw')
backup=(etc/sudoers.d/{editor,insults,pwfeedback})
install=$pkgname.install
package() {
install -d "$pkgdir"/etc
cp -rf "$srcdir"/$pkgname-$pkgver/etc "$pkgdir"
install -d "$pkgdir"/usr
cp -rf "$srcdir"/$pkgname-$pkgver/usr "$pkgdir"
}

View file

@ -0,0 +1,45 @@
# Font-icon directories
FONT_DIRS="/usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc"
ICON_DIR="/usr/share/icons/hicolor"
GLIB_SCHEMA_DIR="usr/share/glib-2.0/schemas"
# Font-related commands
update_fonts() {
mkfontscale "$FONT_DIRS" >/dev/null 2>&1
mkfontdir "$FONT_DIRS" >/dev/null 2>&1
fc-cache -s >/dev/null
}
# GTK related commands
update_gtk() {
glib-compile-schemas $GLIB_SCHEMA_DIR
gtk-update-icon-cache -ftq $ICON_DIR
/bin/sh -c 'dconf update'
}
# Post installation
post_install() {
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 --global enable psd
post_upgrade
}
# Post upgrade
post_upgrade() {
echo "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 garuda-pacman-lock
systemctl --global enable psd
echo "Performing misc postinstall operations..."
update_fonts
update_gtk
}