Silence more irrelevant errors/output

performance
noctuid 7 years ago
parent 306bb984e4
commit 3278f76f9e

@ -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() {

Loading…
Cancel
Save