mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(newsboat): open with linkhandler
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
{ pkgs, ... }:
|
||||
let newsboat-home = "~/cloud/syncthing/common/newsboat";
|
||||
let
|
||||
newsboat-home = "~/cloud/syncthing/common/newsboat";
|
||||
linkhandler-bin = "${pkgs.scripts.linkhandler}/bin/linkhandler";
|
||||
in
|
||||
{
|
||||
environment.shellAliases.newsboat = "${pkgs.newsboat}/bin/newsboat -u ${newsboat-home}/urls";
|
||||
@@ -10,6 +12,8 @@ in
|
||||
extraConfig = ''
|
||||
auto-reload yes
|
||||
|
||||
external-url-viewer "${pkgs.urlscan}/bin/urlscan -dc -r '${linkhandler-bin} {}'"
|
||||
|
||||
bind-key j down
|
||||
bind-key k up
|
||||
bind-key j next articlelist
|
||||
@@ -36,6 +40,11 @@ in
|
||||
color listnormal_unread blue default
|
||||
color listfocus_unread yellow default bold
|
||||
color info red black bold
|
||||
|
||||
browser ${linkhandler-bin}/bin/linkhandler
|
||||
macro , open-in-browser
|
||||
macro v set browser "${pkgs.utillinux}/bin/setsid ${pkgs.coreutils}/bin/nohup ${pkgs.mpv}/bin/mpv"; open-in-browser ; set browser ${linkhandler-bin}
|
||||
macro w set browser "${pkgs.w3m}/bin/w3m"; open-in-browser ; set browser ${linkhandler-bin}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user