From 4b309f0a5555b5fed5a65ee425dcb6da15421f5b Mon Sep 17 00:00:00 2001 From: steven-na Date: Sun, 26 Apr 2026 11:58:32 -0700 Subject: Initial commit. --- arch/scripts/.local/bin/set-wallpaper | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 arch/scripts/.local/bin/set-wallpaper (limited to 'arch/scripts/.local/bin/set-wallpaper') diff --git a/arch/scripts/.local/bin/set-wallpaper b/arch/scripts/.local/bin/set-wallpaper new file mode 100755 index 0000000..30b15d8 --- /dev/null +++ b/arch/scripts/.local/bin/set-wallpaper @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +set -euo pipefail +WALLPAPER="${1:?usage: set-wallpaper }" + +awww img "$WALLPAPER" \ + --transition-type wipe \ + --transition-angle 30 \ + --transition-duration 1 + +wallust run "$WALLPAPER" --ignore-sequence background --ignore-sequence foreground + +gdbus call --session \ + --dest com.mitchellh.ghostty \ + --object-path /com/mitchellh/ghostty \ + --method org.gtk.Actions.Activate \ + "reload-config" "[]" "{}" > /dev/null 2>&1 || true + +hyprctl reload +pkill -x mako || true +mako & +eww reload || true + +# spicetify watch -s picks up color.ini changes automatically. +# Fallback: refresh manually if watch isn't running. +pgrep -f "spicetify watch" > /dev/null || spicetify refresh > /dev/null 2>&1 || true + +# nvim picks up the new palette automatically via a libuv file watcher in colorscheme.lua -- cgit v1.2.3