From 9466f1c037760d60be5beed24e1e679c1067fd19 Mon Sep 17 00:00:00 2001 From: JezerM Date: Wed, 30 Jun 2021 10:03:19 -0600 Subject: [PATCH] Added cursor theme option --- .gitignore | 5 +++++ dist/web-greeter.yml | 2 ++ web-greeter/globals.py | 2 ++ web-greeter/whither.yml | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index 1b5f4f7..2d16a5f 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,8 @@ Makefile.in /install-sh /missing /stamp-h1 + +# gh-pages +_book/ +node_modules/ +package-lock.json diff --git a/dist/web-greeter.yml b/dist/web-greeter.yml index c500766..36c5c56 100644 --- a/dist/web-greeter.yml +++ b/dist/web-greeter.yml @@ -18,6 +18,7 @@ branding: # screensaver_timeout: Blank the screen after this many seconds of inactivity. # secure_mode: Don't allow themes to make remote http requests. # theme: Greeter theme to use. +# icon_theme: Icon/cursor theme to use, located in /usr/share/icons/ # time_format: A moment.js format string so the greeter can generate localized time for display. # time_language: Language to use when displaying the time or "auto" to use the system's language. # @@ -29,6 +30,7 @@ greeter: screensaver_timeout: 300 secure_mode: True theme: default + icon_theme: Adwaita time_format: LT time_language: auto diff --git a/web-greeter/globals.py b/web-greeter/globals.py index 05ae316..fa72a8e 100644 --- a/web-greeter/globals.py +++ b/web-greeter/globals.py @@ -177,6 +177,8 @@ class WebGreeter(App): self.config.greeter.update(greeter_config) self.config.features.update(features_config) + os.environ["XCURSOR_THEME"] = greeter_config["icon_theme"] + self._config.debug_mode = greeter_config['debug_mode'] self._config.allow_remote_urls = not greeter_config['secure_mode'] diff --git a/web-greeter/whither.yml b/web-greeter/whither.yml index 375e8fa..af35005 100644 --- a/web-greeter/whither.yml +++ b/web-greeter/whither.yml @@ -37,10 +37,15 @@ WebGreeter: screensaver_timeout: 300 secure_mode: True theme: default + icon_theme: Adwaita time_format: LT time_language: auto features: battery: False + backlight: + enabled: False + value: 10 + steps: 0 greeters_dir: '@greeters_dir@' locale_dir: '@locale_dir@' themes_dir: '@themes_dir@'