Margin v0.4.0
Reference

Settings file

Settings are saved automatically to %APPDATA%\Margin\settings.json on Windows and ~/.config/margin/settings.json on Linux, so you can also edit them by hand (comments and trailing commas are allowed). The format is the same on both.

#Example

The example below is shortened: a sections list that leaves a zone out leaves it unassigned, so list every zone you want to keep.

json
{
  "enabled": true,
  "activation": "slideIn",
  "speed": "medium",
  "edgeDepth": 0.10,
  "cornerSize": 0.15,
  "entryStrip": 0.04,
  "sections": {
    "left":  { "slide": "volume" },
    "right": { "slide": "brightness" },
    "top": {
      "slide": "custom",
      "forward": "Alt+Tab",
      "back": "Alt+Shift+Tab",
      "holdModifiers": true
    },
    "bottomRight": {
      "clicks": [
        { "do": "playPause" },
        { "do": "nextTrack" },
        { "do": "url", "value": "https://example.com" }
      ]
    }
  }
}

#Fields

Field Meaning
activation slideIn or press (Windows)
speed slow, medium or fast
edgeDepth, cornerSize size of the edge strips and corner squares, as a fraction of the touchpad
entryStrip slide-in mode: how close to the edge a finger must first appear
sections left, right, top, bottom (use slide) and topLeft, topRight, bottomLeft, bottomRight (use clicks)
slide off, volume, brightness, seek, zoom, tabs, tracks, desktops, custom
clicks[].do none, mute, playPause, nextTrack, prevTrack, screenshot, taskView, showDesktop, lock, notifications, app, url, keys, command
clicks[].value the app path, address, shortcut or command line for app, url, keys and command
Edit this page on GitHub Margin 0.4.0 · MIT licence · made by Aaron Thomas