Repository navigation
Dim keyboard on idle + turn off monitor at lid close - #76
Conversation
Implementation should theoretically work Separate listener is used before DPMS off to save state Restoring the state is handled by the original listener Closes omacom#70
Previous implementation failed testing It's possible that we could do a bare brightnessctl -s? Then the restore in the other listener might work. However for now, this is tested and functioning
Assumes that all built in monitors are eDP-1 Mac Minis dont have a lid event so this should never get reached on them anyway. Should hopefully mitigate some battery use + make it behave like people expect laptops to behave.
|
Hi @grevevarg Please test again and let me know. |
|
Just so we're on the same page, is the issue that the screen+kb doesn't turn off when you close the lid again? |
|
This is slightly more reliable due to splitting up the binds and sending calls separately. |
|
Works perfectly fine on my MacBook Pro M2 Max. |
migrations/1767821287.sh, 1767821288.sh and 1767821291.sh were written for the hypridle-era tree (PR omacom#76) and each guards on a file quattro no longer ships: ~/.config/hypr/hypridle.conf, monitors.conf and bindings/media.conf. On a current install every one of them prints its "Add ..." header and changes nothing; on an upgraded install they can only edit a leftover file that nothing reads, since hypridle itself was retired with the 3.x stack. What they stood for already lives in the Lua config: the Apple SMC lid binds in default/hypr/bindings/utilities.lua and the keyboard backlight keys in default/hypr/bindings/media.lua. Idle dimming is being built as a shell service instead (omacom#340). Stale completion markers for the deleted files are ignored by omarchy-migrate, which only walks the packaged migrations. Fixes omacom#689 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Adds a listener to default hypridle config that turns off keyboard backlights at the same time the screen turns off.
Also adds some commands to the default monitors config that turns off screen + keyboard when the lid is closed.
Closes #70