Minimum viable product. TERM closes gracefully, KILL just removes PID, and USR1 rotates immediately and restarts timer.
Other changes:
- Whitespace
- Implemented using lazy, excessive use of global variables. This needs to be improved.
- Comment blocks
Cropping should be avoided if the image is the same size also, not just if it is smaller.
I was using a minimum of 2 outputs while testing on my desktop. Revert that to 1.
Remove trailing tabs.
move waybar-apt.sh to waybar-debian.sh and add
waybar-fedora-silverblue.sh
waybar-pkg checks the OS from /etc/os-release then forwards argument to
the correct script
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.