summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gkleen@skadhi/rzm/default.nix2
-rw-r--r--accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml6
2 files changed, 4 insertions, 4 deletions
diff --git a/accounts/gkleen@skadhi/rzm/default.nix b/accounts/gkleen@skadhi/rzm/default.nix
index ef30278b..124fcc32 100644
--- a/accounts/gkleen@skadhi/rzm/default.nix
+++ b/accounts/gkleen@skadhi/rzm/default.nix
@@ -232,7 +232,7 @@ in {
232 User = "git"; 232 User = "git";
233 IdentityFile = "~/.ssh/gkleen@gitlab.lrz.de"; 233 IdentityFile = "~/.ssh/gkleen@gitlab.lrz.de";
234 }; 234 };
235 "vrt-kvm05" = { 235 "Match host vrt-kvm*" = {
236 User = "root"; 236 User = "root";
237 inherit (config.programs.ssh.autosshProxies."mathw0e") ProxyCommand; 237 inherit (config.programs.ssh.autosshProxies."mathw0e") ProxyCommand;
238 PasswordAuthentication = "yes"; 238 PasswordAuthentication = "yes";
diff --git a/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml b/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml
index f465fa20..b3c9173e 100644
--- a/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml
+++ b/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml
@@ -46,11 +46,11 @@ Item {
46 if (!root.batteryDevice?.ready) 46 if (!root.batteryDevice?.ready)
47 return "#555"; 47 return "#555";
48 48
49 if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 20 * 60) 49 if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.78) && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 20 * 60)
50 return "#f2201f"; 50 return "#f2201f";
51 if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 40 * 60) 51 if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.78) && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 40 * 60)
52 return "#f28a21"; 52 return "#f28a21";
53 if (root.batteryDevice.state != UPowerDeviceState.FullyCharged) 53 if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.78))
54 return "#fff"; 54 return "#fff";
55 return "#555"; 55 return "#555";
56 } 56 }