Can I use the Escape key to hide or exit bashrun?
The escape key is a meta key in readline and can’t be bound on it’s own, so you can’t do it with a bashrun keybinding. You’ll have to use a method similar to this: • Before running bashrun, dynamically bind the escape key to execute bashrun –hide or bashrun –exit, using your WM or X11 • Run bashrun • Wait for the bashrun window to be unmapped or destroyed • Remove the escape keybinding again Here’s a script that uses xbindkeys and xdotool to implement this method: #!/bin/bash # frontend to bashrun, hides bashrun using the escape key # uses xdotool (http://www.semicomplete.com/projects/xdotool/) # xbindkeys (http://hocwp.free.fr/xbindkeys/xbindkeys.html) XBINDKEYSRC=~/.xbindkeysrc TMPFILE=~/.xbindkeysrc.tmp # note that xbindkeys needs at least one keybinding defined in # .xbindkeysrc to run function update { if ! killall -HUP xbindkeys; then echo “error: can’t HUP xbindkeys, please make sure it’s running.” remove_escape exit 1 fi # man xbindkeys says: “When HUP signal is send to xbind