Skip to content

Make nightlight temperature configurable via env variables#5975

Open
Alejandro-M-Cruz wants to merge 5 commits into
basecamp:devfrom
Alejandro-M-Cruz:nightlight-temp-env-vars
Open

Make nightlight temperature configurable via env variables#5975
Alejandro-M-Cruz wants to merge 5 commits into
basecamp:devfrom
Alejandro-M-Cruz:nightlight-temp-env-vars

Conversation

@Alejandro-M-Cruz
Copy link
Copy Markdown

@Alejandro-M-Cruz Alejandro-M-Cruz commented May 25, 2026

Allow users to configure the color temperature for both enabled and disabled nightlight states.

Overview of changes:

  • Introduce OMARCHY_NIGHTLIGHT_ON_TEMPERATURE and OMARCHY_NIGHTLIGHT_OFF_TEMPERATURE to manage nightlight and daylight temperatures.

  • Add the new variables to config/uwsm/default (commented out by default).

  • Add a migration to automatically update ~/.config/uwsm/default if the file exists.

Copilot AI review requested due to automatic review settings May 25, 2026 12:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds configurable nightlight color temperatures via environment variables and ensures existing user configs can be updated through a migration.

Changes:

  • Add optional OMARCHY_NIGHTLIGHT_{ON,OFF}_TEMPERATURE exports to the default UWSM config template.
  • Update omarchy-toggle-nightlight to read temperatures from environment with sensible defaults.
  • Introduce a migration to append commented variable examples to existing ~/.config/uwsm/default.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
migrations/1779711585.sh Appends commented nightlight temperature env vars to an existing user config or refreshes defaults otherwise
config/uwsm/default Documents new optional env vars for nightlight temperatures
bin/omarchy-toggle-nightlight Uses the new env vars (with defaults) to set on/off color temperatures

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread migrations/1779711585.sh Outdated
Comment thread migrations/1779711585.sh Outdated
Copilot AI review requested due to automatic review settings May 25, 2026 12:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

Comment thread migrations/1779711585.sh
Comment thread migrations/1779711585.sh
Comment thread migrations/1779711585.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants