From c14310497772e9973ecbe5cd33d609f282cdfeb0 Mon Sep 17 00:00:00 2001 From: Fox Kiester Date: Fri, 15 Nov 2019 18:15:43 -0500 Subject: [PATCH] Suppress stderr when reading no_hide file --- tdrop | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tdrop b/tdrop index 905f392..336ade0 100755 --- a/tdrop +++ b/tdrop @@ -798,7 +798,7 @@ restore_geometry() { toggle_auto_hide() { local no_hide - no_hide=$(< "$MUTDROP_PATH"/auto_hidden/no_hide) 2> /dev/null + no_hide=$(cat "$MUTDROP_PATH"/auto_hidden/no_hide 2> /dev/null) mkdir -p "$MUTDROP_PATH"/auto_hidden if [[ -z $no_hide ]]; then echo "true" > "$MUTDROP_PATH"/auto_hidden/no_hide @@ -811,7 +811,7 @@ toggle_auto_hide() { # * Auto Hiding/Showing auto_hide() { local no_hide - no_hide=$(< "$MUTDROP_PATH"/auto_hidden/no_hide) 2> /dev/null + no_hide=$(cat "$MUTDROP_PATH"/auto_hidden/no_hide 2> /dev/null) if [[ -z $no_hide ]]; then wid=$(xdotool getactivewindow) mkdir -p "$MUTDROP_PATH"/auto_hidden @@ -824,7 +824,7 @@ auto_hide() { auto_show() { local no_hide - no_hide=$(< "$MUTDROP_PATH"/auto_hidden/no_hide) 2> /dev/null + no_hide=$(cat "$MUTDROP_PATH"/auto_hidden/no_hide 2> /dev/null) if [[ -z $no_hide ]]; then local was_floating XY wid=$(< "$MUTDROP_PATH"/auto_hidden/wid)