feat(screencapture): add save-selections
This commit is contained in:
parent
c31afa6e76
commit
e5e7b6e878
3 changed files with 14 additions and 0 deletions
|
|
@ -41,6 +41,14 @@ with lib;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.defaults.screencapture.save-selections = mkOption {
|
||||||
|
type = types.nullOr types.bool;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
Remember the selection window of the last screencapture. The default is true.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
system.defaults.screencapture.show-thumbnail = mkOption {
|
system.defaults.screencapture.show-thumbnail = mkOption {
|
||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
default = null;
|
default = null;
|
||||||
|
|
|
||||||
|
|
@ -545,6 +545,11 @@ launchctl asuser "$(id -u -- test-defaults-user)" sudo --user=test-defaults-user
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<true/>
|
<true/>
|
||||||
</plist>'
|
</plist>'
|
||||||
|
launchctl asuser "$(id -u -- test-defaults-user)" sudo --user=test-defaults-user -- defaults write com.apple.screencapture save-selections '<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<true/>
|
||||||
|
</plist>'
|
||||||
launchctl asuser "$(id -u -- test-defaults-user)" sudo --user=test-defaults-user -- defaults write com.apple.screencapture location '<?xml version="1.0" encoding="UTF-8"?>
|
launchctl asuser "$(id -u -- test-defaults-user)" sudo --user=test-defaults-user -- defaults write com.apple.screencapture location '<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@
|
||||||
system.defaults.screencapture.location = "/tmp";
|
system.defaults.screencapture.location = "/tmp";
|
||||||
system.defaults.screencapture.target = "file";
|
system.defaults.screencapture.target = "file";
|
||||||
system.defaults.screencapture.include-date = true;
|
system.defaults.screencapture.include-date = true;
|
||||||
|
system.defaults.screencapture.save-selections = true;
|
||||||
system.defaults.screensaver.askForPassword = true;
|
system.defaults.screensaver.askForPassword = true;
|
||||||
system.defaults.screensaver.askForPasswordDelay = 5;
|
system.defaults.screensaver.askForPasswordDelay = 5;
|
||||||
system.defaults.smb.NetBIOSName = "IMAC-000000";
|
system.defaults.smb.NetBIOSName = "IMAC-000000";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue