Heif/Heic file thumbnailer integration
This commit is contained in:
parent
3ba90df615
commit
b8eb9a50ab
3 changed files with 17 additions and 0 deletions
15
hm_modules/heif.nix
Normal file
15
hm_modules/heif.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let thumbnailer = "${pkgs.libheif.bin}/bin/heif-thumbnailer"; in
|
||||
{
|
||||
# home.packages = [
|
||||
# pkgs.libheif.bin
|
||||
# ];
|
||||
|
||||
xdg.dataFile."thumbnailers/heic.thumbnailer".text = ''
|
||||
[Thumbnailer Entry]
|
||||
TryExec=${thumbnailer}
|
||||
Exec=${thumbnailer} -s %s %i %o
|
||||
MimeType=image/heif;image/heic
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue