feat: add lockscreen toggle to support screensaver-only mode#6015
Open
SilvM wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a dedicated “Lockscreen” toggle and updates idle-lock behavior/indicators to respect a transient lockscreen-off state, including resetting it on startup.
Changes:
- Update Waybar idle indicator to reflect hypridle/lockscreen toggle states.
- Add a new
omarchy-toggle-lockscreencommand and expose it in the toggle menu. - Make hypridle’s lock action conditional on
lockscreen-off, and reset that toggle at startup.
Reviewed changes
Copilot reviewed 3 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| default/waybar/indicators/idle.sh | Adjusts icon/tooltip output based on hypridle running state and lockscreen-off. |
| default/hypr/autostart.lua | Clears the lockscreen-off toggle state on session start. |
| config/hypr/hypridle.conf | Skips system lock on timeout when lockscreen-off is enabled. |
| bin/omarchy-toggle-lockscreen | Introduces a new toggle command for lockscreen availability + Waybar refresh. |
| bin/omarchy-toggle-idle | Updates idle toggle logic to interact with lockscreen-off. |
| bin/omarchy-menu | Adds “Lockscreen” entry to the toggle menu and wires it to the new command. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| o.exec_on_start("sleep 2 && omarchy-hook post-boot") | ||
|
|
||
| -- Reset transient toggles on startup. | ||
| o.exec_on_start("rm -f ~/.local/state/omarchy/toggles/lockscreen-off") |
Comment on lines
14
to
+17
| # Lock system after 5 minutes (screensaver resets idle timer, so have to just do half + 2s margin) | ||
| listener { | ||
| timeout = 152 | ||
| on-timeout = omarchy-system-lock | ||
| on-timeout = omarchy-toggle-enabled lockscreen-off || omarchy-system-lock |
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.
No description provided.