Add support for chromium

Fixes #20.
break
noctuid 9 years ago
parent b66e7e661b
commit 2aed1021c5

@ -508,6 +508,11 @@ create_win_return_wid() {
blacklist=$(xdotool search --classname urxvtd) blacklist=$(xdotool search --classname urxvtd)
pid=$(pgrep urxvtd) pid=$(pgrep urxvtd)
eval "$program_command" eval "$program_command"
elif [[ $program =~ ^chromium ]]; then
# this may work fine
# pid=$(pgrep -o chromium)
pid=$(pgrep -a chromium | awk '!/--type/ {print $1}')
eval "$program_command"
else else
eval "$program_command" eval "$program_command"
pid=$! pid=$!

Loading…
Cancel
Save