From 40a2786c54cb2132fc98f61eb508ecf051cc99b1 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 1 Jan 2025 19:33:03 +0300 Subject: [PATCH] Wallpaper: Use GPU for video decoding. --- config/Wallpaper.nix | 2 +- option/Wallpaper.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/Wallpaper.nix b/config/Wallpaper.nix index 38c9e55..607c2ae 100644 --- a/config/Wallpaper.nix +++ b/config/Wallpaper.nix @@ -12,7 +12,7 @@ in (lib.mkIf (cfg.videoPath != null) { environment.systemPackages = [ (pkgs.writeShellScriptBin "wallpaper-video" '' - mpvpaper -o 'no-audio --loop-file --panscan=1' '*' ${cfg.videoPath} + mpvpaper -o 'no-audio --hwdec=auto --loop-file --panscan=1' '*' ${cfg.videoPath} '') ]; }) diff --git a/option/Wallpaper.nix b/option/Wallpaper.nix index 171c3d1..288a26b 100644 --- a/option/Wallpaper.nix +++ b/option/Wallpaper.nix @@ -8,8 +8,8 @@ let cfg = config.module.wallpaper; - url = "https://www.desktophut.com/files/Ob4WzyO9kcDtKft_Above%20the%20clouds_1_155846.mp4"; - sha256 = "sha256-3ginS0XeRl2qVOGPrxlJwWx8FnxuVGQRgo4Ha6+KbqM="; + url = "https://www.desktophut.com/files/YodlHKEufG9PuGV_Cat%20Lofi%20Live%20Wallpaper.mp4"; + sha256 = "sha256-l76+wlP0Jb/ULqN4bX8eqdwKnIlbOwO3HuCV1DPoXOE="; video = true; # Forse black and white for text.