summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-01-04 11:24:02 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-01-04 11:25:11 -0700
commitd319ca3653832f333b4775ba40eca14847dd273b (patch)
tree33d1d772877efc4108563170eb33bf7239fbd103 /scripts
parentb175bb42dd8f68579d5e0725b6d73a5d6e2ad2bd (diff)
downloaddotfiles-d319ca3653832f333b4775ba40eca14847dd273b.tar.gz
sway-ftp-master: match beginning of window titles
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/desktop/sway-ftp-master2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/desktop/sway-ftp-master b/scripts/desktop/sway-ftp-master
index bb15cfb1..960ed8e2 100755
--- a/scripts/desktop/sway-ftp-master
+++ b/scripts/desktop/sway-ftp-master
@@ -22,7 +22,7 @@ sub walk_tree (&$) {
sub title_exists {
my $name = shift;
- walk_tree { $_->{name} and $_->{name} eq $name }
+ walk_tree { $_->{name} and $_->{name} =~ /^\Q$name\E/ }
decode_json `swaymsg -t get_tree`;
}