rebind capture to the space bar
space is easier to hit than c mid-pose for a photobooth; the hint bar now renders "space" instead of a literal blank so the UI stays legible.master
parent
7f67c5fd81
commit
1d77f411fa
|
|
@ -10,7 +10,7 @@ BRIGHTNESS="${DEFAULT_BRIGHTNESS:-auto}"
|
|||
EXPOSURE="${DEFAULT_EXPOSURE:-auto}"
|
||||
STEP="${STEP:-5}"
|
||||
|
||||
: "${KEY_CAPTURE:=c}"
|
||||
: "${KEY_CAPTURE:= }"
|
||||
: "${KEY_BRIGHTNESS_UP:=+}"
|
||||
: "${KEY_BRIGHTNESS_DOWN:=-}"
|
||||
: "${KEY_EXPOSURE_UP:=.}"
|
||||
|
|
@ -32,8 +32,11 @@ while true; do
|
|||
export BRIGHTNESS EXPOSURE
|
||||
./webcam2ascii.sh
|
||||
echo
|
||||
capture_label="$KEY_CAPTURE"
|
||||
[ "$KEY_CAPTURE" = " " ] && capture_label="space"
|
||||
|
||||
echo "brightness: ${BRIGHTNESS} exposure: ${EXPOSURE}"
|
||||
echo "[${KEY_BRIGHTNESS_UP}/${KEY_BRIGHTNESS_DOWN}] brightness [${KEY_EXPOSURE_UP}/${KEY_EXPOSURE_DOWN}] exposure [${KEY_RESET}] reset to auto [${KEY_CAPTURE}] capture [Ctrl+C] quit"
|
||||
echo "[${KEY_BRIGHTNESS_UP}/${KEY_BRIGHTNESS_DOWN}] brightness [${KEY_EXPOSURE_UP}/${KEY_EXPOSURE_DOWN}] exposure [${KEY_RESET}] reset to auto [${capture_label}] capture [Ctrl+C] quit"
|
||||
|
||||
if read -n 1 -t 0.05 -s key; then
|
||||
case "$key" in
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
# matching is case-insensitive. Ctrl+C always quits and isn't
|
||||
# configurable here.
|
||||
|
||||
KEY_CAPTURE=c
|
||||
KEY_CAPTURE=" "
|
||||
KEY_BRIGHTNESS_UP=+
|
||||
KEY_BRIGHTNESS_DOWN=-
|
||||
KEY_EXPOSURE_UP=.
|
||||
|
|
|
|||
Loading…
Reference in New Issue