Skip to content

Add a presentation mode that stays awake, silences notifications, and hides the bar - #8513

Closed
chessing234 wants to merge 2 commits into
omacom:quattrofrom
chessing234:feat/presentation-mode
Closed

chessing234 wants to merge 2 commits into
omacom:quattrofrom
chessing234:feat/presentation-mode

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

Fixes #8510.

Stay Awake, notification silencing, and hiding the bar are separate toggles. For a talk you want all three at once, then the previous combination restored.

This adds omarchy-toggle-presentation on Trigger > Toggle. It records whether the bar was already hidden, DND already on, and stay-awake already set, then restores only what it changed. #8154 is the presentation logo color, not this toggle.

Verification

test/shell.d/presentation-mode-test.sh:

ok - presentation on hides the bar, silences notifications, and stays awake
ok - presentation off restores the previous bar, dnd, and idle state
ok - presentation off does not undo state it did not change
ok - presentation mode is on the Toggle menu

On/off from a clean home hides the bar, sets DND, and stay-awake, then puts them back. A second case starts with those already on and checks off leaves them alone.

Copilot AI balanced review requested due to automatic review settings August 27, 2026 02:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a presentation toggle that coordinates bar visibility, DND, and idle prevention while preserving prior states.

Changes:

  • Adds omarchy-toggle-presentation.
  • Adds Presentation to the Toggle menu.
  • Adds shell tests for activation and restoration.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

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

File Description
bin/omarchy-toggle-presentation Implements presentation state management.
default/omarchy/omarchy-menu.jsonc Adds the Presentation menu entry.
test/shell.d/presentation-mode-test.sh Tests activation and state restoration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

"trigger.share.folder": {"icon":"","label":"Folder","action":"omarchy-menu-share folder"},
"trigger.share.receive": {"icon":"󰥦","label":"Receive","action":"uwsm-app -- localsend"},
"trigger.toggle.idle-lock": {"icon":"󰅶","label":"Stay Awake","action":"omarchy-toggle-idle"},
"trigger.toggle.presentation": {"icon":"󰐼","label":"Presentation","checked":"omarchy-toggle-enabled presentation","action":"omarchy-toggle-presentation"},

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added it to the toggle table.

The other Trigger > Toggle commands are documented there; this one was
missing from the published list.
@chessing234

Copy link
Copy Markdown
Contributor Author

@dhh @ryanrhughes ready for review

@sprajs

sprajs commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

off changes unrelated user settings when presentation mode is already inactive. With no presentation flag or restore file, disable_presentation() falls back to bar visible / DND off / idle allowed and applies all three. I reproduced this with an isolated HOME and mocked commands: an independently hidden bar and stay-awake flag were removed, and setDnd off was called.

Could the inactive off path return without applying defaults? A regression test with existing bar/DND/stay-awake settings but no presentation state would cover this; it also protects a repeated off after the first call has removed the restore snapshot.

I implemented a fix with regression tests in #12422, in the main Omarchy repository, preserving this PR’s original commits. The focused tests pass; the PR records the full-suite failures and remaining runtime validation.

@chessing234

Copy link
Copy Markdown
Contributor Author

folded into #12730 with the share QR toggle.

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.

No one-shot presentation mode (stay awake + DND + hide bar)

3 participants