feh: add enableAutoreload option
This change enables the inotify-based auto-reload feature of feh, which causes images to be refreshed when the image file changes.
This commit is contained in:
parent
80462c3884
commit
612b7f71a0
@ -1,6 +1,7 @@
|
||||
{ stdenv, fetchurl, makeWrapper
|
||||
, xorg, imlib2, libjpeg, libpng
|
||||
, curl, libexif, jpegexiforient, perlPackages }:
|
||||
, curl, libexif, jpegexiforient, perlPackages
|
||||
, enableAutoreload ? true }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
@ -21,7 +22,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=${placeholder "out"}" "exif=1"
|
||||
] ++ optional stdenv.isDarwin "verscmp=0";
|
||||
] ++ optional stdenv.isDarwin "verscmp=0"
|
||||
++ optional enableAutoreload "inotify=1";
|
||||
|
||||
installTargets = [ "install" ];
|
||||
postInstall = ''
|
||||
|
Loading…
Reference in New Issue
Block a user