Skip to content

Commit

Permalink
Fix newlines in output
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongXiLu committed May 19, 2024
1 parent a002288 commit 885511e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -79,4 +79,4 @@ echo $(cat <<-EOF
"skhdMode": $skhd_mode
}
EOF
)
) | tr -d '\n'

0 comments on commit 885511e

Please sign in to comment.