We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41500cc commit 4ad2101Copy full SHA for 4ad2101
scripts/kitty_dropdown.sh
@@ -14,7 +14,7 @@
14
my_term=kitty
15
16
# get terminal emulator and matching name pid ex: 44040485
17
-term_pid=$(pidof -S $'\n' $my_term | tail -n1)
+term_pid=$(pidof -s $'\n' ${my_term})
18
19
# check if the emulator window exists
20
window_id=$(comm -12 <(xdotool search --pid "$term_pid") <(xdotool search --class "$my_term" | sort))
0 commit comments