From d33b62a83054442fca2e3616c7e7a251b4e3a969 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 14 Oct 2022 06:17:06 -0500 Subject: [PATCH] fixing rofi-rbw on wayland --- scripts/kderofi-rbw | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/kderofi-rbw b/scripts/kderofi-rbw index 930748d..e6bc170 100755 --- a/scripts/kderofi-rbw +++ b/scripts/kderofi-rbw @@ -5,7 +5,7 @@ if [ $(hostname) = "syl" ]; then style="laptop-rbw" echo "this is x11" else - style="laptop-rbw-wayland" + style="laptop-wayland" echo "this is wayland" fi else @@ -31,7 +31,7 @@ passwords=$(rbw list) prompt='BW' if [ $XDG_SESSION_TYPE = "x11" ]; then - SECRET=$(list_passwords | rofi -i -p "${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi + SECRET=$(list_passwords | rofi -sync -i -p "${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi # $@ & # 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 @@ -41,7 +41,7 @@ if [ $XDG_SESSION_TYPE = "x11" ]; then # done ) else - SECRET=$(list_passwords | rofi -no-lazy-grab -i -p "${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi) + SECRET=$(list_passwords | rofi -no-lazy-grab -sync -i -p "${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi) fi # Ask whether pass, user or both are required @@ -52,7 +52,7 @@ options=("Password" \ "OTP") if [ $XDG_SESSION_TYPE = "x11" ]; then - option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -p "" -theme ~/.config/rofi/launchers-git/$style.rasi + option=$(printf '%s\n' "${options[@]%}" | rofi -i -sync -dmenu -p "" -theme ~/.config/rofi/launchers-git/$style.rasi # $@ & # 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 @@ -62,7 +62,7 @@ if [ $XDG_SESSION_TYPE = "x11" ]; then # done ) else - option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -p "" -theme ~/.config/rofi/launchers-git/$style.rasi) + option=$(printf '%s\n' "${options[@]%}" | rofi -i -sync -dmenu -p "" -theme ~/.config/rofi/launchers-git/$style.rasi) fi # echo $option