mail,mpv,qutebrowser,vifm: Fix small issues
Added videos directory to vifm quick marks (`v`). Fixed (hopefully) qutebrowser statusbar hiding and showing. Improved mail checking script password file handling by switching the hard-coded path to one still somewhat hard-coded, but encapsulated in a variable to make changing it later on easier. The script is a bit slap-dash anyway, so when refactored should be refactored overall. Added `gallery-dl` handling by mpv, whenever a link starting with `gdl://` is passed in.
This commit is contained in:
parent
15f5f0b5c9
commit
41bfe2df69
4 changed files with 39 additions and 9 deletions
|
|
@ -17,6 +17,8 @@
|
|||
# MBSYNC_POST="/bin/usr/cmd-to-run"
|
||||
# MBSYNC_NOTIFY=1
|
||||
|
||||
PASSWORD_FILE="$HOME/.local/share/pass/misc/aerc-gmail-app-password.gpg"
|
||||
|
||||
prehook() {
|
||||
if [ -n "$MBSYNC_PRE" ]; then
|
||||
eval "$MBSYNC_PRE"
|
||||
|
|
@ -64,7 +66,7 @@ checkonline() {
|
|||
# warn user that he has to enter his password in a moment
|
||||
# to stop catching him offguard or entering something by accident
|
||||
checkwarnuser() {
|
||||
agt=$(gpg2 --decrypt --no-tty --quiet --no-verbose --for-your-eyes-only --pinentry-mode cancel ~/.local/share/pass/misc/aerc-gmail-app-password.gpg 2>&1)
|
||||
agt=$(gpg2 --decrypt --no-tty --quiet --no-verbose --for-your-eyes-only --pinentry-mode cancel "$PASSWORD_FILE" 2>&1)
|
||||
if echo "$agt" | grep -qE 'No secret key'; then
|
||||
notify "Mail: Password phrase needed!"
|
||||
sleep 2.5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue