From a0bac51c81fc08b51cc1243e0f725328b3e27f9d Mon Sep 17 00:00:00 2001 From: M1dgard Date: Fri, 6 Apr 2018 18:00:24 +0200 Subject: [PATCH] Make dontcare condition easier --- polybar/info-hackspeed.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polybar/info-hackspeed.sh b/polybar/info-hackspeed.sh index 07b564f..3a15a22 100755 --- a/polybar/info-hackspeed.sh +++ b/polybar/info-hackspeed.sh @@ -32,7 +32,7 @@ if [ -z "$CONDITION" ]; then case "$LAYOUT" in qwerty) CONDITION='($3 >= 10 && $3 <= 19) || ($3 >= 24 && $3 <= 33) || ($3 >= 37 && $3 <= 53) || ($3 >= 52 && $3 <= 58)'; ;; azerty) CONDITION='($3 >= 10 && $3 <= 19) || ($3 >= 24 && $3 <= 33) || ($3 >= 37 && $3 <= 54) || ($3 >= 52 && $3 <= 57)'; ;; - dontcare) CONDITION='$3 == $3'; ;; # Just register all key presses, not only letters and numbers + dontcare) CONDITION='1'; ;; # Just register all key presses, not only letters and numbers *) echo "Unsupported layout \"$LAYOUT\""; exit 1; ;; esac fi