should not flash a terminal when nothing is selected

This commit is contained in:
Felix Van der Jeugt 2016-01-31 00:15:36 +01:00
parent ff7f640a35
commit 5ad78e8976
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,5 @@
#!/bin/bash #!/bin/bash
session="$(abduco | tail -n +2 | cut -f3 | dmenu)" session="$(abduco | tail -n +2 | cut -f3 | dmenu)"
if [ ! -z "$session" ]; then
urxvtc -e abduco -a "$session" urxvtc -e abduco -a "$session"
fi

View File

@ -1,3 +1,5 @@
#!/bin/bash #!/bin/bash
command="$(dmenu_path | dmenu)" command="$(dmenu_path | dmenu)"
if [ ! -z "$command" ]; then
urxvtc -e abduco -A "$command" $command urxvtc -e abduco -A "$command" $command
fi