From: Skullheadx Date: Mon, 4 May 2026 19:57:16 +0000 (-0400) Subject: sfeed X-Git-Url: http://git.skullheadx.com/nixos/projects.html?a=commitdiff_plain;h=cbcad0fe018e0d8e71ef4af097ed7b55cf537f68;p=nixos.git sfeed --- diff --git a/configuration.nix b/configuration.nix index 109b994..5efc8ec 100644 --- a/configuration.nix +++ b/configuration.nix @@ -93,6 +93,13 @@ # programs here, NOT in environment.systemPackages ]; + environment.sessionVariables = { + BROWSER = "surf"; + SFEED_PLUMBER = "$BROWSER"; + SFEED_URL_FILE = "$HOME/.local/share/sfeed/sfeed_read_url_file"; + }; + + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; diff --git a/dotfiles/sfeed/sfeedrc b/dotfiles/sfeed/sfeedrc new file mode 100644 index 0000000..e12c577 --- /dev/null +++ b/dotfiles/sfeed/sfeedrc @@ -0,0 +1,15 @@ +sfeedpath="$HOME/.local/share/sfeed/feeds" + +# list of feeds to fetch: +feeds() { + # get youtube Atom feed: curl -s -L 'https://www.youtube.com/user/gocoding/videos' | sfeed_web | cut -f 1 + + feed "youtube Luke Smith" "https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA" + feed "youtube Jonathan Pageau The Symbolic World" "https://www.youtube.com/feeds/videos.xml?channel_id=UCtCTSf3UwRU14nYWr_xm-dQ" + feed "website Luke Smith" "https://lukesmith.xyz//index.xml" + feed "lobsters" "https://lobste.rs/t/person,meta,design,lisp,vim,security,openbsd,c,go,linux,scaling,unix,privacy,devops,hardware,freebsd,reversing,networking,release,databases,virtualization,api,web,rant,emacs,philosophy,satire,practices,vcs,programming,games,haskell,ask,distributed,culture,compilers,elixir,graphics,testing,debugging,cryptography,netbsd,css,performance,dragonflybsd,plt,osdev,email,zig,nix,retrocomputing,editors.rss" "https://lobste.rs" + feed "ziglang" "https://ziglang.org/news/index.xml" "https://ziglang.org/" + feed "matklad" "https://matklad.github.io/feed.xml" + feed "mitchell hashimoto" "https://mitchellh.com/feed.xml" + feed "suckless" "https://suckless.org/atom.xml" "https://suckless.org" +} diff --git a/dotfiles/sxhkd/sxhkdrc b/dotfiles/sxhkd/sxhkdrc index a0297cc..13a4ceb 100644 --- a/dotfiles/sxhkd/sxhkdrc +++ b/dotfiles/sxhkd/sxhkdrc @@ -7,6 +7,9 @@ super + Return super + b @surf@/bin/surf +super + shift + b + @librewolf@/bin/librewolf + XF86AudioRaiseVolume @pamixer@/bin/pamixer -i 5 @@ -24,3 +27,11 @@ super + shift + s super + l @lockscreen@/bin/lock-screen + +super + f + @st@/bin/st -e @sfeed@/bin/sfeed_curses ~/.local/share/sfeed/feeds/* + +super + m + @st@/bin/st -e @rmpc@/bin/rmpc + + diff --git a/hjem.nix b/hjem.nix index fbed383..54a7a16 100644 --- a/hjem.nix +++ b/hjem.nix @@ -28,6 +28,9 @@ xdotool = pkgs.xdotool; xclip = pkgs.xclip; lockscreen = pkgs.lock-screen; + sfeed = pkgs.sfeed; + rmpc = pkgs.rmpc; + librewolf = pkgs.librewolf; } ); @@ -36,6 +39,8 @@ ".config/calcurse".source = ./dotfiles/calcurse; + ".sfeed/sfeedrc".source = ./dotfiles/sfeed/sfeedrc; + }; packages = with pkgs; [ @@ -47,6 +52,7 @@ zathura lf calcurse + sfeed (pkgs.writeShellScriptBin "surf.sh" ( builtins.readFile (