]> Skullheadx's Git Forge - nixos.git/commitdiff
sfeed
authorSkullheadx <admonty1@protonmail.com>
Mon, 4 May 2026 19:57:16 +0000 (15:57 -0400)
committerSkullheadx <admonty1@protonmail.com>
Mon, 4 May 2026 19:57:16 +0000 (15:57 -0400)
configuration.nix
dotfiles/sfeed/sfeedrc [new file with mode: 0644]
dotfiles/sxhkd/sxhkdrc
hjem.nix

index 109b9942926875c9ecb9f05b84f0825a3199a632..5efc8ec257515b8bcaab0c85d0cba6393968ecf1 100644 (file)
     # 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 (file)
index 0000000..e12c577
--- /dev/null
@@ -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"
+}
index a0297cc48b3738ac58cad2f84c8c8103f86dae2a..13a4ceb293afd38b1c15e515b4c97b64fedcfbc9 100644 (file)
@@ -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
+
index fbed38341a80fab336365428c7c58d6c503e1d87..54a7a16f0a64c33064a2285d1cd8c2203b4ade46 100644 (file)
--- 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 (