2016-09-15 10:13:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
result="$(case "$1" in
|
2016-11-16 11:23:28 +01:00
|
|
|
list) find ~/.abduco -not -executable -type s -exec basename \{\} \; | cut -d@ -f1 | dmenu ;;
|
2016-09-15 10:13:22 +02:00
|
|
|
run|watch) dmenu_path | dmenu ;;
|
|
|
|
*) echo "other" ;;
|
|
|
|
esac)"
|
|
|
|
|
2016-11-03 10:26:10 +01:00
|
|
|
[ -z "$result" ] && exit 1
|
|
|
|
|
2016-09-15 10:13:22 +02:00
|
|
|
if test "$result" = "other"; then
|
|
|
|
exec /usr/bin/abduco "$@"
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$1" in
|
2017-02-16 11:42:10 +01:00
|
|
|
list) exec st -e /usr/bin/abduco -A "$result" ;;
|
2016-09-15 10:13:22 +02:00
|
|
|
watch) result="watch $result" ;&
|
2017-02-09 21:13:44 +01:00
|
|
|
run) exec st -e /usr/bin/abduco -A "$result" $result ;;
|
2016-09-15 10:13:22 +02:00
|
|
|
esac
|
|
|
|
|