{
  "title": "🏴‍☠️ ipatch, globally ⏯ play/pause mpv regardless of frontmost application",
  "maintainer": [
    "ipatch"
  ],

  "rules": [
    {
      "description": "🏴‍☠️ ipatch, hold left_control then press enter/return to globally play or pause ⏯ mpv",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "modifiers": {
              "mandatory": [
                "left_control"
              ],
              "optional": [
                "caps_lock"
              ]
            },
            "key_code": "return_or_enter"
          },
          "to": [
            {
              "shell_command": "/bin/bash ~/.local/bin/mpv_control_playback.sh > ~/logs/mpv_pb.log 2>&1" 
            }
          ]
        }
      ]
    }
  ]
}
