diff options
| -rwxr-xr-x | config/hypr/scripts/Dropterminal.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/hypr/scripts/Dropterminal.sh b/config/hypr/scripts/Dropterminal.sh index fa5b899b..f1bfe0a5 100755 --- a/config/hypr/scripts/Dropterminal.sh +++ b/config/hypr/scripts/Dropterminal.sh @@ -119,7 +119,7 @@ animate_slide_up() { # Function to get monitor info for centering get_monitor_info() { - hyprctl monitors -j | jq -r '.[0] | "\(.x) \(.y) \(.width) \(.height)"' + hyprctl monitors -j | jq -r '.[] | select(.focused == true) | "\(.x) \(.y) \(.width) \(.height)"' } # Function to calculate dropdown position @@ -290,4 +290,4 @@ else hyprctl dispatch focuswindow "address:$TERMINAL_ADDR" fi fi -fi
\ No newline at end of file +fi |
