mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-31 04:04:45 +00:00
Add new option for double clicking the window title bar
This commit is contained in:
parent
87131f51f8
commit
39848a9478
3 changed files with 21 additions and 0 deletions
|
@ -7,6 +7,21 @@ let
|
|||
inherit (config.lib.defaults.types) floatWithDeprecationError;
|
||||
in {
|
||||
options = {
|
||||
system.defaults.NSGlobalDomain.AppleActionOnDoubleClick = mkOption {
|
||||
type = types.nullOr (
|
||||
types.enum [
|
||||
"Minimize"
|
||||
"Zoom"
|
||||
"Fill"
|
||||
"None"
|
||||
]
|
||||
);
|
||||
default = null;
|
||||
description = ''
|
||||
Behaviour of double clicking a windows title bar.
|
||||
'';
|
||||
};
|
||||
|
||||
system.defaults.NSGlobalDomain.AppleShowAllFiles = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
defaults write -g 'AppleActionOnDoubleClick' $'<?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">
|
||||
<string>Minimize</string>
|
||||
</plist>'
|
||||
defaults write -g 'AppleEnableMouseSwipeNavigateWithScrolls' $'<?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">
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
system.defaults.NSGlobalDomain.AppleActionOnDoubleClick = "Minimize";
|
||||
system.defaults.NSGlobalDomain.AppleShowAllFiles = true;
|
||||
system.defaults.NSGlobalDomain.AppleEnableMouseSwipeNavigateWithScrolls = false;
|
||||
system.defaults.NSGlobalDomain.AppleEnableSwipeNavigateWithScrolls = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue