diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2026-01-14 14:47:59 -0500 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2026-01-14 14:47:59 -0500 |
| commit | 2c6ae8a4287ffad33a8c41b08ef47b62494a67dd (patch) | |
| tree | 96d6204a3591db301f618ec1a6a8e157087f311d /.config/quickshell/Volume.qml | |
| parent | 116f27ebb1340044139779a47b54e6b099bb7caa (diff) | |
Add quickshell config
Diffstat (limited to '.config/quickshell/Volume.qml')
| -rw-r--r-- | .config/quickshell/Volume.qml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.config/quickshell/Volume.qml b/.config/quickshell/Volume.qml new file mode 100644 index 0000000..875f1c9 --- /dev/null +++ b/.config/quickshell/Volume.qml @@ -0,0 +1,22 @@ +pragma Singleton + +import QtQuick +import Quickshell +import Quickshell.Services.Pipewire + +Singleton { + id: root + property int volume + + PwObjectTracker { + objects: [ Pipewire.defaultAudioSink ] + } + + Connections { + target: Pipewire.defaultAudioSink?.audio + + function onVolumeChanged() { + root.volume = Math.round(Pipewire.defaultAudioSink?.audio.volume * 100) + } + } +} |
