diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-23 19:50:40 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-23 19:50:40 +0200 |
| commit | 923c0563f0389c4011c99b93a3edcfb09f5f3309 (patch) | |
| tree | 47a82512016b4d97ac48e81c74182d8d1defd0c3 /desktop/companion/Lines.js | |
| parent | 540aa76b6088025dfca284a731002cec6b6c607c (diff) | |
| download | quickshell-923c0563f0389c4011c99b93a3edcfb09f5f3309.tar.gz quickshell-923c0563f0389c4011c99b93a3edcfb09f5f3309.zip | |
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.
Diffstat (limited to 'desktop/companion/Lines.js')
| -rw-r--r-- | desktop/companion/Lines.js | 1 |
1 files changed, 1 insertions, 0 deletions
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."], |
