Skip to content

Instantly share code, notes, and snippets.

@cherryblossom000
Created October 27, 2021 02:57
Show Gist options
  • Save cherryblossom000/494c335764d6f1dfd04c183f673db14c to your computer and use it in GitHub Desktop.
Save cherryblossom000/494c335764d6f1dfd04c183f673db14c to your computer and use it in GitHub Desktop.
❯ defaults read com.apple.touchbar.agent
{
    PresentationModeFnModes =     {
        appWithControlStrip = functionKeys;
    };
    PresentationModeGlobal = appWithControlStrip;
    PresentationModePerApp =     {
        "com.hnc.Discord" = functionKeys;
        "com.hnc.DiscordPTB" = functionKeys;
        "com.microsoft.VSCode" = functionKeys;
        "org.musescore.MuseScore" = functionKeys;
    };
}

System Preferences → Keyboard

'Touch Bar shows' = PresentationModeGlobal

  • 'App Controls'
    • 'Show Control Strip' ticked: appwithControlStrip
    • 'Show Control Strip' not ticked: app
  • 'Expanded Control Strip': fullControlStrip
  • 'F1, F2, etc. Keys': functionKeys
  • 'Quick Actions'
    • 'Show Control Strip' ticked: workflowsWithControlStrip
    • 'Show Control Strip' not ticked: workflows
  • 'Spaces'
    • 'Show Control Strip' ticked: spacesWithControlStrip
    • 'Show Control Strip' not ticked: spaces

'Press and hold fn key to' = PresentationModeFnModes

  • keys: PresentationModeGlobal value (e.g. appWithControlStrip)
  • values:
    • 'Show Control Strip': fullControlStrip
    • 'Show F1, F2, etc. Keys': functionKeys
    • 'Show Quick Actions': workflows
    • 'Spaces': spaces

Each dictionary value of PresentationModeFnModes defaults to functionKeys except when the key is functionKeys, in which case the default is fullControlStrip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment