From 9dd843a188800cbca771ef456e8b90b12a7647d7 Mon Sep 17 00:00:00 2001 From: pascalyazid Date: Thu, 9 Apr 2026 10:21:50 +0200 Subject: [PATCH] Added script for manual updates of applications and their theme. --- README.md | 4 ++++ theme.ts | 9 +++++++++ update_script.sh | 5 +++++ 3 files changed, 18 insertions(+) create mode 100755 update_script.sh diff --git a/README.md b/README.md index cf4722e..5984007 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,10 @@ Because this shell uses **Pywal**, you can easily inject the dynamically generat Whenever you change the wallpaper via the AGS bar, Pywal updates the color templates inside `~/.cache/wal/`. Here is how to apply them to other apps: +### Manual Updates: + +If your application needs to be restartet to update its themes, place the needed commands in the update_script.sh. An example for the dunst notification daemon is already in there. + ### Example 1: Kitty Terminal Kitty has built-in Pywal support. Pywal automatically generates a `.conf` file for it. Just add this single line anywhere in your `~/.config/kitty/kitty.conf`: diff --git a/theme.ts b/theme.ts index 41db401..81aaf6a 100644 --- a/theme.ts +++ b/theme.ts @@ -164,4 +164,13 @@ export async function setTheme(wallpaperPath: string) { } catch (error) { console.error("Failed to recompile and apply AGS styles:", error) } + + // 4. Run update script + try { + const agsDir = `${HOME}/.config/ags` + await execAsync(`${agsDir}/update_script.sh`) + console.log("Ran update script") + } catch (error) { + console.error("Failed to run update script:", error) + } } diff --git a/update_script.sh b/update_script.sh new file mode 100755 index 0000000..9aeeef8 --- /dev/null +++ b/update_script.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +#Dunst notification daemon +killall dunst +dunst &