#!/bin/sh set -e key="$(bwpass | dmenu)" [ -n "${key}" ] || exit 0 bwpass show "${key}" | tr -d '\n' | xdotool type --file - xdotool key Return