From 6fdb31d538269136415ce71cbf58de6017f95463 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 19 Oct 2026 19:12:05 +0200 Subject: Add the PyQt6 GUI: Dashboard, Jobs, VM control, notifications All VM access goes through remote.py (ssh with a shared ControlMaster, local virsh). The main window polls jobs, backs off while ssh is down, checks the libvirt domain and offers Start or Resume, and sends freedesktop notifications when a job ends or the VM comes up. The Jobs tab streams a job's log with job-follow and resumes at the last offset after a drop. Config is TOML, validated against built-in defaults. Co-Authored-By: Claude Opus 5.5 --- config.example.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 config.example.toml (limited to 'config.example.toml') diff --git a/config.example.toml b/config.example.toml new file mode 100644 index 0000000..22afaec --- /dev/null +++ b/config.example.toml @@ -0,0 +1,19 @@ +# sb-builder GUI config: ~/.config/sb-builder/config.toml +# Every key is optional; these are the defaults. + +[remote] +target = "buildsystem" # any ssh destination: host alias, user@host +ssh_options = [] # extra ssh args, e.g. ["-p", "2222"] + +[refresh] +dashboard = 30 # seconds, while the Dashboard tab is visible +jobs = 5 # seconds; doubles up to 30 while the VM is down + +[notify] +enabled = true +events = ["finished", "failed", "killed", "lost", "vm-up"] + +[vm] +libvirt_uri = "qemu:///system" +domain = "buildsystem" # libvirt domain of the VM; "" disables VM control +autostart = false # true: start the VM without asking when it is off -- cgit v1.2.3