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
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
@ -136,6 +136,7 @@
|
||||||
../hm_modules/dunst.nix
|
../hm_modules/dunst.nix
|
||||||
# ../hm_modules/grobi.nix
|
# ../hm_modules/grobi.nix
|
||||||
../hm_modules/gtk_theme.nix
|
../hm_modules/gtk_theme.nix
|
||||||
|
../hm_modules/heif.nix
|
||||||
../hm_modules/helix.nix
|
../hm_modules/helix.nix
|
||||||
# ../hm_modules/joystickwake.nix
|
# ../hm_modules/joystickwake.nix
|
||||||
../hm_modules/kakoune.nix
|
../hm_modules/kakoune.nix
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,7 @@
|
||||||
../hm_modules/dunst.nix
|
../hm_modules/dunst.nix
|
||||||
# ../hm_modules/grobi.nix
|
# ../hm_modules/grobi.nix
|
||||||
../hm_modules/gtk_theme.nix
|
../hm_modules/gtk_theme.nix
|
||||||
|
../hm_modules/heif.nix
|
||||||
../hm_modules/helix.nix
|
../hm_modules/helix.nix
|
||||||
../hm_modules/joystickwake.nix
|
../hm_modules/joystickwake.nix
|
||||||
# ../hm_modules/kakoune.nix
|
# ../hm_modules/kakoune.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue