me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

1pragma Singleton 2 3import QtQuick 4import Quickshell 5import Quickshell.Io 6 7QtObject { 8 readonly property int brightness: _brightness 9 10 property int _brightness: 0 11 12 property var _proc: Process { 13 command: ["sh", "-c", "brightnessctl -m | cut -d, -f4 | tr -d '%'"] 14 stdout: SplitParser { 15 onRead: data => { 16 if (!data) return 17 _brightness = parseInt(data.trim()) || 0 18 } 19 } 20 Component.onCompleted: running = true 21 } 22 23 property var _timer: Timer { 24 interval: 2000 25 running: true 26 repeat: true 27 onTriggered: _proc.running = true 28 } 29}