#!/usr/bin/env bash

window=$(wlrctl window list | rofi -i -sync -dmenu -p " " -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi)

win=$(echo $window | awk '{print $1}' | sed 's/://')

if [ $win == "" ]
then
    exit 0
fi

wlrctl window focus $win