From f153aa731f0fc3227d0195a52753a0f385a106c8 Mon Sep 17 00:00:00 2001 From: Chris Cochrun <chris@cochrun.xyz> Date: Fri, 20 Oct 2023 16:56:26 -0500 Subject: [PATCH] fixing window.sh --- scripts/window.sh | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/scripts/window.sh b/scripts/window.sh index d85659f..f45c93b 100755 --- a/scripts/window.sh +++ b/scripts/window.sh @@ -1,19 +1,3 @@ #!/usr/bin/env bash -if [[ $HYPRLAND_INSTANCE_SIGNATURE ]]; - rofi -i -show window -p " " -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi -else - json=$(hyprctl clients -j) - window=$(echo $json | jq .[].title | rofi -i -sync -dmenu -p " " -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi) - - echo $window - - win=$(echo $json | jq ".[] | select(.title==$window).address" | sed 's/"//g') - - echo $win - - if [ ! -z "$win" ] - then - hyprctl dispatch focuswindow address:$win - fi -fi +rofi -i -show window -p " " -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi