aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
14 hoursfeat(desktop): add the status singleton with the dnd modeDanilo M.2-0/+81
Modes live as files under XDG_RUNTIME_DIR, one per mode, holding 0 or 1, with a missing file meaning off. That directory is tmpfs, so a reboot resets every mode and no cleanup code is needed. FileView covers both directions: atomicWrites for the write, watchChanges for the watch, so an external writer repaints the drawer with no polling. Both are already the documented defaults in 0.3.1 and are set explicitly anyway, because statusctl watches close_write,moved_to precisely because an atomic write lands as a rename. A future release flipping either default would break the watcher with no error, and a declaration is a stronger guarantee than a default. The documented behaviour is that a FileView fires its own fileChanged on setText, so the reparse compares before assigning and a self-write is a no-op rather than a loop. That has not been observed running yet: nothing consumes the singleton until the status module exists, so the guard stays unproven until then. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A7ThHHh5iTYbVfp3rNAkw2
14 hoursdocs: add the status registry implementation planDanilo M.1-0/+1216
Eight tasks against the registry spec: the singleton with the dnd mode, the statusctl CLI and its check, naming the keepalive window, presentation mode and its three effects, the module and tile, the page and registration, installing the CLI and swapping the waybar module, then the README and traps. The plan carries the facts probed while designing so the implementer does not re-probe them: the runtime directory is tmpfs, elogind runs here with the pam caveat that stops it guaranteeing logout cleanup, the compositor advertises zwp_idle_inhibit_manager_v1, inotifywait is present, and Inconsolata Nerd Font lives under ~/.fonts rather than either share directory. That last one cost a failed cmap search that read as a missing glyph when it was a bad search path. Two claims stay marked unverified because they come from documentation and have not been observed running: that a FileView fires its own fileChanged on setText, and that IdleInhibitor does nothing without a non-null window. The plan handles both and tells the implementer to confirm them and record what actually happens. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A7ThHHh5iTYbVfp3rNAkw2
14 hoursdocs: record the scan, logind and idle-inhibit trapsDanilo M.1-0/+31
Four findings from designing the status registry, all runtime-verified. The scan one shipped as a fix in f43f31a: neither BluetoothAdapter.discovering nor WifiDevice.scannerEnabled self-terminates, and closing the drawer destroys the page without stopping them, so a forgotten scan held the radio for the session. The logind one corrects an assumption that reached a committed spec before it was caught. elogind does run here, with pam_elogind in the PAM stack and a tracked session on seat0. The narrower true caveat is that pam_elogind no-ops when the system was not booted with elogind as init, so its documented removal of XDG_RUNTIME_DIR at last logout is not guaranteed on Slackware; a reboot clears it anyway because /run/user/1000 is tmpfs. The two idle-inhibit entries record that the compositor advertises zwp_idle_inhibit_manager_v1 and hypridle honours it, so an inhibitor goes over Wayland rather than D-Bus, and that waybar's built-in idle_inhibitor owns its own inhibitor object and therefore cannot be demoted to an indicator for a mode owned elsewhere. Held back deliberately: FileView firing its own onFileChanged on setText, and IdleInhibitor requiring a non-null window. Both are read from the documentation and neither has been observed running, so they wait for the registry implementation to confirm them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A7ThHHh5iTYbVfp3rNAkw2
14 hoursdocs: add the status registry designDanilo M.1-0/+229
Desktop modes as state: do not disturb and presentation mode, with one place that owns them. First of two specs; the notification daemon that replaces dunst is the second and consumes the registry's dnd mode rather than owning it. The registry comes first because DND belongs to the desktop rather than to the notification daemon, and because the daemon is the larger and riskier component. The design that needed deciding was not the toggle but the coupling. Presentation mode sets DND, so DND has two writers, and turning presentation mode off has to restore what the user had rather than clearing it. That rule is why this is a registry and not two booleans. State is one file per mode in XDG_RUNTIME_DIR, matching the convention breaktimer already writes on this machine. That directory is /run/user/1000, a tmpfs, so a reboot clears every mode with no cleanup code. Logout without reboot is less certain and the design does not lean on it: elogind runs here and its pam module documents removing the runtime directory at last logout, but the same manual says the module does nothing when the system was not booted with elogind as init, which on Slackware it is not. If removal does not happen, a mode survives a logout, which is the same behaviour as surviving a shell restart. FileView covers both directions: atomicWrites for the write, watchChanges for the watch, no shell-out. External watchers need close_write,moved_to because an atomic write arrives as a rename, the same trap the mail watcher hit with Xapian. Confirmed while designing: the compositor advertises zwp_idle_inhibit_manager_v1 and waybar's built-in idle_inhibitor already drives it here, so the inhibitor is asserted over Wayland rather than D-Bus. That module is replaced rather than demoted, because it owns its inhibitor object and cannot display state owned by anything else; left alongside the registry it would assert a second inhibitor and idle would resume only when both released. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A7ThHHh5iTYbVfp3rNAkw2
15 hoursfix(desktop): stop bluetooth and wifi scans after 60sDanilo M.2-0/+20
Neither scan property self-terminates. BlueZ discovery runs until StartDiscovery is stopped, and the NetworkManager scanner repeats until disabled; the docs for both say as much and give no timeout or interval property. The scan button was the only writer of either property, and closing the drawer destroys the page without touching them, so a scan started and forgotten kept the radio busy for the rest of the session. Continuous wifi scanning also costs throughput on the connected link. Each page gets a Timer bound to the scan property rather than started by the button. Binding it that way means a manual stop cancels the clock, and reopening the page on a scan still running from an earlier visit re-arms a fresh 60s instead of leaving it running forever. Verified both files parse: the desktop shell hot-reloaded without dropping its process. The timeout firing at 60s is not verified here, since it needs a real scan on the radio. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A7ThHHh5iTYbVfp3rNAkw2
29 hoursfeat(desktop): show the module glyph in every page titleDanilo M.2-4/+27
Page.qml gains an icon rendered before the title, and the drawer binds it to the loaded module's icon so a module whose glyph changes (network follows the active link) keeps the header in step.
29 hoursfix(desktop): queue KDE Connect actions instead of interruptingDanilo M.3-8/+26
A second action while one was in flight killed the first process, whose onExited then fired under the new label and raised a false failure notification. Actions are now queued and launched on exit, so each exit reports under its own label. Also correct two comments that contradicted the code: the pairing banner is only noticed on the on-open poll, and the laptop glyph keys off the daemon's desktop type.
30 hoursfix(desktop): name the kdeconnect injected property kc, not modDanilo M.5-29/+36
The tile, page and row each took a required property named mod while the module object's id is also mod. In a Component scope the id resolves to the property's own unset self, so every page.mod read was undefined and the device list never rendered. Only a runtime TypeError showed it; the smoke check was clean because the drawer was closed. kc matches the net and bt convention and cannot collide with the id.
30 hoursdocs: record the KDE Connect trapsDanilo M.2-0/+20
No D-Bus module means shell-outs and no push; the daemon and the indicator are separate; the battery plugin is not on every device; and qdbus reads properties and methods through one call shape.
30 hoursdocs(desktop): document the kdeconnect moduleDanilo M.2-7/+53
Records that the phone-to-PC clipboard is the daemon's plugin and not the indicator's, so removing the indicator does not break it, and that polling stops when the drawer closes.
30 hoursfeat(desktop): share a file to a KDE Connect deviceDanilo M.2-0/+30
A QtQuick.Dialogs FileDialog held on the module, not the page, so a closed drawer does not destroy it mid-pick. The path is decoded from the file:// URL before it reaches kdeconnect-cli.
30 hoursfeat(desktop): KDE Connect pairingDanilo M.2-0/+54
Outgoing pair and unpair go through kdeconnect-cli; accepting and rejecting an incoming request go straight to the daemon, since the CLI has no verb for them. The verification key is shown on the row while a pairing is in flight so the two ends can be compared. An incoming request is not noticed while the drawer is closed, because the poll only runs when it is open; the daemon keeps the request, so it is there on the next open.
30 hoursfeat(desktop): KDE Connect device actionsDanilo M.1-0/+30
Ring, clipboard, mount and unpair, all shell-outs since there is no D-Bus module. Actions share one serialized Process and a failure notifies, for the case where the drawer has closed by the time the command returns. Mount runs --mount and then --get-mount-point in one shell, because --mount prints nothing and the path is a second call.
30 hoursfeat(desktop): KDE Connect module, tile and pageDanilo M.5-0/+359
State is polled from kdeconnect-state.sh because there is no D-Bus module to subscribe with. The poll runs only while the drawer is open: the tile is created when the panel loads and destroyed when it unloads, and it flips the module's polling flag. The laptop reports no battery plugin, so an absent charge is an empty field and renders as nothing, never as a zero.
30 hoursfeat(desktop): KDE Connect state scriptDanilo M.2-0/+218
Quickshell 0.3.1 has no generic D-Bus module, so device state comes from qdbus6 shell-outs. The script emits a tab line protocol for the QML side and is checked by a stub-daemon test, since the live daemon is not an oracle an agent can rely on. A failed daemon query exits non-zero with no output so the module keeps its last list, which is not the same as a valid empty device list.
30 hoursdocs: KDE Connect module design and planDanilo M.2-2/+1226
Absorbs the kdeconnect-indicator into the drawer: status, battery, pairing, ping, clipboard send, file share, refresh and mount. State is polled from a qdbus6 helper script while the drawer is open, since quickshell 0.3.1 has no generic D-Bus module. The spec notes the phone-to-PC clipboard is the daemon's plugin, not the indicator's, so removing the indicator does not touch it.
30 hoursdocs: KDE Connect state protocol carries the pair flagsDanilo M.1-8/+14
The pairing flow needs isPairRequested, isPairRequestedByPeer and the verification key, so the polled line carries them; the key is only queried with a pairing in flight. A failed daemon query is a non-zero exit with no output, which is how the module tells it apart from a valid empty list. Pairing failure comes from the kdeconnect-cli exit code, not the pairingFailed signal, since there is no generic D-Bus module to watch it.
30 hoursdocs: KDE Connect module designDanilo M.1-0/+217
Status plus basic actions, absorbed from the indicator. State comes from qdbus6 over kdeconnectd, since quickshell 0.3.1 has no generic DBus module. Polled while the drawer is open, driven by the tile lifecycle. Notes the indicator is not what serves the phone-to-PC clipboard, and the FileDialog focus risk under an Exclusive layer surface.
31 hoursdocs: hot reload does not pick up a new component fileDanilo M.1-0/+10
Adding desktop/Switch.qml while only editing files under modules/ left it out of the running shell's generated qmldir, so the two pages that use Switch could not resolve it and their tiles dropped from the grid. The code was correct; a fresh process rendered it. The directory's qmldir is regenerated only when a file that imports the directory reloads.
31 hoursfix(desktop): disable bluetooth switches until the adapter is upDanilo M.1-0/+2
31 hoursfeat(desktop): a theme-coloured SwitchDanilo M.3-2/+47
31 hourschore: ignore the local TODO.mdDanilo M.1-0/+1
31 hoursdocs: glyphs render with Theme.iconFamily, pinned to InconsolataDanilo M.1-0/+9
Fontconfig falls back per codepoint, so the same codepoint can be a different glyph in a different Nerd Font: the ethernet codepoint rendered as a gamepad. The theme now pins the family and the note says to check the font cmap for a new glyph.
31 hoursfeat(desktop): pin glyphs to Inconsolata Nerd FontDanilo M.8-11/+17
Glyphs are Nerd Font private-use codepoints, and relying on per-codepoint fontconfig fallback from Noto Sans let the same codepoint resolve to a different glyph in a different Nerd Font. A Theme.iconFamily now names the render family once, and every glyph Text uses it, while fontFamily stays Noto Sans for words and labels. The ethernet glyph moves from \uf6ff to \uef44, the fa-ethernet codepoint present in Inconsolata.
31 hoursfix(desktop): use the real ethernet glyph, not a gamepadDanilo M.1-1/+1
31 hoursdocs: the network tile is a globe and reads the local IPDanilo M.1-4/+13
The tile no longer swaps a wired/wifi icon, and the local IP comes from ip -j because Quickshell.Networking exposes only the MAC. Recorded in the spec so it matches the code.
31 hoursfeat(desktop): globe network tile with per-link IPsDanilo M.4-30/+122
35 hoursfix(desktop): wire tile active state and clear connect errorsDanilo M.8-10/+26
35 hoursdocs: record the network and bluetooth trapsDanilo M.2-0/+18
The native backends start empty for about two seconds, device lists are ObjectModels, NMSettings is not in QML scope, and quickshell has no BlueZ agent. Each one cost a probe to learn; writing them down is cheaper than re-learning them.
35 hoursdocs: correct three plan details found during executionDanilo M.1-14/+32
The Connections block needs a typed property on a QtObject, the bluetooth README lines belong to Task 6 so every commit stays self-consistent, and Pairing has no status property. Each was found by a task review and fixed in the plan as well as the code.
35 hoursdocs(desktop): document the bluetooth moduleDanilo M.2-6/+46
35 hoursfeat(desktop): pair bluetooth devicesDanilo M.3-0/+117
Quickshell has no BlueZ agent and no generic D-Bus module, so a pairing that needs a passkey confirmed cannot be done from QML. bluetoothctl registers its own agent, so pairing is the one shell-out; adapter state, scanning, connecting and forgetting all stay native. The timeout is the ceiling: a device bluetoothctl cannot auto-confirm fails visibly rather than hanging the page.
35 hoursfix(desktop): scale bluetooth battery to a percentageDanilo M.1-1/+1
35 hoursfeat(desktop): bluetooth module, tile and pageDanilo M.5-0/+295
Native Quickshell.Bluetooth for adapter power, discoverable, scan, connect, disconnect, trust and forget. Pairing is separate, because quickshell ships no BlueZ agent. The adapter is null for the first ~2s, so every access is navigated safely rather than assuming a first paint.
35 hoursdocs(desktop): keep the network module docs self-consistentDanilo M.2-11/+11
35 hoursdocs(desktop): document the network moduleDanilo M.2-1/+37
35 hoursfeat(desktop): network wifi pageDanilo M.2-1/+211
Radio switch, scan, and a list ordered connected, known, strongest. A secured unknown network reveals an inline password field rather than opening a popup, since a QtQuick.Controls popup is a separate window that positions badly on this layer surface, the same reason the sound page expands in place. Connection failures come through the Network.connectionFailed signal and show inline; the same failure also notifies, for the case where the drawer has closed by the time it lands.
35 hoursfeat(desktop): network module, live tile and wired pageDanilo M.4-0/+228
Wired first because it is the simpler half and proves the module wiring. Native Quickshell.Networking, no polling: the singletons push, and alwaysActive is true with no Service.qml because there is nothing to gate. The tile shows one line per active link rather than picking a primary, since the API exposes no route metric and guessing wrong would be worse than showing both.
35 hoursdocs: plan the network and bluetooth modulesDanilo M.2-5/+1350
Eight tasks, each leaving the tree working: network wired page, wifi section, README, bluetooth module and page, pairing, README, then the waybar removal and the trap notes. The spec's failure section is corrected in the same commit: it claimed forget and disconnect failures would surface inline, but neither backend exposes a failure signal for them, so that is a ceiling rather than a feature. Verified by probe before writing any task: the singletons start empty for about two seconds, the device lists are ObjectModels, signalStrength is 0..1, scanner and discovering are writable, and NMSettings is not in QML scope, which drops the hidden-network join the spec had left conditional.
36 hoursdocs: design for network and bluetooth modulesDanilo M.1-0/+160
Two drawer modules covering wired, wifi and bluetooth, using the native Quickshell.Networking and Quickshell.Bluetooth backends rather than nmcli or bluetoothctl. The one exception is pairing: quickshell ships no BlueZ agent and no generic D-Bus module, so a device needing passkey confirmation is paired through bluetoothctl, whose own agent handles it. The wifi module became Network so a connected eth0 does not mask the wifi state; the tile shows both links when both are up because the API exposes no route metric. Replaces waybar's network and bluetooth indicators, per the drawer being the single place they are managed.
36 hoursfeat(sound): switch default device, control the levelDanilo M.2-24/+179
The sound page showed the default sink and source but gave no way to choose another device and the meter was inert. Each section now lists the real audio devices, streams and monitor nodes filtered out, behind an in-place dropdown that sets Pipewire.preferredDefaultAudioSink or preferredDefaultAudioSource. The meter takes the wheel, click and drag, and the state glyph beside the percentage toggles mute. The list expands in place rather than in a popup because a QtQuick.Controls popup is a separate window and does not position reliably on a layer surface. The meter accepts the wheel and prevents stealing so the page's ScrollView neither scrolls nor flicks instead.
36 hoursfix(desktop): honest alwaysActive docs and working Escape in confirmDanilo M.7-41/+51
37 hoursdocs: correct drawer exit behaviour and dead module commandsDanilo M.4-26/+33
The README claimed a click outside returns to the grid; it closes the drawer, and only Escape-with-a-page or the back arrow return to the grid. The three moved module READMEs' run and IPC commands still named the deleted volume-osd, mail-overview and vm-manager paths, so point them at qs -p desktop and ipc call drawer open sound|mail|vm.
37 hoursdocs: the desktop shell and what the merge changedDanilo M.6-20/+180
Five components become three, and the Theme symlink count with them. Two new notes: a pragma Singleton in a subdirectory resolves through a plain directory import with no qmldir, and Virsh.sampling gates only the stats poll, not the lifecycle stream that keeps the tile correct while the page is closed.
37 hoursfeat(desktop): move vm-manager in as the vm moduleDanilo M.11-544/+457
Virsh.qml is unchanged; VmPanel's body becomes the page and the stat row becomes a Flow, because four stats with 150px bars do not fit a 600px drawer as one row. The page starts and stops Virsh.sampling, so the 2s poll runs only while something is looking at it; the lifecycle event stream still runs always, which is what keeps the tile's dots current.
37 hoursfix(desktop): start the mail Accounts singleton at shell launchDanilo M.1-0/+7
The singleton was referenced only inside lazy Components, so its qtmaildir.conf watcher and unread-count refresh did not start until the drawer first opened, contradicting alwaysActive and the old MailPanel, which shell.qml instantiated directly. Naming Accounts at the Module top level creates it at shell load; the page keeps its own refresh on open.
37 hoursfeat(desktop): move mail-overview in as the mail moduleDanilo M.12-331/+274
Accounts.qml is unchanged and MailPanel's body becomes the page. The three scripts move with it, which changes the absolute paths in autostart and in the waybar module; both are outside this repo and listed in the plan's final task. Button.qml, byte-identical here and in vm-manager, lands at the shell root as the single copy.
37 hoursfeat(desktop): move volume-osd in as the sound moduleDanilo M.10-126/+346
VolumeOsd.qml did three jobs in one file: PipeWire tracking, the OSD surface and the player transport. They become Service, Osd and the page. The OSD keeps its namespace so the existing Hyprland blur rule still matches, and the service stays always-active because the OSD has to answer a keypress with no drawer open.
37 hoursfeat(desktop): the appearance tileDanilo M.2-1/+39
A tile with no page: appearance stays its own process because a wallpaper picker needs more room than a 600px drawer, so the tile only fires its existing IPC. This is the case the contract's activate() exists for.
37 hoursdocs: correct the plan's no-arg ipc open and the head pipeDanilo M.1-6/+20
Quickshell 0.3.1 IPC requires every declared argument, so the plan's `ipc call drawer open` with no page fails; the page-less grid entry is the zero-argument `toggle`. Also records that `... | head` races timeout and kills the shell early, so verification uses a file redirect.