From 923c0563f0389c4011c99b93a3edcfb09f5f3309 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 23 Oct 2026 19:50:40 +0200 Subject: companion: sing when the Sony headphones connect She now reacts to the headphones connecting with a short singing pose: eyes shut, blindfold gone, mouth wide open, headphones on, a few musical notes. The frames are new klein edits in frames.txt (dress/sing from dress/base, leotard/sing from dress/sing), so a post-self-destruct sing has its own art. Detection is the island's rule (StatusPill.qml): by model prefix, since BlueZ gives no class that says "headphones". The device's BlueZ Name is WH-CH720N, which the alias does not affect. The reaction is a one-shot hold in Mood.js (singHold, 4 s), placed after wave like the other event reactions. A 4 s startup grace keeps a shell start with the headphones already on from counting as a connection, since Bluetooth reads empty for about 2 s. --- desktop/companion/Lines.js | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop/companion/Lines.js') diff --git a/desktop/companion/Lines.js b/desktop/companion/Lines.js index 6609315..5e1d2db 100644 --- a/desktop/companion/Lines.js +++ b/desktop/companion/Lines.js @@ -23,6 +23,7 @@ var lines = { mock: ["Typo again?", "Delete, delete, delete.", "Were you aiming for that key?"], shoved: ["Hey.", "Rude.", "I was standing here."], ready: ["Answer's ready.", "Your reply came in."], + headphones: ["...Good song.", "Music. Finally.", "I'll allow this one.", "Louder."], click: ["...Yes?", "Can I help you?"], blush: ["S-stop that.", "...Operator."], wallpaper: ["...!", "W-what is this?", "I wasn't staring."], -- cgit v1.2.3