diff --git a/tdrop b/tdrop index ad0af37..54d1875 100755 --- a/tdrop +++ b/tdrop @@ -508,6 +508,11 @@ create_win_return_wid() { blacklist=$(xdotool search --classname urxvtd) pid=$(pgrep urxvtd) 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 eval "$program_command" pid=$!