chore(arch): start installing rices
This commit is contained in:
parent
e6c4a36b13
commit
b1495b020b
23
.chezmoiscripts/run_onchange_arch-install-rice.sh.tmpl
Normal file
23
.chezmoiscripts/run_onchange_arch-install-rice.sh.tmpl
Normal file
@ -0,0 +1,23 @@
|
||||
{{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.idLike "arch")) -}}
|
||||
#!/bin/bash
|
||||
|
||||
_apply_grub_theme() {
|
||||
TMPDIR=$(mktemp -d)
|
||||
|
||||
git clone https://github.com/catppuccin/grub.git $TMPDIR
|
||||
cd $TMPDIR/grub
|
||||
|
||||
sudo cp -r src/catppuccin-macchiato-grub-theme /usr/share/grub/themes/
|
||||
|
||||
sudo sed -i \
|
||||
-e 's|^[[:space:]]*#\?[[:space:]]*GRUB_THEME=.*|GRUB_THEME="/usr/share/grub/themes/catppuccin-macchiato-grub-theme/theme.txt"|' \
|
||||
-e '$a GRUB_THEME="/usr/share/grub/themes/catppuccin-macchiato-grub-theme/theme.txt"' \
|
||||
/etc/default/grub
|
||||
|
||||
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||
}
|
||||
|
||||
_apply_grub_theme
|
||||
|
||||
|
||||
{{ end -}}
|
||||
Loading…
Reference in New Issue
Block a user