💅 style: update color scheme to warm desert theme

This commit is contained in:
sankalp committed 2025-07-29 15:28:39 +05:45
1 parent 34f60b4c98
commit eef39cab25
2 files changed
+21 -72

No files matched your search

+21 -21
View File
@@ -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
-51
View File
@@ -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}")