mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-23 04:55:04 +02:00

Some checks are pending
Check Conventional Commit / check-commit-message (push) Waiting to run
30 lines
591 B
Plaintext
30 lines
591 B
Plaintext
# 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() {
|
|
post_upgrade
|
|
}
|
|
|
|
# Post upgrade
|
|
post_upgrade() {
|
|
update_fonts
|
|
update_gtk
|
|
}
|