mirror of
https://github.com/RGBCube/ncc
synced 2025-07-27 10:07:44 +00:00
darwin: more tinkering
This commit is contained in:
parent
6b94e1cea1
commit
7f1381c474
7 changed files with 81 additions and 11 deletions
|
@ -1,21 +1,38 @@
|
|||
{
|
||||
system.defaults.dock = {
|
||||
autohide = true;
|
||||
autohide = true;
|
||||
showhidden = true; # Translucent.
|
||||
|
||||
mouse-over-hilite-stack = true;
|
||||
|
||||
show-recents = false;
|
||||
mru-spaces = false;
|
||||
|
||||
tilesize = 48;
|
||||
tilesize = 48;
|
||||
magnification = false;
|
||||
|
||||
enable-spring-load-actions-on-all-items = true;
|
||||
|
||||
expose-animation-duration = 0.1;
|
||||
|
||||
persistent-apps = [
|
||||
{ app = "/Applications/Zen.app"; }
|
||||
{ app = "/Applications/Ghostty.app"; }
|
||||
];
|
||||
};
|
||||
|
||||
system.defaults.CustomSystemPreferences."com.apple.dock" = {
|
||||
autohide-time-modifier = 0.0;
|
||||
autohide-delay = 0.0;
|
||||
expose-animation-duration = 0.0;
|
||||
springboard-show-duration = 0.0;
|
||||
springboard-hide-duration = 0.0;
|
||||
springboard-page-duration = 0.0;
|
||||
|
||||
# Disable hot corners.
|
||||
wvous-tl-corner = 0;
|
||||
wvous-tr-corner = 0;
|
||||
wvous-bl-corner = 0;
|
||||
wvous-br-corner = 0;
|
||||
|
||||
launchanim = 0;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -26,10 +26,32 @@
|
|||
|
||||
NewWindowTarget = "Home";
|
||||
|
||||
QuitMenuItem = true; # Allow quitting of Finder application
|
||||
|
||||
ShowExternalHardDrivesOnDesktop = true;
|
||||
ShowMountedServersOnDesktop = true;
|
||||
ShowPathbar = true;
|
||||
ShowRemovableMediaOnDesktop = true;
|
||||
ShowStatusBar = true;
|
||||
};
|
||||
|
||||
system.defaults.CustomSystemPreferences."com.apple.finder" = {
|
||||
DisableAllAnimations = true;
|
||||
|
||||
FXArrangeGroupViewBy = "Name";
|
||||
FxDefaultSearchScope = "SCcf"; # Search in current folder by default.
|
||||
|
||||
WarnOnEmptyTrash = false;
|
||||
};
|
||||
|
||||
home-manager.sharedModules = [(homeArgs: let
|
||||
lib' = homeArgs.lib;
|
||||
|
||||
inherit (lib'.hm.dag) entryAfter;
|
||||
in {
|
||||
home.activation.showLibrary = entryAfter [ "writeBoundary" ] /* bash */ ''
|
||||
# Unhide ~/Library.
|
||||
/usr/bin/chflags nohidden ~/Library
|
||||
'';
|
||||
})];
|
||||
}
|
||||
|
|
|
@ -6,4 +6,10 @@
|
|||
AppleMetricUnits = 1;
|
||||
AppleTemperatureUnit = "Celsius";
|
||||
};
|
||||
|
||||
system.keyboard = {
|
||||
enableKeyMapping = true;
|
||||
|
||||
nonUS.remapTilde = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{ config, lib, pkgs, ... }: let
|
||||
inherit (lib) mkAfter mkIf;
|
||||
inherit (lib) mkAfter;
|
||||
in {
|
||||
system.defaults.NSGlobalDomain = {
|
||||
AppleInterfaceStyle = mkIf (lib.isDark config.theme) "Dark";
|
||||
_HIHideMenuBar = true; # Automatically hide/show the menu bar.
|
||||
|
||||
AppleInterfaceStyle = if lib.isDark config.theme then "Dark" else null;
|
||||
|
||||
AppleScrollerPagingBehavior = true; # Jump to the spot that was pressed in the scrollbar.
|
||||
AppleShowScrollBars = "WhenScrolling";
|
||||
|
@ -12,16 +14,16 @@ in {
|
|||
AppleEnableSwipeNavigateWithScrolls = false;
|
||||
|
||||
AppleWindowTabbingMode = "always"; # Always prefer tabs for new windows.
|
||||
AppleKeyboardUIMode = 3; # Full keyboard access.
|
||||
ApplePressAndHoldEnabled = false; # No ligatures when you press and hold a key, just repeat it.
|
||||
AppleKeyboardUIMode = 3; # Full keyboard access.
|
||||
ApplePressAndHoldEnabled = false; # No ligatures when you press and hold a key, just repeat it.
|
||||
|
||||
NSScrollAnimationEnabled = true;
|
||||
NSWindowResizeTime = 0.001;
|
||||
NSWindowResizeTime = 0.003;
|
||||
|
||||
"com.apple.keyboard.fnState" = false; # Don't invert Fn.
|
||||
"com.apple.trackpad.scaling" = 1.5; # Faster mouse speed.
|
||||
"com.apple.trackpad.scaling" = 1.5; # Faster mouse speed.
|
||||
|
||||
InitialKeyRepeat = 15;
|
||||
InitialKeyRepeat = 12;
|
||||
KeyRepeat = 1;
|
||||
|
||||
NSAutomaticCapitalizationEnabled = false;
|
||||
|
@ -29,8 +31,15 @@ in {
|
|||
NSAutomaticInlinePredictionEnabled = false;
|
||||
NSAutomaticPeriodSubstitutionEnabled = false;
|
||||
NSAutomaticQuoteSubstitutionEnabled = false;
|
||||
|
||||
NSNavPanelExpandedStateForSaveMode = true; # Expand save panel by default.
|
||||
PMPrintingExpandedStateForPrint = true; # Expand print panel by default.
|
||||
|
||||
AppleSpacesSwitchOnActivate = false; # Do not switch workspaces implicitly.
|
||||
};
|
||||
|
||||
system.defaults.CustomSystemPreferences."com.apple.dock".workspaces-auto-swoosh = false; # Read `AppleSpacesSwitchOnActivate`.
|
||||
|
||||
system.defaults.CustomSystemPreferences."com.apple.AppleMultitouchTrackpad" = {
|
||||
TrackpadThreeFingerVertSwipeGesture = 0; # Four finger swipe up for mission control.
|
||||
|
||||
|
|
3
modules/darwin/screencapture.nix
Normal file
3
modules/darwin/screencapture.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
system.defaults.screencapture.location = "~/Downloads";
|
||||
}
|
7
modules/darwin/screensaver.nix
Normal file
7
modules/darwin/screensaver.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
system.defaults.CustomSystemPreferences."com.apple.screensaver" = {
|
||||
# Request password immediately.
|
||||
askForPassword = 1;
|
||||
askForPasswordDelay = 0;
|
||||
};
|
||||
}
|
6
modules/darwin/trackpad.nix
Normal file
6
modules/darwin/trackpad.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
system.defaults.trackpad = {
|
||||
Clicking = false; # No touch-to-click.
|
||||
Dragging = false; # No tap-to-drag.
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue