mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
status_unk is not supported on i3status < 2.11
This commit is contained in:
@@ -87,7 +87,14 @@ function battery {
|
|||||||
threshold_type = time
|
threshold_type = time
|
||||||
status_chr = "↑ CHR"
|
status_chr = "↑ CHR"
|
||||||
status_bat = "↓ BAT"
|
status_bat = "↓ BAT"
|
||||||
|
EOF
|
||||||
|
if [ $(bc <<< "$(i3status --version | awk '{print $2}') < 2.11") -eq 0 ] ;
|
||||||
|
then
|
||||||
|
cat <<-EOF
|
||||||
status_unk = "? UNK"
|
status_unk = "? UNK"
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
cat <<-EOF
|
||||||
status_full = "FULL"
|
status_full = "FULL"
|
||||||
format = "%status %percentage"
|
format = "%status %percentage"
|
||||||
path = "/sys/class/power_supply/BAT${bid}/uevent"
|
path = "/sys/class/power_supply/BAT${bid}/uevent"
|
||||||
|
|||||||
Reference in New Issue
Block a user