From 53008538e5bef961e9ceb5abc5c5ee05a559e97d Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Thu, 15 Jan 2026 16:53:43 -0500 Subject: update qs config --- .config/quickshell/Services/Brightness.qml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .config/quickshell/Services/Brightness.qml (limited to '.config/quickshell/Services/Brightness.qml') diff --git a/.config/quickshell/Services/Brightness.qml b/.config/quickshell/Services/Brightness.qml new file mode 100644 index 0000000..80a8d1f --- /dev/null +++ b/.config/quickshell/Services/Brightness.qml @@ -0,0 +1,18 @@ +pragma Singleton + +import Quickshell +import Quickshell.Io +import QtQuick + +Singleton { + id: root + property int brightness + + Process { + command: ["brightctl", "-l"] + running: true + stdout: SplitParser { + onRead: line => root.brightness = parseInt(line) + } + } +} -- cgit v1.2.3