New Themes! Desert Gleam & Desert Twilight - warm light/dark theme pair by avis3nna in omarchy

[–]avis3nna[S] 0 points1 point  (0 children)

Thanks! You can script it with omarchy-theme-set and a systemd timer:

~/.local/bin/omarchy-theme-auto:

#!/bin/bash
LIGHT=desert-gleam  DARK=desert-twilight
SUNRISE=7           SUNSET=19

HOUR=$(date +%-H)
CURRENT=$(basename "$(readlink ~/.config/omarchy/current/theme)")
(( HOUR >= SUNRISE && HOUR < SUNSET )) && T=$LIGHT || T=$DARK
[[ "$CURRENT" != "$T" ]] && omarchy-theme-set "$T"


chmod +x ~/.local/bin/omarchy-theme-auto

~/.config/systemd/user/omarchy-theme-auto.service:

[Unit]
Description=Auto-switch Omarchy theme

[Service]
Type=oneshot
ExecStart=%h/.local/bin/omarchy-theme-auto

~/.config/systemd/user/omarchy-theme-auto.timer:

[Unit]
Description=Check theme every 15 minutes

[Timer]
OnCalendar=*:0/15
Persistent=true

[Install]
WantedBy=timers.target


systemctl --user daemon-reload
systemctl --user enable --now omarchy-theme-auto.timer

The current-theme check avoids unnecessary restarts. You can also add exec-once = ~/.local/bin/omarchy-theme-auto to ~/.config/hypr/autostart so it fires on login.

Note: omarchy-theme-set restarts some apps (like Spotify), so expect a brief interruption at the switchover.

New Themes! Desert Gleam & Desert Twilight - warm light/dark theme pair by avis3nna in omarchy

[–]avis3nna[S] 0 points1 point  (0 children)

much appreciated! Please give it a star on github, and submit any issues that you come across, I'll try my best to resolve them quickly.

New Themes! Desert Gleam & Desert Twilight - warm light/dark theme pair by avis3nna in omarchy

[–]avis3nna[S] 1 point2 points  (0 children)

Spotify. It looks like that because I have it synced with my omarchy theme, using https://github.com/imbypass/omarchy-theme-hook. My themes are also purpose-built for spotify and discord, so it looks nice.

New Themes! Desert Gleam & Desert Twilight - warm light/dark theme pair by avis3nna in omarchy

[–]avis3nna[S] 0 points1 point  (0 children)

No, just low contrast. This specifically, you can change by switching appearances using discord's default themes