Commit Graph

9 Commits

Author SHA1 Message Date
John Mertz 978a6aef4b 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.
2021-01-17 21:54:21 -05:00
John Mertz 41ebb871d6 Default displays changed. Added fallback action.
If a config is selected for which the displays do not exist, either bail
or if in recovery mode, restore 'detached'. The latter was added in
anticipation of the swayidle script which will attempt to restore a
layout that may no longer be possible. Since swayidle disables dpms, it
must allow a backup display to come live if the last logged layout is
not possible.
2021-01-17 21:51:31 -05:00
John Mertz 35ee85f260 Simple script to toggle docked and detached output layouts 2021-01-17 21:49:54 -05:00
John Mertz f10d944e17 Kernel formatting 2020-11-23 04:35:26 -05:00
John Mertz 93731a44e2 Move toggle_outputs to sway directory
It is not specific to thinkpad hardware but it is specific to sway; this is more appropriate
2020-11-16 00:53:09 -05:00
John Mertz dd6a04088f Better comments, prevent duplicate waybars
Generate a single config file. Multiple processes seems to have run into
a bug where waybar will restore killed bars.
2020-11-15 23:47:18 -05:00
John Mertz ed8c247372 Login scripts
Stores WM to last_login_gui file to allow for auto-login to the last
used GUI

Removes old log file, executes GUI with new one
2020-10-10 05:06:58 -04:00
John Mertz b99662e7c1 Remove unnecessary debug line 2020-10-10 04:44:51 -04:00
John Mertz ff98665a42 Intial commit of all current scripts 2020-09-11 11:00:39 -04:00