8 ms·
I too use Prot's themes, but a different one per season: (defun light-theme-for-this-season () "Return the light theme for this season." (pcase (curr
by sph 4y ago
I too use Prot's themes, but a different one per season:
(defun light-theme-for-this-season ()
"Return the light theme for this season."
(pcase (current-meteorological-season)
('spring 'ef-spring)
('summer 'ef-summer)
('autumn 'ef-day)
('winter 'ef-light)))
Each season starts on the first of the month: March, June, September, December.
I also have a little script that switches to the dark theme with the rest of the system, and it loads modus-vivendi, another one of Prot's collection, now bundled with Emacs.
His themes are cool because he makes sure every colour has a minimum contrast ratio of 4.5, and because he doesn't agree with the stupid trend of making comments so light against the background, they're unreadable. Comments need to stand out!
- hprotagonist 4y agoadd in some circadian.el and then you’re really cookin’ :)
- sph 4y agoI have GNOME do the auto dark theme thing automatically, so all Emacs has to do is listen to dbus signals and act accordingly: (defun theme-switcher (value) (pcase value ;; No Preference. Used by GNOME to indicate light theme. (0 (sph/load-light-theme)) ;; Prefers dark (1 (sph/load-dark-theme)) ;; Prefers light (2 (sph/load-light-theme)) (_ (message "Invalid key value")))) (defun handler (value) (theme-switcher (car (car value)))) (defun signal-handler (namespace key value) (if (and (string-equal namespace "org.freedesktop.appearance") (string-equal key "color-scheme")) (theme-switcher (car value)))) (dbus-call-method-asynchronously :session "org.freedesktop.portal.Desktop" "/org/freedesktop/portal/desktop" "org.freedesktop.portal.Settings" "Read" #'handler "org.freedesktop.appearance" "color-scheme") (dbus-register-signal :session "org.freedesktop.portal.Desktop" "/org/freedesktop/portal/desktop" "org.freedesktop.portal.Settings" "SettingChanged" #'signal-handler)
- hprotagonist 4y agooh, very good. i3 lacks such chrome, i think, but that’s ok