#!/usr/bin/env bash for i in $(seq 1 "${1:-25}"); do xdotool key Ctrl+equal done trap 'xdotool key Ctrl+0; exit' SIGINT while true; do read -p "> " input done