From 885511ed2f63fec6835a4e78e69a2fab616c5ec8 Mon Sep 17 00:00:00 2001 From: zhongxilu Date: Sun, 19 May 2024 12:07:39 +0200 Subject: [PATCH] Fix newlines in output --- lib/scripts/init.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/scripts/init.sh b/lib/scripts/init.sh index 338f994e..255c3edd 100644 --- a/lib/scripts/init.sh +++ b/lib/scripts/init.sh @@ -22,7 +22,7 @@ if [ -z "$spaces" ]; then fi if [ -z "$windows" ]; then - windows=$($yabai_path -m query --windows | sed 's/\\.//g;' | tr -d '\n') + windows=$($yabai_path -m query --windows | sed 's/\\.//g;') fi if [ -z "$displays" ]; then @@ -63,7 +63,7 @@ if [ $display_skhd_mode = "true" ]; then skhd_mode=$(cat "$("${SCRIPT_DIR}"/yabai-set-mode.sh --query)") else skhd_mode=$(cat "$("${SCRIPT_DIR}"/yabai-set-mode-server.sh --query)") - fi + fi else skhd_mode="{}" fi @@ -79,4 +79,4 @@ echo $(cat <<-EOF "skhdMode": $skhd_mode } EOF -) +) | tr -d '\n'