Commit Graph

18 Commits

Author SHA1 Message Date
John Mertz b0ec5cdafb
Add TV to configurations 2022-10-31 18:32:55 -04:00
John Mertz b3e2e00961
Sticky the pop-up terminal while present 2022-10-31 18:32:54 -04:00
John Mertz d06ed5266f
Add fallback bg, fix missing args, hide waybar
If no background arguement exists, use a fallback colour. If no scale or
transform argument exists use 1 and 0. Toggle off waybar on start (I
don't think this works properly)
2022-10-31 18:32:54 -04:00
John Mertz 93125c95ee
Dynamic scale for Yoga
This is a big-ol hack. I should ideally just have an external file for
the configs which differs for each device.
2022-10-31 18:32:52 -04:00
John Mertz 24457ca338
Add sock and display id to allow non-attached execution
SWAYSOCK is now static so it can be referenced by all of the swaymsg
commands.

waybar now includes a static WAYLAND_DISPLAY declaration.

This allows for recovery/configuration via SSH as well as groundwork for
udev (un)docking rules.
2022-10-31 18:32:52 -04:00
John Mertz 77db7f3640
Dump waybar config to semi-permanent destination
Since a previous change combined all displays into a single file, it is
no longer necessary to create many temporary configs. The latest config
can just be dumped to the standard path so that running `waybar` on it's
own will load it.
2022-10-31 18:32:51 -04:00
John Mertz b754308a90
Move setup into function where it is required 2022-10-31 18:32:50 -04:00
John Mertz 3ace506009
Fix resolution of Sam, change new output mapping 2022-10-31 18:32:50 -04:00
John Mertz c419c8d2ed
Files were moved and updated. Deleting old. 2022-10-31 18:32:49 -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
John Mertz 7fb00b5f09
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.
2022-10-31 18:32:48 -04:00
John Mertz 31fe7a032b
Simple script to toggle docked and detached output layouts 2022-10-31 18:32:48 -04:00
John Mertz a4f2b3310c
Kernel formatting 2022-10-31 18:32:47 -04:00
John Mertz 4750ac31b3
Move toggle_outputs to sway directory
It is not specific to thinkpad hardware but it is specific to sway; this is more appropriate
2022-10-31 18:32:46 -04:00
John Mertz 8baad221bd
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.
2022-10-31 18:32:46 -04:00
John Mertz 5b18c8d7f4
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
2022-10-31 18:32:45 -04:00
John Mertz ea6b7df307
Remove unnecessary debug line 2022-10-31 18:32:45 -04:00
John Mertz e80233dd04
Intial commit of all current scripts 2022-10-31 18:32:44 -04:00