diff --git a/scripts/yt b/scripts/yt index d2a54d1..43c2d30 100755 --- a/scripts/yt +++ b/scripts/yt @@ -6,8 +6,18 @@ # yt search query takes input from the passed arg, prompts using fzf # yt -r takes input and prompts using rofi ($guicmd) +if [ $(hostname) = "chris-linuxlaptop" ]; then + style="laptop" + #echo "this is hidpi" +else + style="desktop" + #echo "this is not hidpi" +fi + +-no-lazy-grab -show drun -modi drun -theme launchers-git/"$style".rasi + defcmd="fzf" -guicmd="rofi -dmenu -i" #uncomment next line for dmenu +guicmd="rofi -no-lazy-grab -dmenu -i -theme launchers-git/"$style".rasi" #uncomment next line for dmenu #guicmd="dmenu -i -l 15" promptcmd="$defcmd" if [ -z "$*" ]; then