summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home/home.nix13
-rw-r--r--home/newsboat-public.nix1
2 files changed, 11 insertions, 3 deletions
diff --git a/home/home.nix b/home/home.nix
index 89f67ea..6e67bd5 100644
--- a/home/home.nix
+++ b/home/home.nix
@@ -239,14 +239,16 @@
enable = true;
urls = (import ./newsboat-public.nix) ++ (import inputs.feeds).rss;
browser = lib.getExe' pkgs.offpunk "offpunk";
- reloadThreads = 200;
+ reloadThreads = 300;
queries = {
unread = ''unread="yes"'';
non-papers = ''( unread="yes" ) and ( tags !# "paper" )'';
non-video = ''( unread="yes" ) and ( tags !# "paper" ) and ( tags !# "video" )'';
paper = ''tags # "paper"'';
};
- extraConfig = ''
+ extraConfig = let
+ mkMpv = cmd: ''set browser "kitty @launch --type tab mpv --ytdl-format='b[height<=1100]' %u > /dev/null" ; ${cmd} ; set browser "${config.programs.newsboat.browser} %u"'';
+ in ''
color background white default
color listnormal white default
color listnormal_unread magenta default bold
@@ -257,7 +259,12 @@
ssl-verifypeer no
- macro v set browser "kitty @launch --type tab mpv --ytdl-format='b[height<=1100]' %u > /dev/null" ; open-in-browser ; set browser "${config.programs.newsboat.browser} %u"
+ macro v ${mkMpv "open-in-browser"}
+ macro 1 ${mkMpv "one"}
+ macro 2 ${mkMpv "two"}
+ macro 3 ${mkMpv "three"}
+ macro 4 ${mkMpv "four"}
+ macro 5 ${mkMpv "five"}
macro f set browser "${pkgs.xdg_utils}/bin/xdg-open %u >/dev/null 2>&1 &" ; open-in-browser ; set browser "${config.programs.newsboat.browser} %u"
macro d set browser "kitty @launch --type tab fish -c 'fetchpdf %u'" ; open-in-browser ; set browser "${config.programs.newsboat.browser} %u"
diff --git a/home/newsboat-public.nix b/home/newsboat-public.nix
index 6bdcafb..4e7929d 100644
--- a/home/newsboat-public.nix
+++ b/home/newsboat-public.nix
@@ -252,6 +252,7 @@ with import ./newsboat-lib.nix;
(ytag "UC07CjzGSWgY5lAdWZd_Ambw" "stuff") # Archeology Tube
(ytag "UCC_S5oOAJp0iaF4fDT3QS0g" "left") # verilybitchie
(ytag "UC6IxnFzHofFJ5X2PycSMsww" "stuff") # xkcd's What If?
+ (ytag "UClgXF_jwWAwPRu8nT1g90xQ" "stuff") # Matt Gray
(blender 2737) # blender developers
(blender 10) # reels
(blender 9) # open movies