Wallpaper: Use GPU for video decoding.
This commit is contained in:
parent
3252822100
commit
40a2786c54
|
@ -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}
|
||||
'')
|
||||
];
|
||||
})
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue