Add newsboat
This commit is contained in:
parent
41fdba3110
commit
96c2fddfa9
2 changed files with 58 additions and 2 deletions
53
modules/apps/newsboat.nix
Normal file
53
modules/apps/newsboat.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.modules.apps.newsboat;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.apps.newsboat = {
|
||||||
|
enable = lib.my.mkBoolOpt false;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home-manager.users.${config.user.name} = {
|
||||||
|
|
||||||
|
programs.newsboat = {
|
||||||
|
enable = true;
|
||||||
|
autoFetchArticles = {
|
||||||
|
enable = true;
|
||||||
|
onCalendar = "hourly";
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
urls-source "ocnews"
|
||||||
|
ocnews-url "https://cloud.banditlair.com"
|
||||||
|
ocnews-login "paultrial"
|
||||||
|
ocnews-passwordeval "secret-tool lookup elfeed nextcloud"
|
||||||
|
|
||||||
|
cleanup-on-quit yes
|
||||||
|
|
||||||
|
bind gg everywhere home
|
||||||
|
bind G everywhere end
|
||||||
|
|
||||||
|
bind u everywhere toggle-article-read
|
||||||
|
|
||||||
|
bind , everywhere sort
|
||||||
|
|
||||||
|
bind ^u everywhere pageup
|
||||||
|
bind ^d everywhere pagedown
|
||||||
|
|
||||||
|
bind k everywhere up
|
||||||
|
bind j everywhere down
|
||||||
|
|
||||||
|
bind l feedlist open
|
||||||
|
bind l articlelist open
|
||||||
|
bind h articlelist quit
|
||||||
|
bind h article quit
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -32,7 +32,10 @@ in
|
||||||
hardware = {
|
hardware = {
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
};
|
};
|
||||||
apps.rofi.enable = true;
|
apps = {
|
||||||
|
rofi.enable = true;
|
||||||
|
newsboat.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${config.user.name} =
|
home-manager.users.${config.user.name} =
|
||||||
|
|
@ -110,7 +113,7 @@ in
|
||||||
"$mod, W, exec, firefox"
|
"$mod, W, exec, firefox"
|
||||||
"$mod, R, exec, ${term} -e yazi"
|
"$mod, R, exec, ${term} -e yazi"
|
||||||
"$mod, E, exec, emacsclient -c"
|
"$mod, E, exec, emacsclient -c"
|
||||||
"$mod, N, exec, emacsclient -c --eval '(elfeed)'"
|
"$mod, N, exec, ${term} -e newsboat"
|
||||||
"$mod, I, exec, ${term} -e htop"
|
"$mod, I, exec, ${term} -e htop"
|
||||||
"$mod, M, exec, ${term} -e ncmpcpp"
|
"$mod, M, exec, ${term} -e ncmpcpp"
|
||||||
"$mod, V, exec, ${term} -e ncmpcpp -s visualizer"
|
"$mod, V, exec, ${term} -e ncmpcpp -s visualizer"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue