From 23adbd2494b160da23f3bc80e9364f849be06f84 Mon Sep 17 00:00:00 2001 From: CratusGod <117301615+CratusGod@users.noreply.github.com> Date: Mon, 30 Nov 2026 03:23:24 +0700 Subject: [PATCH] lockscreens: world-machine 1.0.3, soundtrack plays at the login screen Co-Authored-By: Claude Opus 5.5 --- lockscreens/registry.json | 6 +++--- lockscreens/world-machine/PROVENANCE.txt | 5 +++-- lockscreens/world-machine/content/Main.qml | 15 ++++++++++++++- lockscreens/world-machine/manifest.json | 10 +++++----- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/lockscreens/registry.json b/lockscreens/registry.json index ae68c61f..bd128cd0 100644 --- a/lockscreens/registry.json +++ b/lockscreens/registry.json @@ -918,7 +918,7 @@ { "id": "world-machine", "name": "World Machine", - "version": "1.0.2", + "version": "1.0.3", "path": "lockscreens/world-machine", "author": "CratusGod", "upstream": "https://github.com/CratusGod/Oneshot-themed-Ryoku", @@ -937,9 +937,9 @@ "assets/preview.gif" ], "manifest": "manifest.json", - "manifestSha256": "9b8f74183de4546b61c8b3dcf0726757494ba39bc00bb42b49a197cbfc0f7fb9", + "manifestSha256": "4dd637ea29c1525ec5fbef3160049534c7234f1375a55af281e690d2e24152bf", "official": false, - "lastUpdated": "2026-10-21" + "lastUpdated": "2026-11-30" }, { "id": "wuwa", diff --git a/lockscreens/world-machine/PROVENANCE.txt b/lockscreens/world-machine/PROVENANCE.txt index a3c19a8a..127ad9ac 100644 --- a/lockscreens/world-machine/PROVENANCE.txt +++ b/lockscreens/world-machine/PROVENANCE.txt @@ -7,8 +7,9 @@ Derived from the Ryoku store's "last-of-us" lockscreen. License: GNU General Public License version 3; see LICENSE Changes: new OneShot palette and art, bundled Terminus font with outlined bold text, right-aligned layout, lightbulb avatar, a Num Lock indicator read from the -keyboard LED under /sys/class/leds, video audio played through AudioOutput, a -per-second clock, and a working wrong-password shake. +keyboard LED under /sys/class/leds, video audio played through AudioOutput +(following the default output, so the soundtrack starts once PipeWire comes up +at the login screen), a per-second clock, and a working wrong-password shake. Author of this theme: CratusGod Maintainer: CratusGod, https://github.com/CratusGod/Oneshot-themed-Ryoku diff --git a/lockscreens/world-machine/content/Main.qml b/lockscreens/world-machine/content/Main.qml index 40701ddf..966a69eb 100644 --- a/lockscreens/world-machine/content/Main.qml +++ b/lockscreens/world-machine/content/Main.qml @@ -165,14 +165,27 @@ Item { // Environment Rectangle { anchors.fill: parent; color: "#000000"; z: -2000 } + // The greeter socket-activates PipeWire for the sddm user, so when the theme + // loads only PipeWire's dummy sink exists and Qt reports "No audio device + // detected". Follow the default output so the soundtrack starts once + // WirePlumber publishes the real sinks a moment later. + QM.MediaDevices { id: mediaDevices } MediaPlayer { id: player source: "bg.mp4" videoOutput: bgVideo - audioOutput: QM.AudioOutput { volume: 0.6 } + audioOutput: QM.AudioOutput { + id: bgAudio + volume: 0.6 + device: mediaDevices.defaultAudioOutput + } loops: MediaPlayer.Infinite Component.onCompleted: player.play() } + Connections { + target: mediaDevices + function onAudioOutputsChanged() { bgAudio.device = mediaDevices.defaultAudioOutput } + } VideoOutput { id: bgVideo; anchors.fill: parent; fillMode: VideoOutput.PreserveAspectCrop; z: -1000 } Rectangle { diff --git a/lockscreens/world-machine/manifest.json b/lockscreens/world-machine/manifest.json index d7913bbc..a00a9e7c 100644 --- a/lockscreens/world-machine/manifest.json +++ b/lockscreens/world-machine/manifest.json @@ -2,7 +2,7 @@ "schema": 1, "id": "world-machine", "category": "lockscreens", - "version": "1.0.2", + "version": "1.0.3", "destination": "qylock/themes/world-machine", "files": [ { @@ -17,8 +17,8 @@ "source": "PROVENANCE.txt", "destination": "PROVENANCE.txt", "mode": "0644", - "size": 1707, - "sha256": "ca879d3a6ed107cdaa94c689187284c3ab9c59f9c3068316f0bf2e8b4e9698e2", + "size": 1807, + "sha256": "5606fbea514cca08909f90461b34a00c8994aba0b93451bf025fdb9f03b82eba", "install": true }, { @@ -33,8 +33,8 @@ "source": "content/Main.qml", "destination": "Main.qml", "mode": "0644", - "size": 33044, - "sha256": "e34acf835118850e233cd2e31e6908b74da321b8138691f03a51251cf59b2ddd", + "size": 33623, + "sha256": "dbc4532eeb9726a7910bc4e7acf49542d8d29c7a1134fa029aff36845e1a0ba1", "install": true }, {