dotfiles/scripts/window.sh

16 lines
280 B
Bash
Executable file

#!/usr/bin/env bash
window=$(wlrctl window list | rofi -i -sync -dmenu -p " " -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi)
echo $window
win=$(echo $window | awk '{print $1}' | sed 's/://')
echo $win
if [ ! -z "$win" ]
then
wlrctl window focus $win
fi