diff options
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/fetch_mail.sh | 10 | ||||
-rwxr-xr-x | .local/bin/linkview | 3 | ||||
-rwxr-xr-x | .local/bin/ndate | 4 |
3 files changed, 8 insertions, 9 deletions
diff --git a/.local/bin/fetch_mail.sh b/.local/bin/fetch_mail.sh index 416f7e0..55636a0 100755 --- a/.local/bin/fetch_mail.sh +++ b/.local/bin/fetch_mail.sh @@ -1,5 +1,6 @@ #!/bin/sh +export MAIL=$HOME/.local/share/mail export GNUPGHOME=$HOME/.local/share/gnupg export PASSWORD_STORE_DIR=$HOME/.local/share/pass @@ -16,14 +17,13 @@ else fi if ! echo test | gpg2 --sign --batch --no-tty --pinentry-mode error -o /dev/null >/dev/null 2>&1; then - notify-send -u low -t 6000 'mbsync' ' GPG locked' + notify-send -u critical -t 6000 'mbsync' ' GPG locked' exit 1 fi killall mbsync >/dev/null 2>&1 -notify-send -u low -t 3000 'mbsync' ' fetching mail' >/dev/null 2>&1 +notify-send -u critical -t 3000 'mbsync' ' fetching mail' >/dev/null 2>&1 # { -mbsync -a || - notify-send -u low -t 6000 'mbsync' ' failed to fetch mail' >/dev/null 2>&1 +mbsync -a || notify-send -u critical -t 6000 'mbsync' ' failed to fetch mail' >/dev/null 2>&1 # }& # gsleep 0.2 # kill -74 $(pidof dwmblocks) >/dev/null 2>&1 @@ -35,7 +35,7 @@ mb1="$(ls "${MAIL:-/var/mail/jozan}"/gmx_shop/INBOX/new | wc -l 2>/dev/null)" # mb2="$(ls "${MAIL:-/var/mail/jozan}"/gmail_tos/INBOX/new | wc -l 2>/dev/null)" post_count="$((post_count + mb1))" if [ $post_count -gt $pre_count ]; then - notify-send -u normal 'NeoMutt' ' '$post_count' new mail(s)' + notify-send -u normal 'neomutt' ' '$post_count' new mail(s)' fi echo $post_count >$mc_file # sleep 1 diff --git a/.local/bin/linkview b/.local/bin/linkview index 605e0b7..f7dc7ca 100755 --- a/.local/bin/linkview +++ b/.local/bin/linkview @@ -501,7 +501,8 @@ sub linkview { my $answer; - if (@ARGV == 0 || $ARGV[0] eq '') { + if ((@ARGV == 0 or $ARGV[0] eq '') or + (@ARGV == 1 and $ARGV[0] eq '--dmenu')) { print STDERR "linkview: no URL\n"; exit 1; } diff --git a/.local/bin/ndate b/.local/bin/ndate index 323be43..79c20b7 100755 --- a/.local/bin/ndate +++ b/.local/bin/ndate @@ -50,7 +50,7 @@ use Capture::Tiny qw(capture); use constant { DATE_PATH => 'date', - NOTIFYSEND_PATH => 'notify-send' + NOTIFYSEND_PATH => 'herbe' }; sub main @@ -69,8 +69,6 @@ sub main $date = scalar reverse $date; system( NOTIFYSEND_PATH, - '-t', '4000', - 'date', $date ); return; |