💅 style: update color scheme to warm desert theme
This commit is contained in:
2 files changed
+21
-72
No files matched your search
+21
-21
@@ -1,27 +1,27 @@
|
|||||||
$wallpaper = /home/sankalp/Pictures/wallpapers/spiderverse.jpg
|
$wallpaper = /home/sankalp/Pictures/wallpapers/54.png
|
||||||
$background = 0f1416
|
$background = 1a110f
|
||||||
$foreground = dee3e6
|
$foreground = f1dfda
|
||||||
|
|
||||||
$primary = 88d1ec
|
$primary = ffb59d
|
||||||
$secondary = b3cad4
|
$secondary = e7bdb1
|
||||||
$tertiary = c3c3eb
|
$tertiary = d7c68d
|
||||||
$surface = 0f1416
|
$surface = 1a110f
|
||||||
$surface_bright = 353a3d
|
$surface_bright = 423733
|
||||||
$outline = 8a9296
|
$outline = a08d87
|
||||||
$error = ff5945
|
$error = ff5945
|
||||||
|
|
||||||
$shadow = 000000
|
$shadow = 000000
|
||||||
|
|
||||||
$red = ffb2b9
|
$red = ffb4a2
|
||||||
$green = 95d5a7
|
$green = b7d085
|
||||||
$yellow = b8cf84
|
$yellow = dec56e
|
||||||
$blue = afc6ff
|
$blue = cebdfe
|
||||||
$magenta = e4b7f3
|
$magenta = fcb0d5
|
||||||
$cyan = 82d3e1
|
$cyan = 84d5c4
|
||||||
$white = 82d3e0
|
$white = 82d3e0
|
||||||
$red_dim = ff4c5c
|
$red_dim = ff623c
|
||||||
$green_dim = 4cb86a
|
$green_dim = 89ad42
|
||||||
$yellow_dim = 8baa43
|
$yellow_dim = bb9b2b
|
||||||
$blue_dim = 497dff
|
$blue_dim = 8359fc
|
||||||
$magenta_dim = c360e4
|
$magenta_dim = f84ea1
|
||||||
$cyan_dim = 31b5cc
|
$cyan_dim = 3eb59c
|
||||||
@@ -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}")
|
|
||||||
Reference in new issue
Block a user