Skip to content

Commit

Permalink
Merge pull request #145 from postsolar/patch-1
Browse files Browse the repository at this point in the history
Fix Hyprland window ID detection
  • Loading branch information
franciscolourenco committed Jan 10, 2024
2 parents fbea3f6 + cf2067a commit 95733a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf.d/done.fish
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function __done_get_focused_window_id
and type -q jq
swaymsg --type get_tree | jq '.. | objects | select(.focused == true) | .id'
else if test -n "$HYPRLAND_INSTANCE_SIGNATURE"
hyprctl activewindow | awk 'NR==13 {print $2}'
hyprctl activewindow | awk 'NR==1 {print $2}'
else if begin
test "$XDG_SESSION_DESKTOP" = gnome; and type -q gdbus
end
Expand Down Expand Up @@ -152,7 +152,7 @@ function __done_is_process_window_focused
string match --quiet --regex "^true" (swaymsg -t get_tree | jq ".. | objects | select(.id == "$__done_initial_window_id") | .visible")
return $status
else if test -n "$HYPRLAND_INSTANCE_SIGNATURE"
and test $__done_initial_window_id -eq (hyprctl activewindow | awk 'NR==13 {print $2}')
and test $__done_initial_window_id = (hyprctl activewindow | awk 'NR==1 {print $2}')
return $status
else if test "$__done_initial_window_id" != "$__done_focused_window_id"
return 1
Expand Down

0 comments on commit 95733a0

Please sign in to comment.