From f46fa54f44a03a6ceb02fc251dedfd5474f1094c Mon Sep 17 00:00:00 2001 From: CharlyMH Date: Fri, 3 Oct 2025 20:12:41 +0200 Subject: Update Dropterminal.sh The function now chooses the focused monitor instead of the first one in the array. --- config/hypr/scripts/Dropterminal.sh | 4 ++-- 1 file 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 -- cgit v1.2.3