summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-02-09 02:34:32 +0100
committertv <tv@krebsco.de>2019-02-09 13:43:27 +0100
commitf9496394975782a3aee0998a9a6d5882b67c0901 (patch)
tree68e809c5397aaf7ec74adf94fc16e9e8d1cfa02a /krebs/5pkgs
parent90b227622c6950845c24f62d03e2eb073005be6e (diff)
flameshot-once: make filenamePattern configurable
Diffstat (limited to 'krebs/5pkgs')
-rw-r--r--krebs/5pkgs/simple/flameshot-once/profile.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/flameshot-once/profile.nix b/krebs/5pkgs/simple/flameshot-once/profile.nix
index bfe571ff5..69adb240d 100644
--- a/krebs/5pkgs/simple/flameshot-once/profile.nix
+++ b/krebs/5pkgs/simple/flameshot-once/profile.nix
@@ -60,6 +60,12 @@ let
default = 8;
type = types.positive;
};
+ filenamePattern = mkOption {
+ default = "%FT%T%z_flameshot.png";
+ type =
+ # This is types.filename extended by [%:][%:+]*
+ types.addCheck types.str (test "[%:0-9A-Za-z._][%:+0-9A-Za-z._-]*");
+ };
savePath = mkOption {
default = "/tmp";
type = types.absolute-pathname;
@@ -109,6 +115,7 @@ let
buttons=@Variant(\0\0\0\x7f\0\0\0\v${toQList "int" cfg.buttons})
disabledTrayIcon=${toJSON cfg.disabledTrayIcon}
drawThickness=${toJSON cfg.drawThickness}
+ filenamePattern=${toJSON cfg.filenamePattern}
savePath=${toJSON cfg.savePath}
showDesktopNotification=${toJSON cfg.showDesktopNotification}
showHelp=${toJSON cfg.showHelp}