From eef39cab25ac7a48ad6887cd97a8772d2611e8d5 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Tue, 29 Jul 2025 15:28:39 +0545 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=85=20style:=20update=20color=20scheme?= =?UTF-8?q?=20to=20warm=20desert=20theme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/hypr/colors.conf | 42 ++++++++++++++-------------- services/brightness_service.py | 51 ---------------------------------- 2 files changed, 21 insertions(+), 72 deletions(-) delete mode 100644 services/brightness_service.py diff --git a/config/hypr/colors.conf b/config/hypr/colors.conf index 21d1017..b077af8 100644 --- a/config/hypr/colors.conf +++ b/config/hypr/colors.conf @@ -1,27 +1,27 @@ -$wallpaper = /home/sankalp/Pictures/wallpapers/spiderverse.jpg -$background = 0f1416 -$foreground = dee3e6 +$wallpaper = /home/sankalp/Pictures/wallpapers/54.png +$background = 1a110f +$foreground = f1dfda -$primary = 88d1ec -$secondary = b3cad4 -$tertiary = c3c3eb -$surface = 0f1416 -$surface_bright = 353a3d -$outline = 8a9296 +$primary = ffb59d +$secondary = e7bdb1 +$tertiary = d7c68d +$surface = 1a110f +$surface_bright = 423733 +$outline = a08d87 $error = ff5945 $shadow = 000000 -$red = ffb2b9 -$green = 95d5a7 -$yellow = b8cf84 -$blue = afc6ff -$magenta = e4b7f3 -$cyan = 82d3e1 +$red = ffb4a2 +$green = b7d085 +$yellow = dec56e +$blue = cebdfe +$magenta = fcb0d5 +$cyan = 84d5c4 $white = 82d3e0 -$red_dim = ff4c5c -$green_dim = 4cb86a -$yellow_dim = 8baa43 -$blue_dim = 497dff -$magenta_dim = c360e4 -$cyan_dim = 31b5cc +$red_dim = ff623c +$green_dim = 89ad42 +$yellow_dim = bb9b2b +$blue_dim = 8359fc +$magenta_dim = f84ea1 +$cyan_dim = 3eb59c diff --git a/services/brightness_service.py b/services/brightness_service.py deleted file mode 100644 index cf80103..0000000 --- a/services/brightness_service.py +++ /dev/null @@ -1,51 +0,0 @@ -import os -from loguru import logger -from gi.repository import GLib - -from fabric.core.service import Service, Signal -from fabric.utils.helpers import monitor_file - -from config.info import BRIGHTNESS_DEV - - -class BrightnessService(Service): - - _instance = None - - @Signal - def value_changed(self, new_value: int, max_value: int) -> None:... - - def __new__(cls): - if cls._instance is None: - cls._instance = super().__new__(cls) - cls._instance._init_singleton() - return cls._instance - - def _init_singleton(self): - super().__init__() - - self.max_brightness = -1 - self.brightness_monitor = None - - backlight_path = f"/sys/class/backlight/{BRIGHTNESS_DEV}" - try: - self.brightness_monitor = monitor_file(backlight_path) - self.max_brightness = self._read_max_brightness(backlight_path) - self.brightness_monitor.connect("changed", self._on_brightness_changed) - except Exception as e: - logger.error(f"Brightness device not found at {backlight_path}: {e}") - - def _read_max_brightness(self, path: str) -> int: - max_path = os.path.join(path, "max_brightness") - if os.path.exists(max_path): - with open(max_path) as f: - return int(f.readline()) - return -1 - - def _on_brightness_changed(self, monitor, file, *args): - try: - raw = file.load_bytes()[0].get_data() - new_value = round(int(raw)) - self.value_changed(new_value, self.max_brightness) - except Exception as e: - logger.warning(f"Failed to read brightness: {e}")