mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -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
|
||||
status_chr = "↑ CHR"
|
||||
status_bat = "↓ BAT"
|
||||
EOF
|
||||
if [ $(bc <<< "$(i3status --version | awk '{print $2}') < 2.11") -eq 0 ] ;
|
||||
then
|
||||
cat <<-EOF
|
||||
status_unk = "? UNK"
|
||||
EOF
|
||||
fi
|
||||
cat <<-EOF
|
||||
status_full = "FULL"
|
||||
format = "%status %percentage"
|
||||
path = "/sys/class/power_supply/BAT${bid}/uevent"
|
||||
|
||||
Reference in New Issue
Block a user