tweaks
This commit is contained in:
		
							parent
							
								
									7f7fa5466e
								
							
						
					
					
						commit
						d37ccb80be
					
				
					 4 changed files with 58 additions and 65 deletions
				
			
		| 
						 | 
				
			
			@ -1,16 +1,19 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue