aboutsummaryrefslogtreecommitdiffstats
path: root/volume-osd/shell.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-11 15:48:27 +0200
committerDanilo M. <danix@danix.xyz>2026-09-11 15:48:27 +0200
commit18fd64134f51ec99b123c91f79790c12ad5e1bb4 (patch)
tree32110d27fe7c944b31535a70a01fa152bd9014da /volume-osd/shell.qml
downloadquickshell-18fd64134f51ec99b123c91f79790c12ad5e1bb4.tar.gz
quickshell-18fd64134f51ec99b123c91f79790c12ad5e1bb4.zip
feat: quickshell repo with volume OSD
Scaffold the repo that will hold quickshell implementations, each in its own directory with its own README, and add the first one. volume-osd shows an on-screen display for output and input volume. It watches PipeWire through Quickshell's native service rather than polling wpctl, so it appears for any volume change, not only for the keybinds: pavucontrol, a per-application slider, or a phone acting as a remote. One widget serves both directions, showing whichever device moved last. Colours follow unified-desktop-theme: Catppuccin Macchiato fixed, with the accent read from the file udt-accent already writes and watched, so it tracks the wallpaper. Lavender is the fallback, which keeps the directory runnable where that file does not exist. The frosting is the compositor's: the panel draws translucent and Hyprland blurs behind it via a layerrule matched on the window's namespace. That avoids a MultiEffect and an offscreen blur pass in QML, and degrades to flat translucent without the rule. Two details are documented in the component README because both were wrong before they were right: PwObjectTracker is required or the volume reads stale, and a node reports its initial volume before `ready` goes true, so the ready check alone suppresses the startup values. An extra guard on top of it ate the user's first keypress instead. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7NRsGyF9jGfPYS4zPqpN7
Diffstat (limited to 'volume-osd/shell.qml')
-rw-r--r--volume-osd/shell.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/volume-osd/shell.qml b/volume-osd/shell.qml
new file mode 100644
index 0000000..dbbd96f
--- /dev/null
+++ b/volume-osd/shell.qml
@@ -0,0 +1,16 @@
+// Copyright (C) 2026 Danilo M. <danix@danix.xyz>
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License version 2 as
+// published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+import Quickshell
+
+ShellRoot {
+ VolumeOsd {}
+}