Introduction
Introduction Statistics Contact Development Disclaimer Help
final fix for feed to maildir setup - dotfiles - These are my dotfiles. There a…
Log
Files
Refs
README
---
commit b3b5d34a41ca800ff8938d7528a410103e280dd8
parent 7f2bcf6c6c4d7809440deea114f0e5380804cb48
Author: Jay Scott <[email protected]>
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(-)
---
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
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
diff --git a/bin/update_feeds b/bin/update_feeds.sh
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 ' -- [email protected]"
# 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_%(t…
+ $yt ${dlflags} "${arcfile}" "$2" -o "${saveloc}/%(playlist_index)s_%(t…
rm "${lockfile}"
}
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 wayb…
+CONFIG='fdm foot git mpd mutt ncmpcpp qutebrowser sfeed senpai sway waybar'
AUR='paru'
link() {
diff --git a/fdm/config b/fdm/config
@@ -21,25 +21,34 @@ account "personal" imaps
user "[email protected]"
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
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
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
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
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 ]
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.