On Tue, Nov 11, 2025 at 12:03:32PM +0100, Landry Breuil wrote:
> Le Mon, Nov 03, 2025 at 11:31:55AM +0100, Landry Breuil a écrit :
> > Le Sun, Nov 02, 2025 at 02:35:53PM +0100, Matthieu Herrb a écrit :
> > > Hi,
> > > 
> > > Waybar is a configurable status bar for wlroot based wayland composers.
> > > 
> > > This is a first pass to make a port of it. Many modules will not work
> > > or not be full functionnal under OpenBSD, as I've not tried yet to
> > > patch them to adapt to OpenBSD' network. battery or backlight status
> > > code for example.
> > 
> > it's in freebsd ports so maybe knowledge about what works/works not can
> > be taken there.
> > 
> > > If anyone want to help...
> > 
> > we'll look at h2k25, ideally i'd like to only ship plugins that are
> > known working fine...
> 
> after some testing, make update-patches complains about an empty etc/xdg
> dir in fake:
> 
> Can't put into any plist (no applicable prefix):
>         /etc/xdg
> 
> generally i silence that by post-install: rmdir ${WRKINST}/etc/xdg
> 
> at runtime, starting it from labwc so i can get stderr (didnt find how
> to do it from sway, or generally speaking how can one redirect all stderr to a
> file from a wayland session..), it properly shows mpd client info, volume 
> info,
> cpu/memory usage, free space for.. disk or memory, no idea, then time. when
> clicking on time it displays the current date.
> 
> [info] Using configuration file /etc/xdg/waybar/config.jsonc
> [info] Unable to receive desktop appearance: 
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name 
> org.freedesktop.portal.Desktop was not provided by any .service files
> [info] Using CSS file /etc/xdg/waybar/style.css
> [warning] module sway/workspaces: Disabling module "sway/workspaces", Socket 
> path is empty
> [warning] module sway/mode: Disabling module "sway/mode", Socket path is empty
> [warning] module sway/scratchpad: Disabling module "sway/scratchpad", Socket 
> path is empty
> [error] media stopped unexpectedly, is it endless?
> [warning] 'swap-icon-label' must be a bool.
> [warning] module sway/window: Disabling module "sway/window", Socket path is 
> empty
> [warning] module network: Unknown module: network
> [warning] module power-profiles-daemon: Unknown module: power-profiles-daemon
> [warning] module temperature: Disabling module "temperature", Can't open 
> /sys/class/thermal/thermal_zone0/temp
> [warning] module backlight: Disabling module "backlight", No backlight found
> [warning] module keyboard-state: Unknown module: keyboard-state
> [warning] module sway/language: Disabling module "sway/language", Socket path 
> is empty
> [warning] module battery: Unknown module: battery
> [warning] module battery#bat2: Unknown module: battery#bat2
> [warning] Error while creating the menu : Failed to expand file: 
> $HOME/.config/waybar/power_menu.xml. Menu popup not activated.
> [error] clock: argument not found
> [info] Bar configured (width: 1920, height: 30) for output: eDP-1
> [error] clock: argument not found
> [error] clock: argument not found
> 
> from those, i guess you can disable by default in the sampled config:
> - network
> - power-profiles
> - temperatur
> - backlight
> - keyboard-state (but would be nice to have for the keymap ?)
> - battery
> 
> when clicking on the volume icon, it seems pavucontrol is harcoded, so maybe
> RDEP on cmixer and launch it in a term ?
> 
> sh: pavucontrol: not found
> 
> and the 'clock: argument not found' line is printed every minute.

didn't figure this one out.
> 
> when clicking twice on the 'poweroff' button at the top right, it crashed
> because it tried to display an unexisting gtk widget:
> 
> #0  0x00000541e9753b3b in gtk_widget_show_all (widget=0xdfdfdfdfdfdfdfdf) at 
> ../gtk-3.24.51/gtk/gtkwidget.c:5022
> 
> Landry
> 

Here's a new version of the port which adresses some of the issues you
raised.

So far I miss a network indicator, but I guess we'll have to add an
OpenBSD specific pluging for this.


-- 
Matthieu Herrb

Attachment: waybar-2.tgz
Description: application/tar-gz

Reply via email to