diff options
author | ensa <psii@riseup.net> | 2021-09-16 17:37:41 -0700 |
---|---|---|
committer | ensa <psii@riseup.net> | 2021-09-16 17:37:41 -0700 |
commit | ebae3707b36e9a83014ef08271d75bd9826bb999 (patch) | |
tree | 9a9a0b3d9a7c6a4475a5394f2bd25848ebadb552 /bin/mbsync-cron | |
parent | 3f4e930385675a4613db5f12b19557b126c29559 (diff) | |
download | cfg-ebae3707b36e9a83014ef08271d75bd9826bb999.tar.gz |
organization and replacements, fixes
bin/ bother, mbsync-cron, rsschk: notify-send switched to notif catgirl-open.sh: simplified comm-sel: removed cordless kbsetup: sets up keyboard stuff lh: cleanup added mov and wav support audio files now create a terminal mpv notif: sends notification to xnotify config/ X11/ xprofile: replaced keyboard lines with kbsetup replaced dunst with xnotify/tiramisu added a line for cleaning up catgirl-open.sh xresources: xnotify resources betteresc: xmodmap file for easy-to-access hyper key color/colors.sh: cleaned up dunst/dunstrc: removed lf/lfrc: fixed prompt replaced notify-send with notif shrc: moved MEDNAFEN_HOME to $HOME_EXT vis/visrc.lua: add ctags, fix hyper|esc issue
Diffstat (limited to 'bin/mbsync-cron')
-rwxr-xr-x | bin/mbsync-cron | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mbsync-cron b/bin/mbsync-cron index fc611c2..711b60f 100755 --- a/bin/mbsync-cron +++ b/bin/mbsync-cron @@ -32,7 +32,7 @@ syncandnotify() { printf ' %s' "$newcount" > "$XDG_DATA_HOME/mail/$account/note" # don't notify if there isn't new mail if [ "$newcount" -gt "0" ]; then - notify-send --app-name="mbsync-cron" "mail fetcher" "new mail for profile $account! [$newcount]" & + notif "mail fetcher" "new mail for profile $account! [$newcount]" & # reduce output if you have a lot of new mail if [ "$newcount" -lt "16" ]; then for file in $new; do @@ -41,7 +41,7 @@ syncandnotify() { from=$(awk '/^From: / && ++n ==1,/^\<.*\>:/' "$file" | awk '{ $1=""; if (NF>=3)$NF=""; print $0 }' | sed '1!d'| sed '1,/From/s/From: //') # modified version of broken $subject variable, only prints the first subject line (so forwards are slightly unclear) subject=$(awk '/^Subject: / && ++n == 1,/^\<.*\>: / && ++i == 2' "$file" | sed '$D' | grep -m 1 '^Subject: ' | sed 's/Subject: //') - notify-send --app-name="mbsync-cron" "$from:" "$subject" & + notif "$from:" "$subject" & # sleep for half a second to avoid notification clog sleep .5 done |