From 76de2bd5d846064b0cf83db07c5a1501b8500254 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 14 Oct 2024 21:40:55 +0200 Subject: wireshark-remote: Add hostname and filter to window title Useful if you run multiple traces at the same time Signed-off-by: Florian Pritz --- wireshark-remote | 1 + 1 file changed, 1 insertion(+) diff --git a/wireshark-remote b/wireshark-remote index 270d139..6b35f7f 100755 --- a/wireshark-remote +++ b/wireshark-remote @@ -13,4 +13,5 @@ fi #wireshark -k -i <(ssh "$host" /home/flo/capture.sh "$iface") #wireshark-gtk -k -i <(ssh "$host" dumpcap -q -P -i "$iface" -w - -f 'not\ port\ 22') +sed -i "s/^gui\.window_title: .*/gui.window_title: $host $iface $filter/" ~/.config/wireshark/preferences wireshark -k -i <(ssh "$host" tcpdump -i "$iface" -w - "'not port 22 $filter'") -- cgit v1.2.3-24-g4f1b