Skip to content

Commit

Permalink
Simplify yabai windows cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Tinland committed Apr 29, 2024
1 parent a8c3c3e commit f165275
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ if [ -z "$spaces" ]; then
fi

if [ -z "$windows" ]; then
windows=$($yabai_path -m query --windows | sed 's/\\.//g;')
windows=$($yabai_path -m query --windows | sed 's/\\.//g;' | tr -d '\n')
fi

windows=$(echo $windows | tr -d '\n')

if [ -z "$displays" ]; then
displays=$($yabai_path -m query --displays)
fi
Expand Down

0 comments on commit f165275

Please sign in to comment.