2 cmd=$(dmenu_path | ~/bin/dmenu "$@")
4 # NOTE: only tested with zsh and sh, and has issues with expansion; zsh
5 # SH_WORD_SPLIT is unset by default, `=' flag is required to expand it
6 echo "alias sudo='sudo -Ak'
7 cmd='$(echo "$cmd" | sed "s/'/'\\\\''/g")'" '
8 if [ -n "$ZSH_VERSION" ]; then
14 out="$(echo "$out" | tail -n 3)"
15 notify-send -t 10000 -u $([ $code != 0 ] && echo normal || echo low) -a ' "'$(basename $0)'" ' "${cmd}$([ $code != 0 ] && echo \: $code)" "$out"' | SUDO_ASKPASS=~/bin/dpass ${SHELL:-"/bin/sh"}