aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/companion/Companion.qml
AgeCommit message (Collapse)AuthorFilesLines
28 hourscompanion: blushes at a listed wallpaper on an empty workspaceDanilo M.1-2/+26
Checked on switching workspace or closing a window, and whenever she stops being away, which covers being shown, a remap, a hop to another monitor, a dodge and fullscreen. The 3 minute cooldown keeps workspace flicking from repeating it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 hourscompanion: a remark for the program in front of herDanilo M.1-0/+10
The focused window's class, from Hyprland's activewindow event, picks a line from Lines.js keyed app:<class>. The event fires on every title change too, so she reacts only when the class changes, and a third of the time, under the existing 30 s line cooldown so alt-tabbing does not make her chatter. Classes come from the window rules in the live config; one without lines says nothing. Lines only, no frames of her own yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 hourscompanion: shown or hidden survives a restart, with a settings switchDanilo M.1-19/+17
SUPER+\ only flipped a property, so every restart of the desktop shell brought her back. Whether she is shown is now `companion` in Prefs.qml, set by the IPC and by a switch on a new Settings > Desktop > Companion page. Prefs gains `ready`, so she waits for the file rather than showing at the default and then vanishing; the greeting now plays on every appearance, the one at login included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 hourscompanion: idle in step with wscreensavers, and despite No lockDanilo M.1-7/+27
Her stages sat at 1, 3 and 5 minutes, and the saver starts at 5, so she lay down under it. They are now 20, 40 and 70% of wscreensavers' idleTimeoutMinutes, read live from its config: 1, 2 and 3.5 minutes at its default. She never idled at all while No lock was on: it holds an idle inhibitor and her monitors respected inhibitors. Measured with a throwaway shell, a 5 s monitor respecting them never fired while one ignoring them did. They now ignore inhibitors, as the saver does, and presentation and gaming mode keep her awake by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 hourscompanion: above every overlay that opens, with a hop back inDanilo M.1-13/+14
Remapping only when the assistant opened left her under rofi and the keybind reminder, which map on the same Overlay layer later. She now remaps on Hyprland's openlayer event for any namespace but her own, restarting the timer so a burst of openings ends with her on top. The bare remap read as a flicker. Unmapped she now counts as away, so her figure drops out unseen during the 400 ms and plays its entrance when she is back: a vanish and a hop in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 hourscompanion: above the assistant's dim, and typing means a run of keysDanilo M.1-2/+23
The assistant canvas is a full-screen Overlay surface mapped on open, so it covered her and her think and wave were never seen. She moves to the Overlay layer and unmaps and maps again when the canvas opens, since a later surface stacks above an earlier one and Hyprland 0.56.2 has no layer rule to order them: an `order` key was tried, raised no config error, and did nothing. Every key sent her into watching, a shortcut included. The pulse comes at most once a second, so a lone key is one pulse; she now watches from the second pulse within 2.5 s. The hypr-theme hook drops modifiers and chords on its side. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 hourscompanion: shoved for a moment, then mad beside the balloonDanilo M.1-1/+6
The shoved frame held for as long as a balloon stayed, which read as her stumbling for ten seconds. It now lasts T.shoveHold (1.2 s), then she is mad beside the balloon until it goes. shovedAt is reset to 0 when the shove ends and 0 reads as the shove's first instant, so the binding cannot show mad for a tick before the handler stamps the time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 hourscompanion: the window, her inputs and her drawingDanilo M.1-0/+369
Companion.qml is a Top-layer PanelWindow bottom-right of the focused monitor, masked to her body so every other click passes through. It gathers the inputs (Hyprland's custom typing and delete events, the assistant's state and replied signal, the balloons on her screen, three IdleMonitors, clicks and a hover), hands a snapshot to Mood.js, and speaks from Lines.js. Figure.qml crossfades frames, bobs, drops out of view and back, and plays the self-destruct. Figure.qml was planned as Sprite.qml, but QtQuick ships a Sprite type and an explicit import beats the directory's own file: the shell failed to load with "Cannot assign to non-existent property onSettled". Maximised windows report fullscreen 1 and most windows here are, so only 2 hides her. She only feels the pointer once it is on her, so the dodge waits 0.6 s and a quick click still lands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>