Regenerated
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
capacity=$(cat /sys/class/power_supply/BAT*/capacity)
|
||||
status=$(cat /sys/class/power_supply/BAT*/status)
|
||||
|
||||
if [ "$status" != "Charging" ] && [ "$capacity" -lt 15 ]; then
|
||||
echo " $capacity%"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
@@ -18,7 +18,7 @@
|
||||
"group/workspaces",
|
||||
"custom/power",
|
||||
"custom/media",
|
||||
"battery#warn"
|
||||
"custom/batterywarn"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
@@ -130,6 +130,12 @@
|
||||
"format": "{}"
|
||||
},
|
||||
|
||||
"custom/batterywarn": {
|
||||
"exec": "~/.config/scripts/batterywarn.sh",
|
||||
"interval": 60,
|
||||
"format": "{}"
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"tooltip": true,
|
||||
"format": "{icon}",
|
||||
|
||||
@@ -181,19 +181,11 @@ label#custom-windows:not(.active) {
|
||||
border: 2px solid transparent;
|
||||
}
|
||||
|
||||
widget:has(label#battery.warn) {
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
widget:has(label#battery.warn.warning),
|
||||
widget:has(label#battery.warn.critical) {
|
||||
opacity: 1;
|
||||
min-width: 80px;
|
||||
padding: 0 10px;
|
||||
#custom-battery-warn {
|
||||
margin: 0 5px;
|
||||
padding: 0 10px;
|
||||
color: white;
|
||||
animation: blink 0.5s linear infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
|
||||
Reference in New Issue
Block a user