mirror of
https://git.pumpin.online/funkpower/menologion.git
synced 2026-10-22 18:57:14 +00:00
`import qs.horologion.modules` was the README's headline instruction and it
fails outright: Quickshell resolves `qs` against the host config root, not
the subtree, so in an empty shell the type is unavailable and in a populated
one the widget would have silently bound to the host's Config and Theme
instead of its own. The imports inside are now relative and each directory
carries a qmldir, so `import "horologion/modules"` works in any host and the
three pieces really are usable on their own.
- refresh() dropped a request made while a run was in flight, so a
jurisdiction or date set a moment after startup never took effect until
midnight. It queues now.
- The waybar script exited non-zero on its error paths, and waybar hides a
module whose script does that -- so a missing typikon made the module
vanish rather than say so, and the .error CSS was dead. An unrecognised
--format field raised instead of rendering empty, and the tooltip
interpolated unescaped text into Pango markup, which matters because
--update-menaion fetches commemorations from a page nobody here controls.
- The installer aborted the whole run at the point where it printed
'leaving it alone', and a wholly successful run exited 1 because the last
statement was a failed [ -d ] test under set -e. --help demanded typikon,
which is what --help would have told you to install.
- eww painted every day with the feast colour and printed a dangling
separator, because it compares against "" and eww renders a JSON null as
the string "null". The parenthesised ?: form two lines away was already
right. The week list also repeated today.
pip install typikon installed nothing; there is no such package, and that was
the first line of every install path. Pascha now carries its label instead of
being a bare ISO date in a corner.
tests/smoke.sh covers the scripts, which is where all of this lived and where
nothing was covered. It caught two of these while being written.
64 lines
2.0 KiB
QML
64 lines
2.0 KiB
QML
//@ pragma UseQApplication
|
|
|
|
// A harness for taking the README screenshots: the real widget, on a plain
|
|
// backdrop, at a known position. Not part of the shell -- run it with
|
|
//
|
|
// SHOT_JURISDICTION=rocor SHOT_DATE=2027-01-07 quickshell -p quickshell/shot.qml
|
|
//
|
|
// It sits on the overlay layer at a fixed offset so a screen grab of that
|
|
// rectangle is always the widget and never whatever was behind it.
|
|
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
import "."
|
|
import "modules"
|
|
import "services"
|
|
|
|
ShellRoot {
|
|
PanelWindow {
|
|
id: win
|
|
screen: Quickshell.screens[0]
|
|
|
|
WlrLayershell.layer: WlrLayer.Overlay
|
|
WlrLayershell.namespace: "horologion-shot"
|
|
exclusionMode: ExclusionMode.Ignore
|
|
color: "transparent"
|
|
|
|
anchors { top: true; left: true }
|
|
margins { top: 60; left: 60 }
|
|
|
|
// Fixed, so a screen grab of exactly this rectangle is exactly this
|
|
// window and never the desktop underneath it. The widget is shorter
|
|
// than this; the crop takes care of the difference.
|
|
implicitWidth: Config.width + 68
|
|
implicitHeight: 700
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
gradient: Gradient {
|
|
GradientStop { position: 0.0; color: "#1b2016" }
|
|
GradientStop { position: 1.0; color: "#0e100c" }
|
|
}
|
|
|
|
ColumnLayout {
|
|
id: body
|
|
anchors.top: parent.top
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.topMargin: 34
|
|
width: Config.width
|
|
|
|
Horologion {
|
|
Component.onCompleted: {
|
|
const j = Quickshell.env("SHOT_JURISDICTION");
|
|
const d = Quickshell.env("SHOT_DATE");
|
|
if (j && j !== "") Typikon.jurisdiction = j;
|
|
if (d && d !== "") Typikon.forDate = d;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|