diff options
| author | Donald Williams <129223418+dwilliam62@users.noreply.github.com> | 2025-10-03 17:41:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-03 17:41:08 -0400 |
| commit | 3909e6850e669aee87404542bc6eb86f8a633ceb (patch) | |
| tree | 8e2ce9e87186517a65fdc5c492c9f5d4a9eda983 /config | |
| parent | ee4dbc5aa9b9bdfd8ed2c41874ea4245c0494052 (diff) | |
| parent | 7982ec7859d60ff9a3b39626af0505f6596af9ba (diff) | |
Merge pull request #833 from CharlyMH/main
Editing Dropterminal.sh to work on the focused monitor.
Diffstat (limited to 'config')
| -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 |
