omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Suggestion: Automatic Theme Switching Feature

Open LukasTrust opened this issue 1 year ago • 6 comments

What do you need?

Hi Omarchy team! 👋

This is my first issue on an open-source project, and I wanted to share an idea for improving Omarchy:

I created a simple automatic theme switcher using the existing Omarchy commands:

  • omarchy-theme-list
  • omarchy-theme-next
  • omarchy-theme-bg-next

The script allows users to:

  • Automatically switch to the next theme or next background.
  • Optionally select a random theme.
  • Configure intervals (minute, hour, day, week, month).

I also set up systemd service and timer files so the theme switching can run automatically in the background.

Motivation:

Omarchy already makes it easy to switch themes manually, which is great. However, I think most users would enjoy opening their PC to a fresh theme automatically, like every day or once a week, without having to run commands themselves. This small addition could make the user experience more dynamic and fun.

I’m open to renaming the files or moving them if they don’t fit the current Omarchy structure or naming conventions.

Thank you for considering this feature.I hope it can be useful for other Omarchy users!

LukasTrust avatar Oct 27 '25 20:10 LukasTrust

The minute interval option can be removed, it was only meant as a proof of concept. Also, systemctl --user enable --now omarchy-theme-switcher.timer needs to be run somewhere to activate the timer, but I’m not sure where it should be invoked in the current setup. Additionally, the default mode=off disables theme switching; for testing please set another mode.

LukasTrust avatar Oct 28 '25 17:10 LukasTrust

Nice. I instead longed for auto dark/light mode. Your insights helped. (I configured darkman to do the switching)

patroza avatar Nov 01 '25 17:11 patroza

@LukasTrust Hi, just came across the closed PR. Did you ever create a separate package for this? Timed bg switches would be awesome.

andomeder avatar Jan 02 '26 22:01 andomeder

@LukasTrust Hi, just came across the closed PR. Did you ever create a separate package for this? Timed bg switches would be awesome.

Hi, thanks for the interesst sadly i did not yet look into making it a separate package and i have to say that the old implementaiton was not really good. But if i find the time to do it i will update you here

LukasTrust avatar Jan 03 '26 19:01 LukasTrust

Hi there 👋🏼 How do you auto switch between light and dark themes in Omarchy? Did you just add darkman? Thanks!

MartinCura avatar Apr 13 '26 20:04 MartinCura

@andomeder timed bg switches exist now as a separate package: https://github.com/AccursedGalaxy/omarchy-auto-theme

Its main job is wallpaper-based theming (matugen palette rendered as a native Omarchy theme), but since v1.2.0 it also has a ROTATE setting. Put ROTATE=30m or ROTATE=daily in its settings file and a systemd user timer runs omarchy-theme-bg-next on that schedule, with the same crossfade as the hotkey. It cycles the backgrounds of whatever theme is active. If the matugen theme is active, the whole desktop recolors with each rotation.

@MartinCura for scheduled dark/light, darkman is still the answer, like patroza said. If you run the matugen theme, MODE=dark / MODE=light in the same settings file is the one line your darkman scripts have to flip. It applies on the next wallpaper change, so with rotation on it takes effect within one interval.

AccursedGalaxy avatar Aug 27 '26 12:08 AccursedGalaxy