mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
feat(newsboat): open with linkhandler
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let newsboat-home = "~/cloud/syncthing/common/newsboat";
|
let
|
||||||
|
newsboat-home = "~/cloud/syncthing/common/newsboat";
|
||||||
|
linkhandler-bin = "${pkgs.scripts.linkhandler}/bin/linkhandler";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.shellAliases.newsboat = "${pkgs.newsboat}/bin/newsboat -u ${newsboat-home}/urls";
|
environment.shellAliases.newsboat = "${pkgs.newsboat}/bin/newsboat -u ${newsboat-home}/urls";
|
||||||
@@ -10,6 +12,8 @@ in
|
|||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
auto-reload yes
|
auto-reload yes
|
||||||
|
|
||||||
|
external-url-viewer "${pkgs.urlscan}/bin/urlscan -dc -r '${linkhandler-bin} {}'"
|
||||||
|
|
||||||
bind-key j down
|
bind-key j down
|
||||||
bind-key k up
|
bind-key k up
|
||||||
bind-key j next articlelist
|
bind-key j next articlelist
|
||||||
@@ -36,6 +40,11 @@ in
|
|||||||
color listnormal_unread blue default
|
color listnormal_unread blue default
|
||||||
color listfocus_unread yellow default bold
|
color listfocus_unread yellow default bold
|
||||||
color info red black 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