aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/Dropterminal.sh
diff options
context:
space:
mode:
authorCharlyMH <xarlymh@gmail.com>2025-10-03 20:12:41 +0200
committerGitHub <noreply@github.com>2025-10-03 20:12:41 +0200
commitf46fa54f44a03a6ceb02fc251dedfd5474f1094c (patch)
tree3292f8705bc12e123ca2ec767cc2fb93fc23895d /config/hypr/scripts/Dropterminal.sh
parentca851962f1188c1fb56fe606994baf255e3a8fd5 (diff)
Update Dropterminal.sh
The function now chooses the focused monitor instead of the first one in the array.
Diffstat (limited to 'config/hypr/scripts/Dropterminal.sh')
-rwxr-xr-xconfig/hypr/scripts/Dropterminal.sh4
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage