Make dontcare condition easier
This commit is contained in:
parent
8ee7f27ee0
commit
a0bac51c81
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ if [ -z "$CONDITION" ]; then
|
||||||
case "$LAYOUT" in
|
case "$LAYOUT" in
|
||||||
qwerty) CONDITION='($3 >= 10 && $3 <= 19) || ($3 >= 24 && $3 <= 33) || ($3 >= 37 && $3 <= 53) || ($3 >= 52 && $3 <= 58)'; ;;
|
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)'; ;;
|
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; ;;
|
*) echo "Unsupported layout \"$LAYOUT\""; exit 1; ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue