From ef05b0ddff50000fd75a74a00f27c31c659eb040 Mon Sep 17 00:00:00 2001 From: charles-victorio <63442233+charles-victorio@users.noreply.github.com> Date: Thu, 9 Apr 2020 23:59:35 -0700 Subject: [PATCH] Add Dvorak layout to info-hackspeed. It just counts the letters a-z and the numbers 0-9. --- polybar-scripts/info-hackspeed/info-hackspeed.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/polybar-scripts/info-hackspeed/info-hackspeed.sh b/polybar-scripts/info-hackspeed/info-hackspeed.sh index 63cb08de..e87888ba 100644 --- a/polybar-scripts/info-hackspeed/info-hackspeed.sh +++ b/polybar-scripts/info-hackspeed/info-hackspeed.sh @@ -20,6 +20,7 @@ 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)'; ;; qwertz) CONDITION='($3 >= 10 && $3 <= 20) || ($3 >= 24 && $3 <= 34) || ($3 == 36) || ($3 >= 38 && $3 <= 48) || ($3 >= 52 && $3 <= 58)'; ;; + dvorak) CONDITION='($3 >= 10 && $3 <= 19) || ($3 >= 27 && $3 <= 33) || ($3 >= 38 && $3 <= 47) || ($3 >= 53 && $3 <= 61)'; ;; dontcare) CONDITION='1'; ;; # Just register all key presses, not only letters and numbers *) echo "Unsupported layout \"$LAYOUT\""; exit 1; ;; esac