From 75d30f7bf47e60f3c0fb043211062db32c1c2da5 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Fri, 4 Feb 2022 12:55:46 +0300 Subject: [PATCH] Fix battery script more --- .../workspace/i3blocks/scripts/battery.nix | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/profiles/workspace/i3blocks/scripts/battery.nix b/profiles/workspace/i3blocks/scripts/battery.nix index fc62bf5..35cbb03 100644 --- a/profiles/workspace/i3blocks/scripts/battery.nix +++ b/profiles/workspace/i3blocks/scripts/battery.nix @@ -25,17 +25,17 @@ STATUS=33 fi case $PERCENTAGE in - 1?) icon=;; - 2?) icon=;; - 3?) icon=;; - 4?) icon=;; - 5?) icon=;; - 6?) icon=;; - 7?) icon=;; - 8?) icon=;; - 9?) icon=;; + [0-9]) icon=;; + 1[0-9]) icon=;; + 2[0-9]) icon=;; + 3[0-9]) icon=;; + 4[0-9]) icon=;; + 5[0-9]) icon=;; + 6[0-9]) icon=;; + 7[0-9]) icon=;; + 8[0-9]) icon=;; + 9[0-9]) icon=;; 100) icon=;; - *) icon=;; esac fi if [ -n "$DELIM" ]; then