flameshot-once: make timeout configurable

This commit is contained in:
tv 2019-04-23 13:22:50 +02:00
parent d7ca88168c
commit 46172b7f01

View file

@ -77,6 +77,14 @@ let
default = false;
type = types.bool;
};
timeout = mkOption {
default = 100;
description = ''
Maximum time in milliseconds allowed for the flameshot daemon to
react.
'';
type = types.positive;
};
};
};
};
@ -125,5 +133,6 @@ in
pkgs.writeDash "flameshot.profile" ''
export FLAMESHOT_CAPTURE_PATH=${cfg.savePath}
export FLAMESHOT_ONCE_TIMEOUT=${toString cfg.timeout}
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME}
''