Regenerated
This commit is contained in:
+387
-369
File diff suppressed because it is too large
Load Diff
+24
-13
@@ -3487,6 +3487,19 @@ ShellRoot {
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+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=
|
** =generated/.config/scripts/media.sh=
|
||||||
Providing an media
|
Providing an media
|
||||||
#+BEGIN_SRC sh :tangle generated/.config/scripts/media.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never
|
#+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",
|
"group/workspaces",
|
||||||
"custom/power",
|
"custom/power",
|
||||||
"custom/media",
|
"custom/media",
|
||||||
"battery#warn"
|
"custom/batterywarn"
|
||||||
],
|
],
|
||||||
|
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
@@ -4292,6 +4305,12 @@ These are config files for waybar
|
|||||||
"format": "{}"
|
"format": "{}"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"custom/batterywarn": {
|
||||||
|
"exec": "~/.config/scripts/batterywarn.sh",
|
||||||
|
"interval": 60,
|
||||||
|
"format": "{}"
|
||||||
|
},
|
||||||
|
|
||||||
"idle_inhibitor": {
|
"idle_inhibitor": {
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
@@ -4561,19 +4580,11 @@ label#custom-windows:not(.active) {
|
|||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
widget:has(label#battery.warn) {
|
#custom-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;
|
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
|
padding: 0 10px;
|
||||||
|
color: white;
|
||||||
|
animation: blink 0.5s linear infinite alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
|
|||||||
+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",
|
"group/workspaces",
|
||||||
"custom/power",
|
"custom/power",
|
||||||
"custom/media",
|
"custom/media",
|
||||||
"battery#warn"
|
"custom/batterywarn"
|
||||||
],
|
],
|
||||||
|
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
@@ -130,6 +130,12 @@
|
|||||||
"format": "{}"
|
"format": "{}"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"custom/batterywarn": {
|
||||||
|
"exec": "~/.config/scripts/batterywarn.sh",
|
||||||
|
"interval": 60,
|
||||||
|
"format": "{}"
|
||||||
|
},
|
||||||
|
|
||||||
"idle_inhibitor": {
|
"idle_inhibitor": {
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
|
|||||||
@@ -181,19 +181,11 @@ label#custom-windows:not(.active) {
|
|||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
widget:has(label#battery.warn) {
|
#custom-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;
|
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
|
padding: 0 10px;
|
||||||
|
color: white;
|
||||||
|
animation: blink 0.5s linear infinite alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
|
|||||||
Reference in New Issue
Block a user