Skip to content

Darwin keyboard shortcuts #142

@stackptr

Description

@stackptr

After nix-darwin/nix-darwin#699, shortcuts should be configured for nix-darwin, i.e.:

system.keyboard.shortcuts = let
  cmdOptLeft = {
    mods = {
      option = true;
      command = true;
    };
    key = "left";
  };
  cmdOptRight = {
    mods = {
      option = true;
      command = true;
    };
    key = "right";
  };
in {
  enable = true;
  appShortcuts = {
    "Preview.app" = {
      "Show Previous Tab" = cmdOptLeft;
      "Show Next Tab" = cmdOptRight
    };
    "Finder.app" = {
      "Show Previous Tab" = cmdOptLeft;
      "Show Next Tab" = cmdOptRight
    };
    "Prompt.app" = {
      "Show Previous Tab" = cmdOptLeft;
      "Show Next Tab" = cmdOptRight
    };
    "Mail.app" = {
      "Archive" = {
        key = "right";
      };
    };
    "Nova.app" = {
      "Show Previous Tab" = cmdOptLeft;
      "Show Next Tab" = cmdOptRight
    };
  };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions