naitokosuke · dotfiles

Global macOS preferences that have no app of their own.

Key repeat

The fastest key repeat the OS exposes, with the delay before it kicks in cut to about 200 ms.

lines 7–8
7
8    KeyRepeat = 1;
    InitialKeyRepeat = 20;

Menu bar

Hidden permanently; it slides in only when the cursor hits the top edge. With the auto-hidden Dock, the whole screen goes to the editor or terminal.

line 14
14    _HIHideMenuBar = true;

Scrolling

Natural scroll direction, and scrollbars only while scrolling, so they never pin a column of pixels.

lines 19–20
19
20    "com.apple.swipescrolldirection" = true;
    AppleShowScrollBars = "WhenScrolling";
View the complete file23 lines · nsglobaldomain.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23# Global macOS preferences that have no app of their own.
{
  system.defaults.NSGlobalDomain = {
    ## Key repeat
    # The fastest key repeat the OS exposes, with the delay before it kicks
    # in cut to about 200 ms.
    KeyRepeat = 1;
    InitialKeyRepeat = 20;

    ## Menu bar
    # Hidden permanently; it slides in only when the cursor hits the top edge.
    # With the auto-hidden Dock, the whole screen goes to the editor or
    # terminal.
    _HIHideMenuBar = true;

    ## Scrolling
    # Natural scroll direction, and scrollbars only while scrolling, so they
    # never pin a column of pixels.
    "com.apple.swipescrolldirection" = true;
    AppleShowScrollBars = "WhenScrolling";
  };
}
23 lines·704 chars·NIX