mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2025-12-06 06:36:15 +00:00
CavaService improvements
- bring back autosens for better visualization at low volume input - enable Cava process as long as we have a visualizer and the sidePanel is open, this helps capture audio when there is no active mpris player (ex: mpv, game audio, etc...)
This commit is contained in:
@@ -3,6 +3,7 @@ pragma Singleton
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import qs.Commons
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
@@ -14,9 +15,8 @@ Singleton {
|
||||
"general": {
|
||||
"bars": barsCount,
|
||||
"framerate": 60,
|
||||
"autosens": 0,
|
||||
"overshoot": 0,
|
||||
"sensitivity": 200,
|
||||
"autosens": 1,
|
||||
"sensitivity": 100,
|
||||
"lower_cutoff_freq": 50,
|
||||
"higher_cutoff_freq": 12000
|
||||
},
|
||||
@@ -37,7 +37,7 @@ Singleton {
|
||||
Process {
|
||||
id: process
|
||||
stdinEnabled: true
|
||||
running: MediaService.isPlaying
|
||||
running: (Settings.data.audio.visualizerType !== "none") && PanelService.sidePanel.isLoaded
|
||||
command: ["cava", "-p", "/dev/stdin"]
|
||||
onExited: {
|
||||
stdinEnabled = true
|
||||
|
||||
@@ -5,5 +5,8 @@ import Quickshell
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
// Currently opened panel
|
||||
property var openedPanel: null
|
||||
|
||||
property var sidePanel: null
|
||||
}
|
||||
|
||||
@@ -63,6 +63,9 @@ ShellRoot {
|
||||
IPCManager {}
|
||||
|
||||
Component.onCompleted: {
|
||||
// Save a ref. to our sidePanel so we can access it from services
|
||||
PanelService.sidePanel = sidePanel
|
||||
|
||||
// Ensure our singleton is created as soon as possible so we start fetching weather asap
|
||||
LocationService.init()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user