Add audio visualizer to LockScreen

This commit is contained in:
Ly-sec 2025-08-21 22:42:56 +02:00
parent 7c733b9f47
commit 6771248d29
4 changed files with 145 additions and 3 deletions

View file

@ -38,7 +38,8 @@ Singleton {
id: process
stdinEnabled: true
running: (Settings.data.audio.visualizerType !== "none") && (PanelService.sidePanel.active
|| Settings.data.audio.showMiniplayerCava)
|| Settings.data.audio.showMiniplayerCava
|| (PanelService.lockScreen && PanelService.lockScreen.active))
command: ["cava", "-p", "/dev/stdin"]
onExited: {
stdinEnabled = true

View file

@ -8,6 +8,9 @@ Singleton {
// A ref. to the sidePanel, so it's accessible from other services
property var sidePanel: null
// A ref. to the lockScreen, so it's accessible from other services
property var lockScreen: null
// Currently opened panel
property var openedPanel: null