grub-theme-package/manjaro-theme.install

31 lines
925 B
Plaintext
Raw Permalink Normal View History

2019-10-28 20:31:15 +00:00
post_install() {
2019-11-05 20:39:52 +00:00
sed -i -e 's,.*GRUB_THEME=.*,GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt",' /etc/default/grub
2019-10-28 20:31:15 +00:00
sed -i -e 's,.*GRUB_GFXMODE=.*,GRUB_GFXMODE=auto,' /etc/default/grub
2019-10-30 15:32:45 +00:00
sed -i -e 's,.*GRUB_DISTRIBUTOR=.*,GRUB_DISTRIBUTOR="TROMjaro",' /etc/default/grub
2019-10-28 20:31:15 +00:00
grub-mkconfig -o /boot/grub/grub.cfg
cat << _EOF
2019-11-05 20:39:52 +00:00
==> Installation: Theme is added to your /etc/default/grub: GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"
2019-10-28 20:31:15 +00:00
==> Default resolution "auto"
2019-11-05 20:39:52 +00:00
==> If an OS icon doesn't appear probably not present in /usr/share/grub/themes/manjaro/icons simply add it or merge in
2019-10-28 20:31:15 +00:00
==> https://github.com/Ste74/grub-theme-dev
_EOF
}
post_upgrade() {
post_install
}
post_remove() {
cat << _EOF
==> IMPORTANT: Edit /boot/grub/grub.cfg , remove
2019-11-05 20:39:52 +00:00
==> set theme="/boot/grub/themes/manjaro/theme.txt"
2019-10-28 20:31:15 +00:00
==> and uncomment an existing one / default!
==> (Maybe without "/boot", depending on PC setup)
_EOF
}