feat: Add music and sysinfo to top bar (togglable) - also a bunch of misc fixes
This commit is contained in:
parent
e1caf737fe
commit
b4697235c0
29 changed files with 795 additions and 399 deletions
|
|
@ -2,11 +2,13 @@ import QtQuick
|
|||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import qs.Components
|
||||
import qs.Services
|
||||
|
||||
Scope {
|
||||
id: root
|
||||
property int count: 32
|
||||
property int noiseReduction: 60
|
||||
property bool cavaRunning: false
|
||||
property string channels: "mono" // or stereo
|
||||
property string monoOption: "average" // or left or right
|
||||
property var config: ({
|
||||
|
|
@ -21,15 +23,11 @@ Scope {
|
|||
})
|
||||
property var values: Array(count).fill(0) // 0 <= value <= 1
|
||||
|
||||
onConfigChanged: {
|
||||
process.running = false
|
||||
process.running = true
|
||||
}
|
||||
|
||||
Process {
|
||||
property int index: 0
|
||||
id: process
|
||||
stdinEnabled: true
|
||||
running: MusicManager.isPlaying
|
||||
command: ["cava", "-p", "/dev/stdin"]
|
||||
onExited: { stdinEnabled = true; index = 0 }
|
||||
onStarted: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue