Regenerated

This commit is contained in:
2026-04-19 22:04:11 +02:00
parent 6d70acb326
commit 6cd1ae50d1
5 changed files with 432 additions and 395 deletions
+387 -369
View File
File diff suppressed because it is too large Load Diff
+24 -13
View File
@@ -3487,6 +3487,19 @@ ShellRoot {
}
#+END_SRC
** =generated/.config/scripts/batterywarn.sh=
Providing an media
#+BEGIN_SRC sh :tangle generated/.config/scripts/batterywarn.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never
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
#+END_SRC
** =generated/.config/scripts/media.sh=
Providing an media
#+BEGIN_SRC sh :tangle generated/.config/scripts/media.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never
@@ -4180,7 +4193,7 @@ These are config files for waybar
"group/workspaces",
"custom/power",
"custom/media",
"battery#warn"
"custom/batterywarn"
],
"modules-right": [
@@ -4292,6 +4305,12 @@ These are config files for waybar
"format": "{}"
},
"custom/batterywarn": {
"exec": "~/.config/scripts/batterywarn.sh",
"interval": 60,
"format": "{}"
},
"idle_inhibitor": {
"tooltip": true,
"format": "{icon}",
@@ -4561,19 +4580,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 {
+10
View File
@@ -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
+7 -1
View File
@@ -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 {