blob: cd4c6b5258b49e3662ed0f8b1dc59e8fe17a09d4 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
;;; thanos-elfeed.el --- elfeed configuration -*- lexical-binding: t; -*-
;; Copyright (C) 2023 Thanos Apollo
;; Author: Thanos Apollo <[email protected]>
;; Keywords: extensions
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; ╭━━━━┳╮╱╱╱╱╱╱╱╱╱╱╱╱╱╱╭━━━╮╱╱╱╱╱╭╮╭╮╱╱╱╱╱╱╱╱╭━━━╮
;; ┃╭╮╭╮┃┃╱╱╱╱╱╱╱╱╱╱╱╱╱╱┃╭━╮┃╱╱╱╱╱┃┃┃┃╱╱╱╱╱╱╱╱┃╭━━╯
;; ╰╯┃┃╰┫╰━┳━━┳━╮╭━━┳━━╮┃┃╱┃┣━━┳━━┫┃┃┃╭━━╮╱╱╱╱┃╰━━┳╮╭┳━━┳━━┳━━╮
;; ╱╱┃┃╱┃╭╮┃╭╮┃╭╮┫╭╮┃━━┫┃╰━╯┃╭╮┃╭╮┃┃┃┃┃╭╮┃╭━━╮┃╭━━┫╰╯┃╭╮┃╭━┫━━┫
;; ╱╱┃┃╱┃┃┃┃╭╮┃┃┃┃╰╯┣━━┃┃╭━╮┃╰╯┃╰╯┃╰┫╰┫╰╯┃╰━━╯┃╰━━┫┃┃┃╭╮┃╰━╋━━┃
;; ╱╱╰╯╱╰╯╰┻╯╰┻╯╰┻━━┻━━╯╰╯╱╰┫╭━┻━━┻━┻━┻━━╯╱╱╱╱╰━━━┻┻┻┻╯╰┻━━┻━━╯
;; ╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱┃┃
;; ╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╰╯
;;; Code:
(require 'elfeed)
(require 'elfeed-goodies)
(setf elfeed-feeds
'(("https://hackaday.com/blog/feed/"
hackaday linux)
("https://protesilaos.com/news.xml"
protesilaos)
("https://protesilaos.com/codelog.xml"
proetesilaos)
("https://guix.gnu.org/feeds/blog.atom"
gnu guix)
("https://thanosapollo.com/posts/index.xml"
thanos)
("http://nullprogram.com/feed/"
emacs linux)
("https://drewdevault.com/blog/index.xml"
sourcehut drewdevault)
("https://spacepub.space/feeds/videos.xml?videoChannelId=2"
drewdevault video)
("https://odysee.com/$/rss/@DistroTube:2"
video dt)
("https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA"
video mental)
("https://www.youtube.com/feeds/videos.xml?channel_id=UCAiiOTio8Yu69c3XnR7nQBQ"
video daviwil)
("https://videos.lukesmith.xyz/feeds/videos.atom?sort=-publishedAt&isLocal=true"
video luke)
("https://www.youtube.com/feeds/videos.xml?channel_id=UCrc2iv2-G1FZ3VscM3zu2jg"
video zoogirl)
("https://www.youtube.com/feeds/videos.xml?channel_id=UC0uTPqBCFIpZxlz_Lv1tk_g"
video prot)
("https://www.youtube.com/feeds/videos.xml?channel_id=UC05XpvbHZUQOfA6xk4dlmcw"
video djware)
("https://archlinux.org/feeds/news/"
ArchLinux Latest)
("https://www.youtube.com/feeds/videos.xml?channel_id=UCsBjURrPoezykLs9EqgamOA"
fireship video)
("https://www.youtube.com/feeds/videos.xml?channel_id=UCl-J-ovSJhA3or73Q2uVpow"
medicosperf video)
("https://www.youtube.com/feeds/videos.xml?channel_id=UCSuHzQ3GrHSzoBbwrIq3LLA"
naomi video)
("https://www.youtube.com/feeds/videos.xml?channel_id=UCqYPhGiB9tkShZorfgcL2lA"
WhatIveLearned video)
("http://wikileaks.org/feed"
wikileaks)
("https://hackernoon.com/feed"
hackernoon)
("https://sachachua.com/blog/feed/"
sacha emacs)
("https://www.youtube.com/feeds/videos.xml?channel_id=UCl2mFZoRqjw_ELax4Yisf6w"
video Louis)
("https://www.youtube.com/feeds/videos.xml?channel_id=UC1yNl2E66ZzKApQdRuTQ4tw "
video sabine)
("https://bits.debian.org/feeds/feed.rss"
debian linux)
("https://torrentfreak.com/feed"
torrentfreak)
("https://www.youtube.com/feeds/videos.xml?channel_id=UCM6SlP9fiwPIjhkWmbg8Ojg"
video liberated-programmer)
("https://odysee.com/$/rss/@seytonic:c"
video seytonic)
("https://www.youtube.com/feeds/videos.xml?channel_id=UC1yNl2E66ZzKApQdRuTQ4tw"
video sabine)
("https://wp.medscape.com/cx/rssfeeds/2700.xml"
med medscape)
("https://nyxt.atlas.engineer/feed"
nyxt)
("https://www.science.org/action/showFeed?type=etoc&feed=rss&jc=sciimmunol"
science)))
(defun elfeed-mpv (&optional use-generic-p)
"Play video link with mpv."
(interactive "P")
(let ((entries (elfeed-search-selected)))
(cl-loop for entry in entries
do (elfeed-untag entry 'unread)
when (elfeed-entry-link entry)
do (start-process-shell-command "elfeed-video" nil (format "mpv \"%s\"" it)))
(mapc #'elfeed-search-update-entry entries)
(unless (use-region-p) (forward-line))))
(setf elfeed-goodies/entry-pane-size 0.55)
(elfeed-goodies/setup)
(define-key thanos/applications-map (kbd "f") 'elfeed)
(define-key elfeed-search-mode-map (kbd "v") 'elfeed-mpv)
(define-key elfeed-search-mode-map (kbd "U") 'elfeed-update)
(define-key thanos/applications-map (kbd "f") 'elfeed)
(provide 'thanos-elfeed)
;;; thanos-elfeed.el ends here
|