wallpaper theme

This commit is contained in:
Harivansh Rathi 2026-04-05 15:04:57 -04:00
parent ed449d7fef
commit 25b422d373
5 changed files with 11 additions and 0 deletions

View file

@ -26,12 +26,14 @@ link_mode_assets() {
fzf_target="@FZF_DARK_FILE@"
ghostty_target="@GHOSTTY_DARK_FILE@"
tmux_target="@TMUX_DARK_FILE@"
wallpaper="@WALLPAPER_DARK_FILE@"
apple_dark_mode=true
;;
light)
fzf_target="@FZF_LIGHT_FILE@"
ghostty_target="@GHOSTTY_LIGHT_FILE@"
tmux_target="@TMUX_LIGHT_FILE@"
wallpaper="@WALLPAPER_LIGHT_FILE@"
apple_dark_mode=false
;;
*)
@ -53,6 +55,8 @@ link_mode_assets() {
if [[ "$(uname -s)" == "Darwin" ]] && command -v osascript >/dev/null 2>&1; then
osascript -e "tell application \"System Events\" to tell appearance preferences to set dark mode to ${apple_dark_mode}" >/dev/null 2>&1 || true
osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"${wallpaper}\"" >/dev/null 2>&1 || true
osascript <<'EOF' >/dev/null 2>&1 || true
tell application "System Events"
if not (exists process "Ghostty") then