diff --git a/misc/choose b/misc/choose new file mode 100755 index 0000000..3e7150f --- /dev/null +++ b/misc/choose @@ -0,0 +1,11 @@ +#!/bin/zsh + +zparseopts -D -E x=xorg -xorg=xorg + +chosen="${@[RANDOM % $# + 1]}" + +if [[ $xorg ]]; then + zenity --info --text=$chosen +else + echo $chosen +fi