25 lines
		
	
	
	
		
			644 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			644 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
if [ $(hostname) = "syl" ]; then
 | 
						|
    if [ $XDG_SESSION_TYPE = "x11" ]; then
 | 
						|
        style="laptop-search"
 | 
						|
    else
 | 
						|
        style="laptop-search-wayland"
 | 
						|
    fi
 | 
						|
else 
 | 
						|
    style="desktop-search"
 | 
						|
    #echo "this is not hidpi"
 | 
						|
fi
 | 
						|
 | 
						|
cd ~/
 | 
						|
 | 
						|
cat db | rofi -dmenu -i -sync -p="search..." -theme ~/.config/rofi/launchers-git/$style.rasi -M multi-contains | xargs -r0 xdg-open
 | 
						|
 | 
						|
 | 
						|
# $@ &
 | 
						|
# c=0
 | 
						|
# while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do
 | 
						|
#     sleep .1 
 | 
						|
#     c=$((c+1))
 | 
						|
#     [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
 | 
						|
# done
 |