Sunday, March 29, 2026

Re: wayland/waybar: default config

Le Sun, Mar 29, 2026 at 11:44:55AM +0200, Volker Schlecht a écrit :
> On 3/29/26 9:00 AM, Landry Breuil wrote:
> > Le Sun, Mar 29, 2026 at 12:30:20AM +0100, Volker Schlecht a écrit :
> > > Our current default config has a typo in the sndio module, and provides
> > > example configurations that afaict don't have a change of working on OpenBSD
> > > or require additional scripts to work.
> >
> > i havent tested at all, but i see no reason to disable upower, if
> > installed it should just work to report the battery levels (unless
> > theres' some plumbing to call the apm lowlevel interface instead ?)
> >
> > i think we should completely remove lines for the ones we know will
> > never work (eg the things relying on linux things), and leave commented
> > out lines for the ones that require extra rundeps like pulseaudio, mpd &
> > upower ?
>
> Thanks, Lydia and Landry, for the feedback.
>
> Here's my next attempt:
>
> * Add modules for niri as alternative to the sway modules
> That should work for both niri and sway-compatible compositors
> * Comment mpd, upower as per Landry's suggestion
> * Remove "keyboard-state" section because
> [warning] module keyboard-state: Unknown module: keyboard-state
> * Remove "network" because
> [warning] module network: Unknown module: network
> * Remove power-profiles-daemon, battery because they are not being built
> * Remove "custom/media" since it depends on a missing script
> * Still remove module pulseaudio, because it's not getting built
> (-Dpulseaudio=disabled)
> * Fixes Clock "argument not found error" (calendar popup doesn't work on
> OpenBSD)
> * Fix sndio example configuration
> * Replace temperature by "custom/temperature" that uses sysctl instead of /sys/
> (I don't have an AMD CPU around to test - will probably need tweaking there)
> * Replace battery by "custom/battery" that uses apm to show battery percentage
> * Change to a simpler custom/power that doesn't depend on an otherwise missing
> menu configuration
> * Not tested: backlight, tray
>
> While not full-featured, I think that's a sensible configuration that provides
> a useful starting point for customizations, isn't too opinionated, and doesn't
> invite attempts to configure missing modules.

neat ! lgtm :)

No comments:

Post a Comment