From a2dbf8d3df9bbce3df9045d87507da22128408db Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 9 Mar 2021 09:20:45 -0600 Subject: [PATCH] Add hidpi rofi to the rofi-yt script --- scripts/yt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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