From e11d084be8f8c617506868d3824e3cf8557de4bf Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 11 May 2026 23:46:23 +0200 Subject: [PATCH] remove redundant wallpaper switching stuff --- .../quickshell/ii/scripts/colors/applycolor.sh | 12 +++++------- .../scripts/colors/code/material-code-set-color.sh | 1 + .../quickshell/ii/scripts/colors/switchwall.sh | 2 +- dots/.config/quickshell/ii/services/Wallpapers.qml | 5 ----- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/dots/.config/quickshell/ii/scripts/colors/applycolor.sh b/dots/.config/quickshell/ii/scripts/colors/applycolor.sh index 2aab8dfce..a215c5abd 100755 --- a/dots/.config/quickshell/ii/scripts/colors/applycolor.sh +++ b/dots/.config/quickshell/ii/scripts/colors/applycolor.sh @@ -42,6 +42,9 @@ apply_kitty() { done # Reload + if ! pgrep -f kitty >/dev/null; then + return + fi kill -SIGUSR1 $(pidof kitty) } @@ -71,13 +74,8 @@ apply_anyterm() { } apply_term() { - apply_kitty - apply_anyterm -} - -apply_qt() { - sh "$CONFIG_DIR/scripts/kvantum/materialQT.sh" # generate kvantum theme - python "$CONFIG_DIR/scripts/kvantum/changeAdwColors.py" # apply config colors + apply_anyterm & + apply_kitty & } # Check if terminal theming is enabled in config diff --git a/dots/.config/quickshell/ii/scripts/colors/code/material-code-set-color.sh b/dots/.config/quickshell/ii/scripts/colors/code/material-code-set-color.sh index 2f68d2658..613e41eda 100755 --- a/dots/.config/quickshell/ii/scripts/colors/code/material-code-set-color.sh +++ b/dots/.config/quickshell/ii/scripts/colors/code/material-code-set-color.sh @@ -9,6 +9,7 @@ settings_paths=( "${XDG_CONFIG_HOME:-$HOME/.config}/Code - Insiders/User/settings.json" "${XDG_CONFIG_HOME:-$HOME/.config}/Cursor/User/settings.json" "${XDG_CONFIG_HOME:-$HOME/.config}/Antigravity/User/settings.json" + "${XDG_CONFIG_HOME:-$HOME/.config}/Windsurf/User/settings.json" # Add more paths as needed for other forks ) diff --git a/dots/.config/quickshell/ii/scripts/colors/switchwall.sh b/dots/.config/quickshell/ii/scripts/colors/switchwall.sh index 318e3411e..381d879df 100755 --- a/dots/.config/quickshell/ii/scripts/colors/switchwall.sh +++ b/dots/.config/quickshell/ii/scripts/colors/switchwall.sh @@ -307,8 +307,8 @@ switch() { source "$(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate" python3 "$SCRIPT_DIR/generate_colors_material.py" "${generate_colors_material_args[@]}" \ > "$STATE_DIR"/user/generated/material_colors.scss - "$SCRIPT_DIR"/applycolor.sh deactivate + "$SCRIPT_DIR"/applycolor.sh # Pass screen width, height, and wallpaper path to post_process max_width_desired="$(hyprctl monitors -j | jq '([.[].width] | min)' | xargs)" diff --git a/dots/.config/quickshell/ii/services/Wallpapers.qml b/dots/.config/quickshell/ii/services/Wallpapers.qml index 560b5fb39..a871187bf 100644 --- a/dots/.config/quickshell/ii/services/Wallpapers.qml +++ b/dots/.config/quickshell/ii/services/Wallpapers.qml @@ -34,11 +34,6 @@ Singleton { signal thumbnailGeneratedFile(filePath: string) function load () {} // For forcing initialization - - // Executions - Process { - id: applyProc - } function openFallbackPicker(darkMode = Appearance.m3colors.darkmode) { Quickshell.execDetached([Directories.wallpaperSwitchScriptPath, "--mode", darkMode ? "dark" : "light"]);