Wallpaper: Use GPU for video decoding.

This commit is contained in:
Dmitry Voronin 2025-01-01 19:33:03 +03:00
parent 3252822100
commit 40a2786c54
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ in
(lib.mkIf (cfg.videoPath != null) { (lib.mkIf (cfg.videoPath != null) {
environment.systemPackages = [ environment.systemPackages = [
(pkgs.writeShellScriptBin "wallpaper-video" '' (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}
'') '')
]; ];
}) })

View file

@ -8,8 +8,8 @@
let let
cfg = config.module.wallpaper; cfg = config.module.wallpaper;
url = "https://www.desktophut.com/files/Ob4WzyO9kcDtKft_Above%20the%20clouds_1_155846.mp4"; url = "https://www.desktophut.com/files/YodlHKEufG9PuGV_Cat%20Lofi%20Live%20Wallpaper.mp4";
sha256 = "sha256-3ginS0XeRl2qVOGPrxlJwWx8FnxuVGQRgo4Ha6+KbqM="; sha256 = "sha256-l76+wlP0Jb/ULqN4bX8eqdwKnIlbOwO3HuCV1DPoXOE=";
video = true; video = true;
# Forse black and white for text. # Forse black and white for text.