Skip to content

Waybar & Clickable Workspaces

This rice features a fully clickable 12-tag pill in Waybar. Because Pinnacle uses a dwm-style tag system, Waybar's native ext-workspace activate only adds a tag to the view instead of switching. The fix: custom Waybar modules that call the compositor's gRPC API through pinnacle client -e.

The Lua 5.4 shim

Pinnacle's Lua API is installed for Lua 5.4 while the system lua is 5.5, so a shim at ~/.bin/lua execs /usr/bin/lua5.4.

The scripts

scripts/switch_tag.sh handles clicks: it finds the live Pinnacle PID, exports PINNACLE_GRPC_SOCKET, and runs Tag.get(n):switch_to().

scripts/tag_state.sh polls each tag and prints waybar JSON with an active class so the current tag renders as a filled amber button.

The styling

config.jsonc defines custom/tag1 through custom/tag12; style.css stitches them into one rounded pill with amber caps.