updates and a lot of em
This commit is contained in:
parent
30cd55aca8
commit
bd0cf6ff9b
37 changed files with 618 additions and 96 deletions
|
@ -27,18 +27,19 @@ list_passwords() {
|
|||
|
||||
passwords=$(rbw list)
|
||||
|
||||
prompt='search for passwords...'
|
||||
prompt='BW'
|
||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||
SECRET=$(list_passwords | rofi -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
|
||||
sleep .1
|
||||
c=$((c+1))
|
||||
[[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
|
||||
done
|
||||
SECRET=$(list_passwords | rofi -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
|
||||
# sleep .1
|
||||
# c=$((c+1))
|
||||
# [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
|
||||
# done
|
||||
)
|
||||
else
|
||||
SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi)
|
||||
SECRET=$(list_passwords | rofi -i -p "${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi)
|
||||
fi
|
||||
|
||||
# Ask whether pass, user or both are required
|
||||
|
@ -49,16 +50,17 @@ 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 $@ &
|
||||
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
|
||||
sleep .1
|
||||
c=$((c+1))
|
||||
[[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
|
||||
done
|
||||
option=$(printf '%s\n' "${options[@]%}" | rofi -i -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
|
||||
# sleep .1
|
||||
# c=$((c+1))
|
||||
# [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
|
||||
# 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 -dmenu -p "" -theme ~/.config/rofi/launchers-git/$style.rasi)
|
||||
fi
|
||||
|
||||
# echo $option
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue