From 3278f76f9e68c66a918f3d5b86c6375e181dc3cd Mon Sep 17 00:00:00 2001 From: noctuid Date: Mon, 12 Mar 2018 16:00:18 -0400 Subject: [PATCH] Silence more irrelevant errors/output --- tdrop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tdrop b/tdrop index 921dd02..56956ab 100755 --- a/tdrop +++ b/tdrop @@ -167,7 +167,7 @@ program=$1 # check that the program is not a path and does not contain flags if [[ ! $program =~ ^(current|auto_hide|auto_show|toggle_auto_hide)$ ]] && \ - ! type "$program" 2> /dev/null; then + ! type "$program" &> /dev/null; then echo >&2 "The program should be in PATH and not contain flags." | \ tee -a "$MUTDROP_PATH"/log exit 1 @@ -487,7 +487,7 @@ unmap() { # * General Helper Functions get_class_name() { - xprop -id "$1" WM_CLASS | awk '{gsub(/"/, ""); print $4}' + xprop -id "$1" WM_CLASS 2> /dev/null | awk '{gsub(/"/, ""); print $4}' } get_visibility() {