Commit Graph

3 Commits

Author SHA1 Message Date
John Mertz 6d33d9446f tabs->spaces 2023-01-06 14:41:31 -05:00
John Mertz 6f6f42db57
Trigger swayidle 2022-10-31 18:33:07 -04:00
John Mertz bbd69f5e73
A simulacrum of a functional swayidle script.
Working: A proper countdown to idle works and is cancelled on resume.
Displays are dimmed if possible at countdown start and restorted at
resume. The screens properly lock. The power to the displays is turned
off. The power is restore upon first resume. Layout and brightness
restored on unlock.

Known issue: Displays are not restored if the system idles again while
on lock screen. This shouldn't really happen and is a possible indicator
of tampering, which is kind of cool, but it's janky. Power needs to be
restored with the toggle_displays hotkey.
2022-10-31 18:32:48 -04:00