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

Final Fantasy 14 on macOS with a 36 key keyboard

Saving Eorzea with as few keys as possible

via Xe Iaso's blog August 24, 2025

Embedding Wren in Hare

I’ve been on the lookout for a scripting language which can be neatly embedded into Hare programs. Perhaps the obvious candidate is Lua – but I’m not particularly enthusiastic about it. When I was evaluating the landscape of tools which are “like Lua, but no…

via Drew DeVault's blog August 20, 2025

What is HDR, really?

HDR is about having more details in shadows and highlights. A higher dynamic range is one piece of the puzzle, but not all of it.

via Ξ July 18, 2025

ASG! 2025 CfP Closes Tomorrow!

The All Systems Go! 2025 Call for Participation Closes Tomorrow! The Call for Participation (CFP) for All Systems Go! 2025 will close tomorrow, on 13th of June! We’d like to invite you to submit your proposals for consideration to the CFP submission site quick…

via Pid Eins June 12, 2025

Generated by openring