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)
Not ideal. Requires manual installation of Gtk2::Notify which is no
longer packaged by Debian and has broken dependencies. Need to migrate
to a better notification library.
Migration was initially made to Gtk2::Notify because it allows for
replacing the content of an existing notification. No newer libraries
appear to support this in Perl.
This was the first "substantial" Perl program I've ever written; it may
become the first which is re-written in a better supported language.
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.
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.
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.
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.
SystemD unit file to give ownership or necessary sys files to user
toggle_outputs.sh simply swaps between two most common layouts with
sway/displays.pl
kbd_backlight.pl simply increments the current backlight brightness then
%3 to cycle between off, low, high
blc.pl is an overly complicated screen backlight control