unify abduco commands
This commit is contained in:
parent
b9b4675af5
commit
ed6cf53632
18
local/bin/abduco
Executable file
18
local/bin/abduco
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
result="$(case "$1" in
|
||||
list) abduco | tail -n +2 | cut -f3 | dmenu ;;
|
||||
run|watch) dmenu_path | dmenu ;;
|
||||
*) echo "other" ;;
|
||||
esac)"
|
||||
|
||||
if test "$result" = "other"; then
|
||||
exec /usr/bin/abduco "$@"
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
list) if abduco | grep -q "$result"; then exec urxvtc -e /usr/bin/abduco -a "$result"; fi ;;
|
||||
watch) result="watch $result" ;&
|
||||
run) exec urxvtc -e /usr/bin/abduco -A "$result" $result ;;
|
||||
esac
|
||||
|
@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
session="$(abduco | tail -n +2 | cut -f3 | dmenu)"
|
||||
if [ ! -z "$session" ]; then
|
||||
if abduco | grep -q "$session"; then
|
||||
urxvtc -e abduco -a "$session"
|
||||
fi
|
||||
fi
|
@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
command="$(dmenu_path | dmenu)"
|
||||
if [ ! -z "$command" ]; then
|
||||
urxvtc -e abduco -A "$command" $command
|
||||
fi
|
Loading…
Reference in New Issue
Block a user