Skip to content

Commit

Permalink
Fix window detection in macOS 14 Sonoma
Browse files Browse the repository at this point in the history
This version was tested in macOS 13 and 14.

Fixes franciscolourenco#139
  • Loading branch information
franciscolourenco authored and huafu committed Oct 22, 2023
1 parent 7e8782b commit df353a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf.d/done.fish
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ end

function __done_get_focused_window_id
if type -q lsappinfo
lsappinfo info -only bundleID (lsappinfo front) | cut -d '"' -f4
lsappinfo info -only bundleID (lsappinfo front | string replace 'ASN:0x0-' '0x') | cut -d '"' -f4
else if test -n "$SWAYSOCK"
and type -q jq
swaymsg --type get_tree | jq '.. | objects | select(.focused == true) | .id'
Expand Down

0 comments on commit df353a0

Please sign in to comment.