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/Battery.qml | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .config/quickshell/Battery.qml (limited to '.config/quickshell/Battery.qml') diff --git a/.config/quickshell/Battery.qml b/.config/quickshell/Battery.qml deleted file mode 100644 index 0d6213c..0000000 --- a/.config/quickshell/Battery.qml +++ /dev/null @@ -1,33 +0,0 @@ -pragma Singleton - -import Quickshell -import Quickshell.Io -import QtQuick - -Singleton { - id: root - property string status: "Discharging" - property int capacity: 0 - - FileView { - id: statusFile - path: "/sys/class/power_supply/BAT0/status" - onLoaded: root.status = this.text().trim() - } - - FileView { - id: capacityFile - path: "/sys/class/power_supply/BAT0/capacity" - onLoaded: root.capacity = parseInt(this.text().trim()) - } - - Timer { - interval: 10000 - running: true - repeat: true - onTriggered: { - statusFile.reload() - capacityFile.reload() - } - } -} -- cgit v1.2.3