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"
|
style="laptop-rbw"
|
||||||
echo "this is x11"
|
echo "this is x11"
|
||||||
else
|
else
|
||||||
style="laptop-rbw-wayland"
|
style="laptop-wayland"
|
||||||
echo "this is wayland"
|
echo "this is wayland"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -31,7 +31,7 @@ passwords=$(rbw list)
|
||||||
|
|
||||||
prompt='BW'
|
prompt='BW'
|
||||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
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
|
# 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
|
# 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
|
# done
|
||||||
)
|
)
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
# Ask whether pass, user or both are required
|
# Ask whether pass, user or both are required
|
||||||
|
@ -52,7 +52,7 @@ options=("Password" \
|
||||||
"OTP")
|
"OTP")
|
||||||
|
|
||||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
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
|
# 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
|
# 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
|
# done
|
||||||
)
|
)
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
# echo $option
|
# echo $option
|
||||||
|
|
Loading…
Reference in a new issue