feat(config): wire up wallpapers_dir, osd, window_switcher, global_menu settings
- wallpapers_dir: read from config, fallback ~/Pictures/Wallpapers - osd: skip show_audio_osd/show_brightness_osd when disabled - window_switcher: skip show_switcher when disabled - global_menu_cache_enabled: bypass GTK class cache when false - global_menu_method: control discovery strategies (auto/hyprland/dbus) All keys added to constants.py defaults, settings UI, and config.toml
This commit is contained in:
7 files changed
+148
-55
No files matched your search
+15
-1
@@ -11,7 +11,21 @@ CACHE_DIR = str(GLib.get_user_cache_dir()) + f"/{APP_NAME}"
|
||||
CONFIG_DIR = os.path.expanduser(f"~/.config/{APP_NAME}")
|
||||
|
||||
SYSTEM_CACHE_DIR = GLib.get_user_cache_dir()
|
||||
WALLPAPER_PATH = f"{HOME_DIR}/Pictures/Wallpapers"
|
||||
|
||||
|
||||
def _get_wallpaper_path() -> str:
|
||||
try:
|
||||
from services.config import get_config
|
||||
|
||||
custom = get_config("wallpapers_dir")
|
||||
if custom:
|
||||
return os.path.expanduser(str(custom))
|
||||
except Exception:
|
||||
pass
|
||||
return f"{HOME_DIR}/Pictures/Wallpapers"
|
||||
|
||||
|
||||
WALLPAPER_PATH = _get_wallpaper_path()
|
||||
WALLPAPER_THUMBS_PATH = f"{WALLPAPER_PATH}/.thumbnails"
|
||||
WALLPAPERS_THUMBNAILS_SIZE = 200
|
||||
WALLPAPERS_DIR_DEFAULT = get_relative_path("../assets/wallpapers_example/")
|
||||
|
||||
Reference in new issue
Block a user