Git Product home page Git Product logo

mpvmenu's Introduction

mpvmenup

screenshot

Mpvmenu adds a pop-up menu to mpv, which can be bound to a key or button (e.g. to mouse right-click). From this menu you can do things like loading external subtitle files, dynamically adding/removing filters and so on.

Installation

Copy the script mpvmenu anywhere convenient, if you want. Make it executable (or you can run it via python 3).

You'll probably want to bind it to a key/button. To do that, bind action script_message popup_menu (popup_menu can be replaced with another string, with the right commandline argument). For example, to bind to right mouse button, add the following to your input.conf:

MOUSE_BTN2 script_message popup_menu

Running

To run this program, just execute the mpvmenu command.

Now when the script runs, and you trigger the action, a pop-up menu should appear. If you want to stop it, you can kill it with SIGKILL or SIGINT (e.g. press Ctrl+C in the console it's launched in).

After running, the script should continue to wait for connection with MPV and react for events. If you want it always to run, set it to autostart (details depend on DE).

Requirements

  • GNU/Linux (possibly other *NIX OSes), as JSON RPC is only supported on that.
  • Python 3.
  • Python 3 bindings for Gobject.
  • Gtk 3.
  • MPV (latest version from master to get all functionality to work).
  • Subtitle download option requires subdownloader.

On Archlinux, the relevant packages are: python-gobject, gtk3, subdownloader and mpv (or mpv-git from AUR).

mpvmenu's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.