install.fairie/home/.chezmoiscripts/universal/run_onchange_after_21-set-wallpaper.sh.tmpl
Brian Zalewski a5b4203496 Update 19 files
- /home/.chezmoiscripts/darwin/run_onchange_after_10-configure-macos.sh.tmpl
- /home/.chezmoiscripts/darwin/run_onchange_after_20-ensure-zsh-macos.sh.tmpl
- /home/.chezmoiscripts/darwin/run_onchange_after_21-set-wallpaper.sh.tmpl
- /home/.chezmoiscripts/darwin/run_onchange_before_10-install-darwin-dependencies.sh.tmpl
- /home/.chezmoiscripts/darwin/run_onchange_before_20-ensure-user-group.sh.tmpl
- /home/.chezmoiscripts/universal/run_onchange_after_10-configure-macos.sh.tmpl
- /home/.chezmoiscripts/universal/run_onchange_after_20-ensure-zsh-macos.sh.tmpl
- /home/.chezmoiscripts/universal/run_onchange_after_21-set-wallpaper.sh.tmpl
- /home/.chezmoiscripts/universal/run_onchange_before_10-install-darwin-dependencies.sh.tmpl
- /home/.chezmoiscripts/universal/run_onchange_before_20-ensure-user-group.sh.tmpl
- /home/.chezmoiscripts/qubes/run_onchange_after_11-set-wallpaper.sh.tmpl
- /home/.chezmoiscripts/qubes/run_onchange_before_19-setup-sys-gui.sh.tmpl
- /home/.chezmoiscripts/qubes/run_onchange_before_18-configure-sys-usb.sh.tmpl
- /home/.chezmoiscripts/qubes/run_onchange_before_17-install-mirage-firewall.sh.tmpl
- /home/.chezmoiscripts/qubes/run_onchange_before_16-update-template-vms.sh.tmpl
- /home/.chezmoiscripts/qubes/run_onchange_before_15-install-unofficial-templates.sh.tmpl
- /home/.chezmoiscripts/qubes/run_onchange_before_14-ensure-minimal-vms-passwordless.sh.tmpl
- /home/.chezmoiscripts/qubes/run_onchange_before_13-install-official-templates.sh.tmpl
- /home/.chezmoiscripts/qubes/run_onchange_before_12-update-dom0.sh.tmpl
2023-04-15 23:18:34 +00:00

17 lines
854 B
Cheetah

{{- if (ne .host.distro.family "darwin") -}}
#!/usr/bin/env bash
# @file macOS Set Wallpaper
# @brief Ensures the macOS wallpaper is set to the Betelgeuse wallpaper for macOS.
# @description
# This script ensures the macOS desktop wallpaper is set to the macOS Betelgeuse wallpaper. It uses the
# `m` CLI to apply the change.
# Betelgeuse-macOS wallpaper hash: {{ include (joinPath .chezmoi.homeDir ".local" "src" "betelgeuse" "share" "wallpapers" "Betelgeuse-macOS" "contents" "source.png") | sha256sum }}
### Set macOS wallpaper
if command -v m > /dev/null && [ -f "$HOME/.local/src/betelgeuse/share/wallpapers/Betelgeuse-macOS/contents/source.png" ]; then
m wallpaper "$HOME/.local/src/betelgeuse/share/wallpapers/Betelgeuse-macOS/contents/source.png"
else
logg warn 'Either `m` or the macOS default wallpaper is missing.'
fi
{{ end -}}