diff options
| author | LLoyderino <adrijan.bjedov@gmail.com> | 2025-11-01 14:08:08 +0100 |
|---|---|---|
| committer | LLoyderino <adrijan.bjedov@gmail.com> | 2025-11-01 14:10:30 +0100 |
| commit | 3220e22408795d63be93f0548b84ec9b5edf850f (patch) | |
| tree | 82454534d27f19c280bb1c98aa692bca88070a19 /theme.el | |
| parent | 26ddea643ae5f7f6521f5039803ae1a2a1cc4f3f (diff) | |
Theme utility will now require Gnome rather than Linux
If one runs Linux but doesn't have Gnome it will lead to issues
Diffstat (limited to 'theme.el')
| -rw-r--r-- | theme.el | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -5,6 +5,9 @@ (use-package catppuccin-theme) +(defun has-gsettings () + (= (call-process-shell-command "gsettings --version") 0)) + (defun set-color-scheme () (set-theme (string-trim @@ -28,8 +31,13 @@ (set-process-query-on-exit-flag process nil))) ;; Initialize settings -(set-color-scheme) -(monitor-theme-changes) +(when (has-gsettings) + (set-color-scheme) + (monitor-theme-changes)) + +(when (not (has-gsettings)) + (setq catppuccin-flavor 'mocha) + (load-theme 'catppuccin :no-confirm)) (provide 'theme) |
