From 2aed1021c5ad8be052458e6c37f95af4c4554c4a Mon Sep 17 00:00:00 2001 From: noctuid Date: Fri, 1 Jul 2016 22:02:27 -0400 Subject: [PATCH] Add support for chromium Fixes #20. --- tdrop | 5 +++++ 1 file changed, 5 insertions(+) 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=$!