Add rotating backgrounds feature toggle#5253
Open
dabit wants to merge 1 commit intobasecamp:devfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds a rotating backgrounds feature to Omarchy, allowing users to automatically cycle through their active theme's backgrounds on an hourly schedule via a systemd user timer. The feature is accessible through the SUPER+CTRL+O menu under Toggle → Cycle Backgrounds and is opt-in by default.
Changes:
- Adds a new bash script
omarchy-toggle-bg-cycleto enable/disable the background cycling timer with notify-send feedback - Creates systemd user service and timer unit files (
omarchy-bg-cycle.serviceandomarchy-bg-cycle.timer) configured for hourly background cycling - Updates the Toggle menu in
omarchy-menuto include the new "Cycle Backgrounds" toggle option
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| bin/omarchy-toggle-bg-cycle | New bash script that toggles the systemd timer on/off via systemctl with user notifications |
| config/systemd/user/omarchy-bg-cycle.service | New oneshot service unit that executes omarchy-theme-bg-next with proper signal handling |
| config/systemd/user/omarchy-bg-cycle.timer | New timer unit that triggers the service on an hourly schedule |
| bin/omarchy-menu | Adds "Cycle Backgrounds" menu item and its case handler to the Toggle submenu |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Adds a systemd timer-based rotating backgrounds feature accessible via the SUPER+CTRL+O trigger menu → Toggle → Rotating Backgrounds. Enables or disables an hourly background rotation using omarchy-theme-bg-next.
092a3e3 to
1f84461
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some themes ship with multiple beautiful backgrounds and choosing just one means missing out on the rest. This PR adds background cycling as a first-class Omarchy feature so users can enjoy all of them automatically.
Accessible via the SUPER+CTRL+O trigger menu → Toggle → Cycle Backgrounds.
When enabled, a systemd user timer fires
omarchy-theme-bg-nexthourly toautomatically cycle through the active theme's backgrounds. The timer runs
inside the user session, ensuring
WAYLAND_DISPLAYandDBUS_SESSION_BUS_ADDRESSare available (unlike cron).
KillMode=noneis set on the service so systemddoesn't kill the newly launched
swaybgprocess when cleaning up the cgroup.The feature is opt-in — nothing is auto-enabled on install.
Changes
bin/omarchy-toggle-bg-cycle— enables/disablesomarchy-bg-cycle.timerviasystemctl --user, with notify-send feedbackconfig/systemd/user/omarchy-bg-cycle.{service,timer}— oneshot service + hourly timer unit files (deployed to~/.config/systemd/user/on install)bin/omarchy-menu— adds Cycle Backgrounds entry to the Toggle submenu