Skip to content

Integrations: Status Bars

Youssef Fathy edited this page Oct 11, 2025 · 5 revisions

Waybar

demo.gif

Dependencies:

Add the following script to scripts directory in your Waybar configuration location:

#!/usr/bin/env bash
set -euo pipefail

# WARN: make sure go-pray is in your PATH
_text="$(go-pray next)"
_calendar="$(go-pray calendar)"
_class="$(cut -d' ' -f1 <<<"${_text}")"

jq \
  --null-input \
  --unbuffered \
  --compact-output \
  --arg class "${_class}" \
  --arg text "${_text}" \
  --arg calendar "${_calendar}" \
  '{ "text": "\($text)", "tooltip": "\($calendar)", "class": "\($class)" }'

Add and use the following module in your Waybar configuration:

"custom/go-pray": {
"interval": 60,
"return-type": "json",
"exec": "$HOME/.config/waybar/scripts/go-pray",
"format": "󱠧  {}",
}

Clone this wiki locally