2024-06-06 17:40:24 +01:00
|
|
|
{ lib, ... }:
|
2018-02-27 17:24:45 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
|
|
|
|
system.defaults.screencapture.location = mkOption {
|
2018-03-01 13:20:16 +00:00
|
|
|
type = types.nullOr types.str;
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
description = ''
|
2018-02-27 17:24:45 +00:00
|
|
|
The filesystem path to which screencaptures should be written.
|
|
|
|
'';
|
|
|
|
};
|
2020-04-12 18:18:46 +01:00
|
|
|
|
2022-07-12 14:50:50 -06:00
|
|
|
system.defaults.screencapture.type = mkOption {
|
|
|
|
type = types.nullOr types.str;
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
description = ''
|
2022-07-12 14:50:50 -06:00
|
|
|
The image format to use, such as "jpg".
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-04-12 18:18:46 +01:00
|
|
|
system.defaults.screencapture.disable-shadow = mkOption {
|
2020-04-12 18:21:07 +01:00
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
description = ''
|
2021-10-21 20:36:55 +11:00
|
|
|
Disable drop shadow border around screencaptures. The default is false.
|
2020-04-12 18:18:46 +01:00
|
|
|
'';
|
|
|
|
};
|
2024-06-06 17:40:24 +01:00
|
|
|
|
2024-11-12 01:24:22 +00:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-06-06 17:40:24 +01:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
};
|
2024-12-28 23:30:47 +01:00
|
|
|
|
|
|
|
system.defaults.screencapture.target = mkOption {
|
2024-12-29 10:58:47 +01:00
|
|
|
type = types.nullOr (types.enum [ "file" "clipboard" "preview" "mail" "messages" ]);
|
2024-12-28 23:30:47 +01:00
|
|
|
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`
|
|
|
|
'';
|
|
|
|
};
|
2018-02-27 17:24:45 +00:00
|
|
|
};
|
|
|
|
}
|