remove redundant wallpaper switching stuff

This commit is contained in:
end-4
2026-05-11 23:46:23 +02:00
parent 760c7034aa
commit e11d084be8
4 changed files with 7 additions and 13 deletions
@@ -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
@@ -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
)
@@ -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)"
@@ -35,11 +35,6 @@ Singleton {
function load () {} // For forcing initialization
// Executions
Process {
id: applyProc
}
function openFallbackPicker(darkMode = Appearance.m3colors.darkmode) {
Quickshell.execDetached([Directories.wallpaperSwitchScriptPath, "--mode", darkMode ? "dark" : "light"]);
}