updates for hyprland

This commit is contained in:
Chris Cochrun 2023-01-10 09:39:27 -06:00
parent 8adb361b82
commit 7863e720c3
4 changed files with 213 additions and 176 deletions

View file

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