Skip to content

Commit

Permalink
Merge pull request #402 from ZhongXiLu/master
Browse files Browse the repository at this point in the history
Fix newlines in yabai output
  • Loading branch information
Jean-Tinland authored May 20, 2024
2 parents d908bca + 885511e commit e958ea2
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 e958ea2

Please sign in to comment.