Skip to content

Commit

Permalink
Merge pull request #397 from tzkoshi/master
Browse files Browse the repository at this point in the history
Fix google chrome crash when searching on page (cmd+f)
  • Loading branch information
Jean-Tinland authored Apr 29, 2024
2 parents 4fa1833 + 90fb955 commit a8c3c3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
.idea
/node_modules
package-lock.json
package-lock.json
6 changes: 4 additions & 2 deletions lib/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,19 @@ SIP=$(csrutil status)
shadow_enabled=$($yabai_path -m config window_shadow)

spaces=$($yabai_path -m query --spaces)
windows=$($yabai_path -m query --windows | sed 's/\n//g')
windows=$($yabai_path -m query --windows)
displays=$($yabai_path -m query --displays)

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

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

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

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

0 comments on commit a8c3c3e

Please sign in to comment.