diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-23 12:46:07 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-23 12:46:07 +0200 |
| commit | 041edc485cd81b2c564cbcaa3eb425c9ed5520e4 (patch) | |
| tree | a0b8b8c2cb52db5b1862151577a3640c75cd40e8 /bin/udt-accent | |
| parent | 47dcb72c48e165154ef344588eed178c481a535c (diff) | |
| download | unified-desktop-theme-041edc485cd81b2c564cbcaa3eb425c9ed5520e4.tar.gz unified-desktop-theme-041edc485cd81b2c564cbcaa3eb425c9ed5520e4.zip | |
feat: stage the wallpaper on homepage and notify on completion
bin/udt-homepage replaces install.sh's inline scp. It stages custom.css
and the current wallpaper, keeping the wallpaper's own extension, then
raises a desktop notification with the root commands that install both
and point settings.yaml at the new background. Plain root commands, not
sudo: the login user on that host has no sudo rights.
udt-accent starts it detached on every run, so it follows a wallpaper
change (wallp) as well as a scheme switch (install.sh) without holding
either up when the host is unreachable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'bin/udt-accent')
| -rwxr-xr-x | bin/udt-accent | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/udt-accent b/bin/udt-accent index 6462aae..c0b6529 100755 --- a/bin/udt-accent +++ b/bin/udt-accent @@ -463,6 +463,12 @@ def main(image): # Hyprland only rereads its config on request, and may not be running. subprocess.run(["hyprctl", "reload"], capture_output=True, check=False) + # The dashboard host. Detached, because wallp runs this synchronously and + # an unreachable host would hold the wallpaper change for the scp timeout. + subprocess.Popen([Path(__file__).resolve().parent / "udt-homepage"], + stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, start_new_session=True) + before, after = hue_neighbours(name) print(f"{name} {ACCENTS[name]} (border: {before} .. {name} .. {after})") |
