File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 5
5
shopt -s nullglob globstar
6
6
7
7
typeit=0
8
- if [ $1 == " --type" ]; then
8
+ if [ " $1 " == " --type" ]; then
9
9
typeit=1
10
10
shift
11
11
fi
@@ -20,8 +20,14 @@ password=$(printf '%s\n' "${password_files[@]}" | bemenu -p "Target" --fn "$BEME
20
20
[ -n " $password " ] || exit
21
21
22
22
if [ $typeit -eq 0 ]; then
23
- pass show -c " $password " 2> /dev/null
23
+ if pass show -c " $password " 2> /dev/null; then
24
+ mpv --really-quiet " $HOME /dotfiles/media/unlock2.wav" &
25
+ else
26
+ mpv --really-quiet " $HOME /dotfiles/media/boing.wav" &
27
+ fi
24
28
else
25
- pass show " $password " | { IFS= read -r pass; printf %s " $pass " ; } | ydotool type --file -
29
+ if pass show " $password " | { IFS= read -r pass; printf %s " $pass " ; } | ydotool type --file -; then
30
+ mpv --really-quiet " $HOME /dotfiles/media/unlock2.wav" &
31
+ fi
26
32
fi
27
33
You can’t perform that action at this time.
0 commit comments