From 24d61bd266d83f14537e6091febcb77bf1d41734 Mon Sep 17 00:00:00 2001 From: Fox Kiester Date: Wed, 4 Dec 2019 22:12:52 -0500 Subject: [PATCH] Fix -a for emacsclient (set class as "emacs") --- tdrop | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tdrop b/tdrop index c98602a..5c3b595 100755 --- a/tdrop +++ b/tdrop @@ -373,8 +373,10 @@ decoration_settings() { } set_class() { - if [[ -z "$class" ]]; then - if [[ $program =~ ^google-chrome ]]; then + if [[ -z $class ]]; then + if [[ $program =~ ^emacsclient ]]; then + class=emacs + elif [[ $program =~ ^google-chrome ]]; then class=google-chrome elif [[ $program == st ]]; then class=st-256color