Add initial discord support

performance
Fox Kiester 6 years ago
parent 5396d1bbdf
commit fc2593f36e
No known key found for this signature in database
GPG Key ID: 316E205D6017DBFF

@ -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') ]] && \

Loading…
Cancel
Save