diff --git a/.config/i3/pass_typer.py b/.config/i3/pass_typer.py index 0a52e7a..d962ee5 100755 --- a/.config/i3/pass_typer.py +++ b/.config/i3/pass_typer.py @@ -129,7 +129,9 @@ def select_and_type(server_match: ServerMatch) -> None: window_name = cmd(["xdotool", "getactivewindow", "getwindowname"]).stdout.strip() -ssh_match = re.search(":([^ ]+=[^ ]* )*(mosh|ssh) (?P.*)", window_name) +ssh_match = re.search( + ":([^ ]+=[^ ]* )*(mosh|ssh) .* (?P[^ ]*)$", window_name +) if ssh_match: server_match = ServerMatch.from_destination(ssh_match.group("destination"))