Overlay Bar for Sway

SergeantBiggs

linuxarchlinuxswaytechnology

234 Words

2022-09-21 13:49 +0000


I recently found out about a cool software that I hadn’t heard of until now. It is right up my alley, and I wanted to write this short post to gush about it for a bit.

The program is called Wayland Overlay Bar (wob). It can be used to create simple progress/status bars for programs. The nice thing about it, is that it just takes an integer on a named pipe, and displays the value of that integer as a graphical bar.

Installation and configuration is very simple. After installing the program, you can create a named pipe, and connect that pipe to the stdin of wob:

mkfifo /tmp/wobpipe
tail -f /tmp/wobpipe | wob

For convenience, wob also provides a systemd socket file. The command below creates a wob pipe under $XDG_RUNTIME_DIR/wob.socket that is accessible to the current user.

systemctl --user enable wob.socket --now

I mainly use it for volume and brightness control. To make it work in sway, only a slight modification of my commands was necessary:

set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock

bindsym XF86AudioLowerVolume exec pamixer --decrease 5 && pamixer --get-volume > $WOBSOCK
bindsym XF86AudioRaiseVolume exec pamixer --increase 5 && pamixer --get-volume > $WOBSOCK
bindsym XF86MonBrightnessDown exec xbacklight -dec 5 && xbacklight -get > $WOBSOCK
bindsym XF86MonBrightnessUp exec xbacklight -inc 5 && xbacklight -get > $WOBSOCK

I love the simplicity and flexibility of this program. I really see myself using this often in the future.

Articles from blogs I read

Claude Code won April Fools Day this year

They gave people a heckin tamagochi, what's not to like?

via Xe Iaso's blog April 1, 2026

tar: a slop-free alternative to rsync

So apparently rsync is slop now. When I heard, I wanted to drop a quick note on my blog to give an alternative: tar. It doesn’t do everything that rsync does, in particular identifying and skipping up-to-date files, but tar + ssh can definitely accomodate th…

via Drew DeVault's blog March 28, 2026

Mastodon Stories for systemd v260

On March 17 we released systemd v260 into the wild. In the weeks leading up to that release (and since then) I have posted a series of serieses of posts to Mastodon about key new features in this release, under the #systemd260 hash tag. In case you aren't …

via Pid Eins March 27, 2026

What happens if we represent unix time as floats?

When evaluating the performance of some software component, I want to get high precision. But when I talk about millions of years in the future, I don't care about the exact second.

via Ξ January 16, 2026

Generated by openring