My #dotfiles are turning into an exercise in testing for features and degrading gracefully when they are absent.
While working around the “don’t change your wallpaper unless you like screen freeze” behavior in #sway on #FreeBSD, I discovered that installing certain software packages related to #amateurradio force the #waybar package to deinstall. Instead of digging into the nature of the incompatibility with the eventual goal of having both, I chose to work around it by using #m4. #Macros that test whether certain executables exist, and define other macros based on the results. Then ifdef() and #bobsyouruncle.
It’s nice that this is possible, with a minimum of tools. Not always easy to read, but possible.
Why the #workaround? Mostly because I always want a status bar of some sort, regardless of whether the computer’s role relates to amateur radio. And I want those bits of amateur radio functionality present on the machine, even if they are seldom used.
Yes, I could probably find a way to use the #ports collection to compile with exactly the right flags and make everything work. It might be educational. It probably won’t be enjoyable.