fixing rofi-rbw on wayland
This commit is contained in:
parent
8cb3ff577f
commit
d33b62a830
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue