From fc2593f36ef697209475e52631fb72bbec02ef08 Mon Sep 17 00:00:00 2001 From: Fox Kiester Date: Thu, 6 Sep 2018 19:57:35 -0400 Subject: [PATCH] Add initial discord support --- tdrop | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tdrop b/tdrop index 2283325..d9b9def 100755 --- a/tdrop +++ b/tdrop @@ -539,7 +539,12 @@ create_win_return_wid() { # actual process name for me is gnome-terminal- pid=$(pgrep gnome-terminal) fi - wids=$(xdotool search --pid "$pid") + if [[ $program == discord ]]; then + wids=$(xdotool search --classname discord) + blacklist= + else + wids=$(xdotool search --pid "$pid") + fi if [[ -n "$wids" ]]; then while read -r wid; do if [[ ! $blacklist =~ (^|$'\n')"$wid"($|$'\n') ]] && \