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

Anubis works

That meme is not an understatement, Anubis has been deployed by the United Nations. For your amusement, here is how the inner monologue of me finding out about this went: AoiWhat. You can't be serious, can you?CadeyIt's real.…

via Xe Iaso's blog April 12, 2025

A Firefox addon for putting prices into perspective

I had a fun idea for a small project this weekend, and so I quickly put it together over the couple of days. The result is Price Perspective. Humor me: have you ever bought something, considered the price, and wondered how that price would look to someone el…

via Drew DeVault's blog April 4, 2025

I don't really like OIDC

I will look into this single sign-on protocol and figure out why it is so darn complicated.

via Ξ January 7, 2025

Announcing systemd v257

Last week we released systemd v257 into the wild. In the weeks leading up to this release (and the week after) I have posted a series of serieses of posts to Mastodon about key new features in this release, under the #systemd257 hash tag. In case you aren'…

via Pid Eins December 17, 2024

Generated by openring