fixed fonts, added newsboat
This commit is contained in:
parent
8c4521015f
commit
11ab11d59e
23 changed files with 2892 additions and 37 deletions
|
@ -11,6 +11,7 @@ _: {
|
|||
./foot.nix
|
||||
./rofi.nix
|
||||
./WM
|
||||
./kitty.nix
|
||||
./vivado.nix
|
||||
./alacritty.nix
|
||||
./firefox.nix
|
||||
|
|
78
modules/gui/kitty.nix
Normal file
78
modules/gui/kitty.nix
Normal file
|
@ -0,0 +1,78 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
with lib; let
|
||||
cfg = config.modules.programs.kitty;
|
||||
username = config.modules.other.system.username;
|
||||
in {
|
||||
options.modules.programs.kitty.enable = mkEnableOption "kitty";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_size = "13.0";
|
||||
mouse_hide_wait = -1;
|
||||
url_style = "curly";
|
||||
open_url_with = "default";
|
||||
background_opacity = "0.9";
|
||||
confirm_os_window_close = "0";
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
|
||||
cursor_text_color = "background";
|
||||
|
||||
url_color = "#83a598";
|
||||
|
||||
visual_bell_color = "#8ec07c";
|
||||
bell_border_color = "#8ec07c";
|
||||
|
||||
active_border_color = "#d3869b";
|
||||
inactive_border_color = "#665c54";
|
||||
|
||||
foreground = "#ebdbb2";
|
||||
background = "#282828";
|
||||
selection_foreground = "#928374";
|
||||
selection_background = "#ebdbb2";
|
||||
|
||||
active_tab_foreground = "#fbf1c7";
|
||||
active_tab_background = "#665c54";
|
||||
inactive_tab_foreground = "#a89984";
|
||||
inactive_tab_background = "#3c3836";
|
||||
|
||||
# black (bg3/bg4)
|
||||
color0 = "#665c54";
|
||||
color8 = "#7c6f64";
|
||||
|
||||
# red
|
||||
color1 = "#cc241d";
|
||||
color9 = "#fb4934";
|
||||
|
||||
#: green
|
||||
color2 = "#98971a";
|
||||
color10 = "#b8bb26";
|
||||
|
||||
# yellow
|
||||
color3 = "#d79921";
|
||||
color11 = "#fabd2f";
|
||||
|
||||
# blue
|
||||
color4 = "#458588";
|
||||
color12 = "#83a598";
|
||||
|
||||
# purple
|
||||
color5 = "#b16286";
|
||||
color13 = "#d3869b";
|
||||
|
||||
# aqua
|
||||
color6 = "#689d6a";
|
||||
color14 = "#8ec07c";
|
||||
|
||||
# white (fg4/fg3)
|
||||
color7 = "#a89984";
|
||||
color15 = "#bdae93";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -3,7 +3,7 @@ _: {
|
|||
./btop.nix
|
||||
# ./helix.nix
|
||||
./neovim.nix
|
||||
# ./newsboat.nix
|
||||
./newsboat.nix
|
||||
./ncmpcpp.nix
|
||||
./yazi.nix
|
||||
];
|
||||
|
|
73
modules/tui/newsboat.nix
Normal file
73
modules/tui/newsboat.nix
Normal file
|
@ -0,0 +1,73 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: with lib; let
|
||||
cfg = config.modules.programs.newsboat;
|
||||
username = config.modules.other.system.username;
|
||||
in {
|
||||
options.modules.programs.newsboat.enable = mkEnableOption "newsboat";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
programs.newsboat = {
|
||||
enable = true;
|
||||
autoReload = true;
|
||||
extraConfig = ''
|
||||
download-full-page yes
|
||||
download-retries 3
|
||||
error-log /dev/null
|
||||
cookie-cache ~/.cache/newsboat/cookies.txt
|
||||
bind-key j down
|
||||
bind-key k up
|
||||
bind-key G end
|
||||
bind-key g home
|
||||
bind-key d pagedown
|
||||
bind-key u pageup
|
||||
bind-key a toggle-article-read
|
||||
|
||||
color listnormal color15 default
|
||||
color listnormal_unread color2 default
|
||||
color listfocus_unread color2 color0
|
||||
color listfocus default color0
|
||||
color background default default
|
||||
color article default default
|
||||
color end-of-text-marker color8 default
|
||||
color info color4 color8
|
||||
color hint-separator default color8
|
||||
color hint-description default color8
|
||||
color title color14 color8
|
||||
|
||||
highlight article "^(Feed|Title|Author|Link|Date): .+" color4 default bold
|
||||
highlight article "^(Feed|Title|Author|Link|Date):" color14 default bold
|
||||
highlight article "\\((link|image|video)\\)" color8 default
|
||||
highlight article "https?://[^ ]+" color4 default
|
||||
highlight article "\[[0-9]+\]" color6 default bold
|
||||
user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
|
||||
'';
|
||||
urls = [
|
||||
{
|
||||
title = "NixOS Weekly";
|
||||
url = "https://weekly.nixos.org/feeds/all.rss.xml";
|
||||
}
|
||||
{
|
||||
title = "Hacker News";
|
||||
url = "https://hnrss.org/newest";
|
||||
}
|
||||
{
|
||||
title = "Phoronix";
|
||||
url = "https://www.phoronix.com/rss.php";
|
||||
}
|
||||
{
|
||||
title = "LWN";
|
||||
url = "https://lwn.net/headlines/rss";
|
||||
}
|
||||
{
|
||||
title = "Hyprland Commit Feed";
|
||||
url = "https://github.com/hyprwm/Hyprland/commits/main.atom";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue