Skip to content

Add "Sleep Displays" to System menu - #5571

Open
jondkinney wants to merge 1 commit into
basecamp:quattrofrom
jondkinney:add-sleep-displays-menu-item
Open

Add "Sleep Displays" to System menu#5571
jondkinney wants to merge 1 commit into
basecamp:quattrofrom
jondkinney:add-sleep-displays-menu-item

Conversation

@jondkinney

@jondkinney jondkinney commented May 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a Sleep Displays entry to the System menu (default/omarchy/omarchy-menu.jsonc), between Lock and Suspend
  • New helper bin/omarchy-cmd-sleep-displays powers off all monitors via DPMS without locking or suspending the session — any input wakes them
  • Helper detaches the DPMS dispatch with a 1s delay so trailing input from closing the launcher (key release, focus change) doesn't immediately wake the displays

Motivation

There's no built-in way to manually sleep just the displays — equivalent to macOS's "sleep displays" / Ctrl+Shift+Power. Lock brings up the lock screen, Suspend puts the whole machine to sleep. This sits between them: blank the screens, keep everything else running, wake on any input.

Notes

Rebased onto omarchy-4 and reworked for the 4.x code path:

  • Menu entry is now a row in the JSONC menu (system.sleep-displays) rather than a show_system_menu case in the old bash omarchy-menu.
  • Uses the current Lua dispatch form hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })', matching omarchy-brightness-display.

Test plan

  • Open the Omarchy menu → System → Sleep Displays — displays power off, wake on key/mouse input
  • Searchable via the menu (keywords: monitor / dpms / screen / off / blank)
  • Verify omarchy-cmd-sleep-displays works from a terminal too

Copilot AI review requested due to automatic review settings May 4, 2026 15:28

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.

Copilot wasn't able to review any files in this pull request.


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

@jondkinney
jondkinney changed the base branch from master to dev May 4, 2026 15:31
@jondkinney
jondkinney force-pushed the add-sleep-displays-menu-item branch from 3c73c22 to d23422a Compare May 4, 2026 15:33
@dhh

dhh commented May 7, 2026

Copy link
Copy Markdown
Member

What are you using this for? Because even if the displays are off, the hypridle will still lock the machine too? So how does it differ from just locking?

@jondkinney

jondkinney commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

@dhh for as long as I can remember (20 years?) I've set the lower right corner of my machine to "sleep displays". It helps the monitors power off more readily when they for sure know no input is coming. So my usual workflow is to turn the displays off before I head up to bed from my home office so the monitor doesn't sense any signal and fully turns off. On macOS it's usually been this

CleanShot 2026-05-07 at 22 59 11@2x

But sometimes I also invoke it via raycast and my 32" LG 6k goes to sleep almost immediately.

image

So this is that for Omarchy.

image

@jondkinney
jondkinney force-pushed the add-sleep-displays-menu-item branch from d23422a to fa2411f Compare June 18, 2026 04:55
Copilot AI review requested due to automatic review settings June 18, 2026 04:55
@jondkinney
jondkinney changed the base branch from dev to omarchy-4 June 18, 2026 04:55

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

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

@jondkinney
jondkinney changed the base branch from omarchy-4 to quattro June 30, 2026 16:07
Provides a manual equivalent to macOS's "sleep displays" — powers off
all monitors via DPMS without locking or suspending the session. Any
input wakes the displays.

The new omarchy-cmd-sleep-displays helper detaches the dispatch with a
short delay so trailing input from closing the launcher (key release,
focus change) doesn't immediately wake the displays.
@jondkinney
jondkinney force-pushed the add-sleep-displays-menu-item branch from fa2411f to 653003b Compare June 30, 2026 16:12
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.

3 participants