final fix for feed to maildir setup - dotfiles - These are my dotfiles. There are many like it, but these are mine.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit b3b5d34a41ca800ff8938d7528a410103e280dd8
(DIR) parent 7f2bcf6c6c4d7809440deea114f0e5380804cb48
(HTM) Author: Jay Scott <me@jay.scot>
Date: Sat, 17 Sep 2022 12:08:16 +0100
final fix for feed to maildir setup
Diffstat:
M README | 1 -
M bin/offline.sh | 4 ++--
R bin/update_feeds -> bin/update_fee⦠| 0
M bin/yt_dl.sh | 3 ++-
M bootstrap.sh | 2 +-
M fdm/config | 17 +++++++++++++----
M mutt/muttrc | 1 +
M pkg/archlinux | 6 ------
M sway/config | 1 -
M waybar/waybar_mail.sh | 2 +-
10 files changed, 20 insertions(+), 17 deletions(-)
---
(DIR) diff --git a/README b/README
@@ -14,7 +14,6 @@ all, the closest I come is using IRC.
window manager : sway
terminal : foot
launcher : bemenu
- notifications : dunst
email : mutt / fdm
browser : qutebrowser
video : mpv
(DIR) diff --git a/bin/offline.sh b/bin/offline.sh
@@ -1,10 +1,10 @@
#!/bin/sh
# youtube videos
-yt_dl
+yt_dl.sh
# podcasts
castget -p
# rss feeds (http/gemini) download
-# update_feeds
+update_feeds.sh
(DIR) diff --git a/bin/update_feeds b/bin/update_feeds.sh
(DIR) diff --git a/bin/yt_dl.sh b/bin/yt_dl.sh
@@ -7,6 +7,7 @@
# user config
savepath="/data/media/videos"
cfgdir="${HOME}/.cache/yt_dl"
+post="echo 'video downloaded' | mutt -s 'YT: %(channel)s ' -- me@jay.scot"
# youtube-dl related settings
yt="yt-dlp"
@@ -56,7 +57,7 @@ get_video() {
flock -n 9 || exit 1
echo "$1 downloading videos"
- $yt ${dlflags} "${arcfile}" "$2" -o "${saveloc}/%(playlist_index)s_%(title)s.%(ext)s"
+ $yt ${dlflags} "${arcfile}" "$2" -o "${saveloc}/%(playlist_index)s_%(title)s.%(ext)s" --exec "$post"
rm "${lockfile}"
}
(DIR) diff --git a/bootstrap.sh b/bootstrap.sh
@@ -4,7 +4,7 @@ DOTFILES=$(pwd)
FILES='bashrc profile vimrc castgetrc'
ROOT='bin'
-CONFIG='dunst fdm foot git mpd mutt ncmpcpp qutebrowser sfeed senpai sway waybar'
+CONFIG='fdm foot git mpd mutt ncmpcpp qutebrowser sfeed senpai sway waybar'
AUR='paru'
link() {
(DIR) diff --git a/fdm/config b/fdm/config
@@ -21,25 +21,34 @@ account "personal" imaps
user "me@jay.scot"
pass "${imap_pass}"
+# maildirs
+action "inbox" maildir "${path}/%u/Inbox"
+
# mailing lists
action "freebsd-announce" maildir "${path}/freebsd.announce"
action "freebsd-current" maildir "${path}/freebsd.current"
action "freebsd-questions" maildir "${path}/freebsd.questions"
+action "sourcehut-discuss" maildir "${path}/sr.ht-discuss"
# feeds
action "feedtag" tag "msgid" value "%1"
-action "feedget" rewrite "%h/.config/bin/fdm_parse_feeds"
+action "feedget" rewrite "%h/bin/fdm_parse_feeds"
action "feedsave" {
maildir "${feeddir}%1"
add-to-cache "${feedcache}" key "%[msgid]"
keep
}
+# source hut
+match "^List-Id:.*sr\\.ht-.*\\.lists\\.sr\\.ht" in headers {
+ match "^List-Id:.*discuss" in headers action "sourcehut-discuss"
+}
+
# freebsd
match "^List-Id:.*freebsd-.*\\.freebsd\\.org" in headers {
- match "^List-Id:.*announce" in headers action "freebsd-announce"
- match "^List-Id:.*current" in headers action "freebsd-current"
- match "^List-Id:.*questions" in headers action "freebsd-questions"
+ match "^List-Id:.*announce" in headers action "freebsd-announce"
+ match "^List-Id:.*current" in headers action "freebsd-current"
+ match "^List-Id:.*questions" in headers action "freebsd-questions"
}
# sfeeds
(DIR) diff --git a/mutt/muttrc b/mutt/muttrc
@@ -99,6 +99,7 @@ set sidebar_folder_indent = yes
set sidebar_format = "%B%* [%N]"
bind index,pager \Ck sidebar-prev
bind index,pager <tab> sidebar-next
+bind index,pager <backtab> sidebar-prev
bind index,pager \Cl sidebar-open
# disable help menu
(DIR) diff --git a/pkg/archlinux b/pkg/archlinux
@@ -21,7 +21,6 @@ chrony
clipman
cronie
dhcpcd
-dunst
efibootmgr
fakeroot
fdm
@@ -41,10 +40,8 @@ go
go-mtpfs-git
groff
grub
-htop
imagemagick
inetutils
-isync
iw
iwd
jq
@@ -73,7 +70,6 @@ lib32-v4l-utils
lib32-vulkan-icd-loader
lib32-vulkan-radeon
libcurl-gnutls
-librewolf-bin
libtool
libva-mesa-driver
libxft
@@ -89,8 +85,6 @@ mpd
mpv
mutt
ncmpcpp
-newsboat
-notmuch
ntfs-3g
ntp
ocl-icd
(DIR) diff --git a/sway/config b/sway/config
@@ -14,7 +14,6 @@ set $vol pamixer
# autostart
exec wlsunset -l 57.6495 -L 3.318
exec mpd
-exec dunst
exec wl-paste -t text --watch clipman store --no-persist
# apperance
(DIR) diff --git a/waybar/waybar_mail.sh b/waybar/waybar_mail.sh
@@ -1,6 +1,6 @@
#!/usr/bin/bash
-maildirnew="$HOME/mail/jay/Inbox/new/"
+maildirnew="$HOME/.mail/jay/Inbox/new/"
new="$(find $maildirnew -type f | wc -l)"
if [ $new -gt 0 ]