Nixfiles! :3
0

Configure Feed

Select the types of activity you want to include in your feed.

wallpaper switchup


Signed-off-by: MLC Bloeiman <mar@strawmelonjuice.com>

MLC Bloeiman (Jun 24, 2026, 1:12 AM +0200) 527d965a 65a3050d

+41 -32
+32 -27
home/desktop.nix
··· 68 68 Unit.Description = "Swap wallpaper based on time"; 69 69 Service = { 70 70 ExecStart = pkgs.writeShellScript "swap-wall" '' 71 - mkdir -p /home/mar/.local/share/wallpapers/slideshow 72 - if [ ! -d "/home/mar/.local/share/wallpapers/aesthetic-wallpapers" ]; then 73 - git clone https://github.com/D3Ext/aesthetic-wallpapers.git /home/mar/.local/share/wallpapers/aesthetic-wallpapers 74 - fi 71 + mkdir -p /home/mar/.local/share/wallpapers/slideshow 72 + if [ ! -d "/home/mar/.local/share/wallpapers/aesthetic-wallpapers" ]; then 73 + git clone https://github.com/D3Ext/aesthetic-wallpapers.git /home/mar/.local/share/wallpapers/aesthetic-wallpapers 74 + fi 75 75 76 - # Wait for awww-daemon to be ready 77 - until ${pkgs.awww}/bin/awww query >/dev/null 2>&1; do 78 - echo "Waiting for awww-daemon..." 79 - sleep 1 80 - done 76 + # Wait for awww-daemon to be ready 77 + until ${pkgs.awww}/bin/awww query >/dev/null 2>&1; do 78 + echo "Waiting for awww-daemon..." 79 + sleep 1 80 + done 81 81 82 - HOUR=$(date +%H) 83 - if [ $HOUR -ge 19 ] || [ $HOUR -lt 8 ]; then 84 - # Night time: 19:00 to 07:59 85 - ln -sf /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pastel-window.png /home/mar/.local/share/wallpapers/current_wallpaper.png 86 - # Fake slideshow! 87 - cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pastel-window.png /home/mar/.local/share/wallpapers/slideshow/1.png 88 - cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pastel-window.png /home/mar/.local/share/wallpapers/slideshow/2.png 89 - cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pastel-window.png /home/mar/.local/share/wallpapers/slideshow/3.png 90 - ${pkgs.awww}/bin/awww img /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pastel-window.png 91 - else 92 - # Day time 93 - ln -sf /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pixel_big_city.png /home/mar/.local/share/wallpapers/current_wallpaper.png 94 - # Here too 95 - cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pixel_big_city.png /home/mar/.local/share/wallpapers/slideshow/1.png 96 - cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pixel_big_city.png /home/mar/.local/share/wallpapers/slideshow/2.png 97 - cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pixel_big_city.png /home/mar/.local/share/wallpapers/slideshow/3.png 98 - ${pkgs.awww}/bin/awww img /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pixel_big_city.png 99 - fi 82 + HOUR=$(date +%H) 83 + if [ $HOUR -ge 19 ] || [ $HOUR -lt 8 ]; then 84 + # Night time: 19:00 to 07:59 85 + echo "Good night!"; 86 + ln -sf /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pastel-window.png /home/mar/.local/share/wallpapers/current_wallpaper.png 87 + # Fake slideshow! 88 + cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pastel-window.png /home/mar/.local/share/wallpapers/slideshow/1.png 89 + cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pastel-window.png /home/mar/.local/share/wallpapers/slideshow/2.png 90 + cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pastel-window.png /home/mar/.local/share/wallpapers/slideshow/3.png 91 + # ${pkgs.awww}/bin/awww img /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pastel-window.png 92 + # AWWW supports whatever! 93 + ${pkgs.awww}/bin/awww img /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/retro_city.gif 94 + else 95 + # Day time 96 + echo "Good day~!"; 97 + ln -sf /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pixel_big_city.png /home/mar/.local/share/wallpapers/current_wallpaper.png 98 + # Here too 99 + cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pixel_big_city.png /home/mar/.local/share/wallpapers/slideshow/1.png 100 + cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pixel_big_city.png /home/mar/.local/share/wallpapers/slideshow/2.png 101 + cp --update=all /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pixel_big_city.png /home/mar/.local/share/wallpapers/slideshow/3.png 102 + # AWWW supports whatever! 103 + ${pkgs.awww}/bin/awww img /home/mar/.local/share/wallpapers/aesthetic-wallpapers/images/pixel_big_city.png 104 + fi 100 105 ''; 101 106 }; 102 107 };
+9 -5
home/modules/niri.nix
··· 164 164 { command = [ "awww-daemon" ]; } 165 165 { 166 166 command = [ 167 - "awww" 168 - "img" 169 - "/home/mar/.local/share/wallpapers/current_wallpaper.png" 167 + "systemctl" 168 + "--user" 169 + "restart" 170 + "wallpaper-switcher.service" 171 + # This runs 172 + # "awww" "img" "/home/mar/.local/share/wallpapers/current_wallpaper.png" 173 + # But smarter. 170 174 ]; 171 175 } 172 176 { command = [ "waybar" ]; } ··· 300 304 301 305 hotkey-overlay.title = "Open that gnome file browser"; 302 306 }; 303 - "Mod+B" = { 307 + "Mod+Shift+B" = { 304 308 action.spawn = "zen"; 305 309 hotkey-overlay.title = "Open browser: Zen"; 306 310 }; 307 - "Mod+Shift+B" = { 311 + "Mod+B" = { 308 312 309 313 action.spawn = "vivaldi"; 310 314 hotkey-overlay.title = "Open browser: Vivaldi";