diff options
| author | CharlyMH <xarlymh@gmail.com> | 2025-10-03 20:12:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-03 20:12:41 +0200 |
| commit | f46fa54f44a03a6ceb02fc251dedfd5474f1094c (patch) | |
| tree | 3292f8705bc12e123ca2ec767cc2fb93fc23895d | |
| parent | ca851962f1188c1fb56fe606994baf255e3a8fd5 (diff) | |
Update Dropterminal.sh
The function now chooses the focused monitor instead of the first one in the array.
| -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 |
