Skip to content

Instantly share code, notes, and snippets.

@apg

apg/dispatch.sh Secret

Created May 9, 2017
Embed
What would you like to do?
#!/bin/bash
cmd=$(echo "" | dmenu -p "hello: ")
case "$cmd" in
run)
exe=`dmenu_path | dmenu ${1+"$@"}` && exec $exe
;;
=*)
expression=${cmd:1}
result=$(expr $expression)
echo "" | dmenu -p $result
;;
*)
exit
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.