Commit Graph

22 Commits

Author SHA1 Message Date
John Mertz 20102a4006 Save power mode before sleep, set to power-saver, then restore 2024-08-18 13:06:26 -06:00
John Mertz b32759643a 'mode' command didn't actually work until now.
Also rotate mode if no argument is provided. This makes the rotate behaviour of waybar-idle.sh unnecessary.
2024-08-16 11:09:00 -06:00
John Mertz 0abcd17f22 Log current state to file (non-idle means that the state file does not exist)
Use existence of state file in new script to know whether to fade or unfade windows/notifications
2024-04-19 18:08:30 -06:00
John Mertz c0cb1ed8a7 (Un)hide mako notifications during (un)fade 2024-04-19 18:07:12 -06:00
John Mertz 0eb58077e6 Use XDG state directory instead of custom .spool 2024-03-08 12:11:04 -07:00
John Mertz db048cfe82 Fix ignore_mode. 'hibernate' not properly assigned 2024-03-08 11:59:21 -07:00
John Mertz 636be47198 Run display.pl with proper PATH 2024-03-08 11:58:45 -07:00
John Mertz 73501f0489 Daemonize swaylock to allow for subsequent actions 2024-02-22 11:06:07 -07:00
John Mertz 5e556193ca Prevent mako notifications from appearing during idle 2023-11-17 13:18:06 -07:00
John Mertz 978daa7c10
Fix incorrect timeout vars 2023-07-21 17:06:24 -04:00
John Mertz b87527f8b0
Enhance idle options
Allow for calling idle with --ignore_mode to run an option beyond the
current sequence limit.

Allow 'dim' as it's own option.

Add 'lock' option to waybar script (and add it to source control in the
first place).

Simplify sequence logic by setting a numerical mode.

Improve help.
2023-07-20 22:07:23 -04:00
John Mertz 59f84d2092 Just re-enable displays rather than using displays.pl
No need to re-arrange windows/bars
2023-04-12 21:40:47 -04:00
John Mertz 2ef6def85f
Don't sleep while in hidernate inhibitor mode 2023-04-09 13:17:02 -04:00
John Mertz 00eef39441
Fix merge conflicts 2023-01-07 13:32:14 -05:00
John Mertz 6cbadb5d5d
ts4 2023-01-07 08:17:43 -05:00
John Mertz 6d33d9446f tabs->spaces 2023-01-06 14:41:31 -05:00
John Mertz fcffe18886 Typos 2022-12-12 18:04:23 -05:00
John Mertz 14310c3c58 Support for blocking hibernation 2022-11-21 18:56:50 -05:00
John Mertz 4bdd817ae1 New 'fade' action as first step to 'idle'
Will take ~1-2s to fade all windows (depending on number of windows. Allows for fullscreen wallpaper for a couple of minutes before next steps.
2022-11-21 18:44:59 -05:00
John Mertz d90eaeed5c
improve idle behaviour 2022-10-31 18:33:07 -04:00
John Mertz b74c0f0faf
Add lock functions to idle script 2022-10-31 18:32:55 -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