Like-Random Theme Switcher for People Afraid of Commitment

Hi all! Just wanted to share a little snippet with people somewhere because I felt really proud that I finally got the elisp statements to work properly. Here’s a snippet to switch your theme based on your system time. It’s not really random but keeps things fresh. I haven’t seen any performance impact myself, but ymmv.

(setq second
    (mod (time-convert nil 'integer) 10))
(cond ((equal second 0)(setq doom-theme 'doom-ephemeral))
    ((equal second 1)(setq doom-theme 'doom-nova))
    ((equal second 2)(setq doom-theme 'doom-vibrant))
    ((equal second 3)(setq doom-theme 'doom-miramare))
    ((equal second 4)(setq doom-theme 'doom-spacegrey))
    ((equal second 5)(setq doom-theme 'doom-fairy-floss))
    ((equal second 6)(setq doom-theme 'doom-bluloco-dark))
    ((equal second 7)(setq doom-theme 'doom-oksolar-dark))
    ((equal second 8)(setq doom-theme 'doom-monokai-machine))
    ((equal second 9)(setq doom-theme 'misterioso))
    (t (setq doom-theme 'doom-nord-aurora)))

If anyone wants to use this, just copy the code into your doom/config.el. Feel free to change the theme names used to whatever you want. I just picked 10 themes I preferred.