diff --git a/config-stow b/config-stow index 62807c9..44fe345 100755 --- a/config-stow +++ b/config-stow @@ -30,7 +30,7 @@ GUI_BASE_PKGS = [ # "mpv", # media player "wallpaper", # wallpapers & manager "kvantum", # qt theming - "nwg-look", # gtk theming + "nwg-look" # gtk theming ] # for Hyprland setup @@ -38,6 +38,7 @@ HYPRLAND_PKGS = [ *GUI_BASE_PKGS, "eww", # widgets "hypr", # hypr family + "hyprland", # wm config "mako", # notifications "rofi", # application launcher "waybar", # status bar diff --git a/config/hypr/.config/hypr/.gitignore b/config/hypr/.config/hypr/.gitignore deleted file mode 100644 index 2def4fe..0000000 --- a/config/hypr/.config/hypr/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -shaders -wallpaper* \ No newline at end of file diff --git a/config/hypr/.config/hypr/apply-color b/config/hyprland/.config/hypr/apply-color old mode 100755 new mode 100644 similarity index 100% rename from config/hypr/.config/hypr/apply-color rename to config/hyprland/.config/hypr/apply-color diff --git a/config/hypr/.config/hypr/hyprland.conf b/config/hyprland/.config/hypr/hyprland.conf similarity index 100% rename from config/hypr/.config/hypr/hyprland.conf rename to config/hyprland/.config/hypr/hyprland.conf diff --git a/config/hypr/.config/hypr/hyprland/colors.conf b/config/hyprland/.config/hypr/hyprland/colors.conf similarity index 100% rename from config/hypr/.config/hypr/hyprland/colors.conf rename to config/hyprland/.config/hypr/hyprland/colors.conf diff --git a/config/hypr/.config/hypr/hyprland/env.conf b/config/hyprland/.config/hypr/hyprland/env.conf similarity index 100% rename from config/hypr/.config/hypr/hyprland/env.conf rename to config/hyprland/.config/hypr/hyprland/env.conf diff --git a/config/hypr/.config/hypr/hyprland/execs.conf b/config/hyprland/.config/hypr/hyprland/execs.conf similarity index 100% rename from config/hypr/.config/hypr/hyprland/execs.conf rename to config/hyprland/.config/hypr/hyprland/execs.conf diff --git a/config/hypr/.config/hypr/hyprland/general.conf b/config/hyprland/.config/hypr/hyprland/general.conf similarity index 100% rename from config/hypr/.config/hypr/hyprland/general.conf rename to config/hyprland/.config/hypr/hyprland/general.conf diff --git a/config/hypr/.config/hypr/hyprland/keybinds.conf b/config/hyprland/.config/hypr/hyprland/keybinds.conf similarity index 100% rename from config/hypr/.config/hypr/hyprland/keybinds.conf rename to config/hyprland/.config/hypr/hyprland/keybinds.conf diff --git a/config/hypr/.config/hypr/hyprland/monitors.conf b/config/hyprland/.config/hypr/hyprland/monitors.conf similarity index 100% rename from config/hypr/.config/hypr/hyprland/monitors.conf rename to config/hyprland/.config/hypr/hyprland/monitors.conf diff --git a/config/hypr/.config/hypr/hyprland/rules.conf b/config/hyprland/.config/hypr/hyprland/rules.conf similarity index 100% rename from config/hypr/.config/hypr/hyprland/rules.conf rename to config/hyprland/.config/hypr/hyprland/rules.conf diff --git a/config/hypr/.config/hypr/hyprlandd.conf b/config/hyprland/.config/hypr/hyprlandd.conf similarity index 100% rename from config/hypr/.config/hypr/hyprlandd.conf rename to config/hyprland/.config/hypr/hyprlandd.conf diff --git a/config/scripts/.local/scripts/change-colortheme b/config/scripts/.local/scripts/change-colortheme index a64d358..f0a09f8 100755 --- a/config/scripts/.local/scripts/change-colortheme +++ b/config/scripts/.local/scripts/change-colortheme @@ -13,6 +13,7 @@ import argparse import subprocess from pathlib import Path from concurrent.futures import ThreadPoolExecutor +from threading import Lock MAX_WORKERS = 8 @@ -60,6 +61,10 @@ SCRIPTS = { # or simply `find [-L] -type f -name 'apply-color*'` to get all available scripts, # but I need the exact application names anyway, so hardcoding does make some sense +# A thread-safe counter +success_count = 0 +success_count_lock = Lock() + def hex2rgb(hex_color: str) -> tuple[int, int, int]: """#rrggbb to (r, g, b)""" @@ -231,6 +236,9 @@ def run_script(script_path: Path, args: list[str]): print(f"Error running {script_path}:\n{result.stderr.strip()}") else: print(f"✓ {script_path}") + with success_count_lock: + global success_count + success_count += 1 except Exception as e: print(f"Exception running {script_path}: {e}") @@ -329,7 +337,7 @@ def main(): "-a", "change-colortheme", "Colortheme Changed", - f"Palette: {palette_name}\nFlavor: {flavor}\nApplied to {len(apps)} apps", + f"Palette: {palette_name}\nFlavor: {flavor}\nApplied to {success_count} apps", ] )