Skip to content

Instantly share code, notes, and snippets.

@danisla
Created June 14, 2019 04:55
Show Gist options
  • Save danisla/8fc5fb4f8185f593a99821299cb69a03 to your computer and use it in GitHub Desktop.
Save danisla/8fc5fb4f8185f593a99821299cb69a03 to your computer and use it in GitHub Desktop.
MacOS Workstation Setup

Disable Gamepad input for Plex Media Player

PLEX_DIR="${HOME}/Library/Application Support/Plex Media Player"
cat > "${PLEX_DIR}/inputmaps/dualshock4-xbox-emulate.json" <<EOF
{
  "name": "Playstation Dual Shock 4 Windows Mode",
  "idmatcher": "Microsoft.*joystick driver",
  "mapping": {
  }
}
EOF
PLEX_DIR="${HOME}/Library/Application Support/Plex Media Player"
cat > "${PLEX_DIR}/inputmaps/dualshock4.json" <<EOF
{
  "name": "Playstation Dual Shock 4",
  "idmatcher": "Wireless Controller",
  "mapping": {
  }
}
EOF
PLEX_DIR="${HOME}/Library/Application Support/Plex Media Player"
cat > "${PLEX_DIR}/inputmaps/xbox-controller-mac.json" <<EOF
{
  "name": "Xbox Controller",
  "idmatcher": "XBOX360.*|.*360.*Controller",
  "mapping": {
  }
}
EOF
PLEX_DIR="${HOME}/Library/Application Support/Plex Media Player"
cat > "${PLEX_DIR}/inputmaps/xbox-controller-windows.json" <<EOF
{
  "name": "Xbox Controller",
  "idmatcher": "XInput.*|Microsoft.*joystick driver",
  "mapping": {
  }
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment