From 75792fc8130454517b82fdfaccc5595c4d9ba405 Mon Sep 17 00:00:00 2001 From: Octopus Octopus Date: Wed, 24 Apr 2024 17:01:25 -0500 Subject: [PATCH] first commit --- ftl.fish | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 ftl.fish diff --git a/ftl.fish b/ftl.fish new file mode 100755 index 0000000..0455ab2 --- /dev/null +++ b/ftl.fish @@ -0,0 +1,13 @@ +#!/bin/env fish + +set input (wlrctl toplevel list | tofi) +set app (string split : $input) +set app_id $app[1] +if test (count $app) -gt 2 + set title (string join : $app[2..-1]) + set title (string trim --left $title) +else + set title (string trim --left $app[2]) +end +echo $title +wlrctl toplevel focus title:$title