diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-07-22 02:56:37 -0400 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-08-29 21:40:35 -0700 |
| commit | 23e3dd59fb2b7f384c7e29619391268e0b0b6122 (patch) | |
| tree | 7647330e8d8d336a99118378ffb6866dfccc69cf /config/hypr/scripts/Ghostty_themes.sh | |
| parent | ea5df3d629dbeb5bb6da964e1eb8ed4981db7a12 (diff) | |
Fixed theme selector for kitty and ghostty
Signed-off-by: Don Williams <don.e.williams@gmail.com>
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/UserConfigs/kitty.conf
modified: config/hypr/scripts/Ghostty_themes.sh
modified: config/hypr/scripts/Kitty_themes.sh
Diffstat (limited to 'config/hypr/scripts/Ghostty_themes.sh')
| -rwxr-xr-x | config/hypr/scripts/Ghostty_themes.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/hypr/scripts/Ghostty_themes.sh b/config/hypr/scripts/Ghostty_themes.sh index cc9158a6..f39be65a 100755 --- a/config/hypr/scripts/Ghostty_themes.sh +++ b/config/hypr/scripts/Ghostty_themes.sh @@ -52,12 +52,19 @@ ensure_managed_ghostty_config() { config_file="$fallback_ghostty_config" } +sync_runtime_ghostty_config() { + if [[ "$config_file" != "$fallback_ghostty_config" && -r "$config_file" ]]; then + mkdir -p "$(dirname "$fallback_ghostty_config")" 2>/dev/null || true + cp -f "$config_file" "$fallback_ghostty_config" 2>/dev/null || true + fi +} ensure_managed_ghostty_config if [[ ! -f "$config_file" || ! -r "$config_file" ]]; then notify_user "$iDIR/error.png" "Ghostty Theme" "Config not found: $config_file" exit 1 fi +sync_runtime_ghostty_config rofi_config_args=() if [[ -f "$rofi_theme_primary" ]]; then @@ -155,6 +162,7 @@ END { } ' "$config_file" > "$tmp_file" mv "$tmp_file" "$config_file" + sync_runtime_ghostty_config refresh_wallpaper_theme notify_user "$iDIR/ja.png" "Ghostty Theme Applied" "$wallust_option_label" exit 0 @@ -187,6 +195,7 @@ END { } ' "$config_file" > "$tmp_file" mv "$tmp_file" "$config_file" + sync_runtime_ghostty_config pkill -SIGUSR2 ghostty >/dev/null 2>&1 || true notify_user "$iDIR/ja.png" "Ghostty Theme Applied" "$default_option_label" @@ -242,6 +251,7 @@ END { }' "$config_file" > "$tmp_file" mv "$tmp_file" "$config_file" +sync_runtime_ghostty_config pkill -SIGUSR2 ghostty >/dev/null 2>&1 || true |
