Dependencies:
jq
Add the following script to scripts directory in your Waybar configuration location:
scripts
#!/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": " {}", }
There was an error while loading. Please reload this page.