14 lines
343 B
Fish
Executable File
14 lines
343 B
Fish
Executable File
#!/bin/env fish
|
|
# script uses tofi and wlrctl (and fish, duh)
|
|
|
|
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
|
|
wlrctl toplevel focus title:$title
|