diff --git a/config/Wallpaper.nix b/config/Wallpaper.nix index e4e3b2c..08ecea5 100644 --- a/config/Wallpaper.nix +++ b/config/Wallpaper.nix @@ -4,7 +4,7 @@ in { config = lib.mkMerge [ (lib.mkIf cfg.video { environment.systemPackages = [ - (pkgs.writeShellScriptBin "mpvpaper-sway" '' + (pkgs.writeShellScriptBin "wallpaper-video" '' mpvpaper -o 'no-audio --loop-file --panscan=1' '*' ${cfg.videoPath} '') ]; diff --git a/home/file/sway/default.nix b/home/file/sway/default.nix index 73d24d7..dbd740a 100644 --- a/home/file/sway/default.nix +++ b/home/file/sway/default.nix @@ -246,6 +246,6 @@ in include /etc/sway/config.d/* '' + builtins.readFile swayRc - + lib.optionalString config.module.wallpaper.video "exec mpvpaper-sway\n" + + lib.optionalString config.module.wallpaper.video "exec wallpaper-video\n" + lib.concatStringsSep "\n" config.module.sway.extraConfig; } diff --git a/option/Wallpaper.nix b/option/Wallpaper.nix index 90c6c34..8e16171 100644 --- a/option/Wallpaper.nix +++ b/option/Wallpaper.nix @@ -8,8 +8,8 @@ let cfg = config.module.wallpaper; - url = "https://preview.redd.it/d8oy5ye2vqyd1.gif?width=640&format=mp4&s=a00152d10d85859a688b8b4b12b9cf097f1cdb9b"; - sha256 = "sha256-k1wS1v/dcXihJA9vk9LXALodAWaQgQxkqfLZY7yugmA="; + url = "https://www.desktophut.com/files/Ob4WzyO9kcDtKft_Above%20the%20clouds_1_155846.mp4"; + sha256 = "sha256-3ginS0XeRl2qVOGPrxlJwWx8FnxuVGQRgo4Ha6+KbqM="; # Use video. video = true; diff --git a/package/homer/Config.nix b/package/homer/Config.nix index d4a3ac8..d152153 100644 --- a/package/homer/Config.nix +++ b/package/homer/Config.nix @@ -33,6 +33,12 @@ let (mkLink "Toolbox" "fa-toolbox" "https://it-tools.tech") (mkLink "Zigbee" "fa-satellite-dish" "https://zigbee.blakadder.com") ]) + (mkGroup "Wallpaper" "fa-panorama" [ + (mkLink "DesktopHut" "fa-image" "https://www.desktophut.com") + (mkLink "Motion Backgrounds" "fa-image" "https://motionbgs.com") + (mkLink "Unsplash" "fa-image" "https://unsplash.com") + (mkLink "Wallhaven" "fa-image" "https://wallhaven.cc/") + ]) (mkGroup "Pirate" "fa-skull-crossbones" [ (mkLink "1337x" "fa-skull-crossbones" "https://1337x.to") (mkLink "Cs.rin.ru" "fa-skull-crossbones" "https://cs.rin.ru/forum/index.php") diff --git a/package/swayscript/script/Reload.sh b/package/swayscript/script/Reload.sh index 2b952e0..bf82791 100644 --- a/package/swayscript/script/Reload.sh +++ b/package/swayscript/script/Reload.sh @@ -5,7 +5,7 @@ function reload() { # Sway. swaymsg reload pkill mpvpaper - mpvpaper-sway + wallpaper-video # Waybar. pkill waybar