summaryrefslogtreecommitdiff
path: root/modules/system/defaults/screencapture.nix
diff options
context:
space:
mode:
authorMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-16 22:22:34 +0100
committerGitHub <noreply@github.com>2025-01-16 22:22:34 +0100
commit8e7bd91f353caacc0bc4105f573eb3e17f09e03a (patch)
treec5059edcbebd9644290cad7c653c49a36d593021 /modules/system/defaults/screencapture.nix
parent6bd39d420578aacf7c0bab7de3e7027b952115ae (diff)
parentbd921223ba7cdac346477d7ea5204d6f4736fcc6 (diff)
Merge branch 'LnL7:master' into masterHEADmaster
Diffstat (limited to 'modules/system/defaults/screencapture.nix')
-rw-r--r--modules/system/defaults/screencapture.nix43
1 files changed, 39 insertions, 4 deletions
diff --git a/modules/system/defaults/screencapture.nix b/modules/system/defaults/screencapture.nix
index 4483fd6..351ca5f 100644
--- a/modules/system/defaults/screencapture.nix
+++ b/modules/system/defaults/screencapture.nix
@@ -1,4 +1,4 @@
-{ config, lib, ... }:
+{ lib, ... }:
with lib;
@@ -8,7 +8,7 @@ with lib;
system.defaults.screencapture.location = mkOption {
type = types.nullOr types.str;
default = null;
- description = lib.mdDoc ''
+ description = ''
The filesystem path to which screencaptures should be written.
'';
};
@@ -16,7 +16,7 @@ with lib;
system.defaults.screencapture.type = mkOption {
type = types.nullOr types.str;
default = null;
- description = lib.mdDoc ''
+ description = ''
The image format to use, such as "jpg".
'';
};
@@ -24,9 +24,44 @@ with lib;
system.defaults.screencapture.disable-shadow = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Disable drop shadow border around screencaptures. The default is false.
'';
};
+
+ system.defaults.screencapture.include-date = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Include date and time in screenshot filenames. The default is true.
+ Screenshot 2024-01-09 at 13.27.20.png would be an example for true.
+
+ Screenshot.png
+ Screenshot 1.png would be an example for false.
+ '';
+ };
+
+ system.defaults.screencapture.show-thumbnail = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Show thumbnail after screencapture before writing to file. The default is true.
+ '';
+ };
+
+ system.defaults.screencapture.target = mkOption {
+ type = types.nullOr (types.enum [ "file" "clipboard" "preview" "mail" "messages" ]);
+ default = null;
+ description = ''
+ Target to which screencapture should save screenshot to. The default is "file".
+ Valid values include:
+
+ * `file`: Saves as a file in location specified by `system.defaults.screencapture.location`
+ * `clipboard`: Saves screenshot to clipboard
+ * `preview`: Opens screenshot in Preview app
+ * `mail`
+ * `messages`
+ '';
+ };
};
}