From 6577acae890e18dc99244599fc85fa31053e400e Mon Sep 17 00:00:00 2001 From: Kian Kasad Date: Sat, 9 May 2020 16:32:56 -0700 Subject: replace `tr '\n' 'CHAR'` with `paste -sd 'CHAR'` (#625) --- .local/bin/displayselect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/displayselect') diff --git a/.local/bin/displayselect b/.local/bin/displayselect index 02b35c2..57120ec 100755 --- a/.local/bin/displayselect +++ b/.local/bin/displayselect @@ -53,7 +53,7 @@ multimon() { # Multi-monitor handler. esac ;} onescreen() { # If only one output available or chosen. - xrandr --output "$1" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$1" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') + xrandr --output "$1" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$1" | awk '{print "--output", $1, "--off"}' | paste -sd ' ') } postrun() { # Stuff to run to clean up. -- cgit v1.3.1