mirror of
https://git.pumpin.online/funkpower/menologion.git
synced 2026-10-22 18:57:14 +00:00
horologion was the wrong book
The Horologion is the Book of Hours: the fixed portions of the services themselves. This shows the day's commemorations, its fast and its season, which is a Menologion. Naming it for a book whose contents it does not carry was a real error and worth the churn to correct. typikon already uses the word internally, for menologion.py and the data file it loads. That is not a collision: typikon provides a menologion, this displays one. Renamed throughout, not just the repo: the two scripts, the QML component and its three qmldir modules, MENOLOGION_COLORS, ~/.config/menologion/colors.json, the eww widgets and scss variables, the waybar class. Verified standalone and embedded in a foreign shell, and the smoke suite still passes. Also drops the em dashes from the prose.
This commit is contained in:
@@ -9,12 +9,12 @@ binhome="${HOME}/.local/bin"
|
||||
|
||||
usage() {
|
||||
cat <<USAGE
|
||||
horologion-install [quickshell|waybar|eww|bin|all]
|
||||
menologion-install [quickshell|waybar|eww|bin|all]
|
||||
|
||||
quickshell link quickshell/ into a quickshell config as horologion/
|
||||
quickshell link quickshell/ into a quickshell config as menologion/
|
||||
waybar link the bar script and print the module to merge
|
||||
eww link eww/ into your eww config
|
||||
bin link horologion-waybar into ~/.local/bin
|
||||
bin link menologion-waybar into ~/.local/bin
|
||||
all bin + whichever of the three are already configured
|
||||
|
||||
USAGE
|
||||
@@ -37,7 +37,7 @@ link() {
|
||||
}
|
||||
|
||||
do_bin() {
|
||||
link "$src/bin/horologion-waybar" "$binhome/horologion-waybar"
|
||||
link "$src/bin/menologion-waybar" "$binhome/menologion-waybar"
|
||||
case ":$PATH:" in
|
||||
*":$binhome:"*) ;;
|
||||
*) echo " note: $binhome is not on your PATH" >&2 ;;
|
||||
@@ -45,43 +45,43 @@ do_bin() {
|
||||
}
|
||||
|
||||
do_quickshell() {
|
||||
link "$src/quickshell" "$config/quickshell/horologion"
|
||||
link "$src/quickshell" "$config/quickshell/menologion"
|
||||
cat <<'NOTE'
|
||||
|
||||
Add to your shell.qml:
|
||||
|
||||
import qs.horologion.modules
|
||||
import qs.menologion.modules
|
||||
...
|
||||
Horologion {}
|
||||
Menologion {}
|
||||
|
||||
Or run it on its own:
|
||||
|
||||
quickshell -p ~/.config/quickshell/horologion/shell.qml
|
||||
quickshell -p ~/.config/quickshell/menologion/shell.qml
|
||||
NOTE
|
||||
}
|
||||
|
||||
do_waybar() {
|
||||
link "$src/waybar/style.css" "$config/waybar/horologion.css"
|
||||
link "$src/waybar/style.css" "$config/waybar/menologion.css"
|
||||
cat <<'NOTE'
|
||||
|
||||
Add "custom/typikon" to a modules list, merge waybar/config.jsonc into
|
||||
your config, and @import "horologion.css" from your style.css.
|
||||
your config, and @import "menologion.css" from your style.css.
|
||||
NOTE
|
||||
}
|
||||
|
||||
do_eww() {
|
||||
link "$src/eww" "$config/eww/horologion"
|
||||
link "$src/eww" "$config/eww/menologion"
|
||||
cat <<'NOTE'
|
||||
|
||||
Add to your eww.yuck: (include "horologion/horologion.yuck")
|
||||
Add to your eww.scss: @import "horologion/horologion.scss";
|
||||
Then put (horologion) in a window, or (horologion-bar) in a bar.
|
||||
Add to your eww.yuck: (include "menologion/menologion.yuck")
|
||||
Add to your eww.scss: @import "menologion/menologion.scss";
|
||||
Then put (menologion) in a window, or (menologion-bar) in a bar.
|
||||
NOTE
|
||||
}
|
||||
|
||||
require_typikon() {
|
||||
command -v typikon >/dev/null 2>&1 && return 0
|
||||
echo "horologion: typikon is not on PATH." >&2
|
||||
echo "menologion: typikon is not on PATH." >&2
|
||||
echo " pipx install git+https://git.pumpin.online/funkpower/typikon" >&2
|
||||
exit 1
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
"""waybar custom module — the liturgical day in the bar.
|
||||
|
||||
"custom/typikon": {
|
||||
"exec": "horologion-waybar",
|
||||
"exec": "menologion-waybar",
|
||||
"return-type": "json",
|
||||
"interval": 1800,
|
||||
"on-click": "typikon --days 7"
|
||||
Reference in New Issue
Block a user