configs are here

This commit is contained in:
2025-07-23 19:10:20 +01:00
parent 94ad864303
commit df2a697a9b
23 changed files with 1251 additions and 2 deletions

47
quickshell_/Audio.qml Normal file
View File

@@ -0,0 +1,47 @@
import Quickshell
import Quickshell.Io
import QtQuick
import QtQuick.Layouts
import Quickshell.Widgets
import Quickshell.Services.Pipewire
Item {
id: root
property PwNode speakerNode: Pipewire.defaultAudioSink
property PwNode microphoneNode: Pipewire.defaultAudioSource
PwObjectTracker { objects: [ root.microphoneNode, root.speakerNode ] }
width: row.width
height: row.height
// console.log("a");
RowLayout {
id: row
IconImage {
// anchors.centerIn: parent
implicitSize: 27
source: "root:Speaker.svg"
}
Text {
id: text
text: root.speakerNode.audio.muted ? "0%" : root.speakerNode.audio.volume * 100 + "%"
font.pointSize: 10.75
color: root.speakerNode.audio.muted ? "red" : "#FFFFFF"
}
IconImage {
implicitSize: 26
source: "root:Mic.svg"
}
Text {
text: parseInt(root.microphoneNode.audio.muted ? "0" : root.microphoneNode.audio.volume * 100) + "%"
font.pointSize: 10.75
color: root.microphoneNode.audio.muted ? "red" : "#FFFFFF"
}
}
}