per-group borders, workspace hover, battery notifications, richer network tooltip

This commit is contained in:
Damocles 2026-04-12 16:32:33 +02:00
parent b8ec39f2c9
commit 0eda2c71c9
7 changed files with 69 additions and 16 deletions

View file

@ -1,4 +1,5 @@
import QtQuick
import Quickshell.Io
import Quickshell.Services.UPower
import "." as M
@ -21,6 +22,25 @@ M.BarSection {
Behavior on _stateColor { ColorAnimation { duration: 300 } }
property bool _warnSent: false
property bool _critSent: false
onChargingChanged: { _warnSent = false; _critSent = false; }
onPctChanged: {
if (charging) return;
if (pct < 15 && !_critSent) {
_critSent = true; _warnSent = true;
_notif.command = ["notify-send", "--urgency=critical", "--icon=battery-low", "--category=device", "Very Low Battery", "Connect to power now!"];
_notif.running = true;
} else if (pct < 25 && !_warnSent) {
_warnSent = true;
_notif.command = ["notify-send", "--icon=battery-caution", "--category=device", "Low Battery"];
_notif.running = true;
}
}
Process { id: _notif }
M.BarIcon {
icon: {
if (root.charging)