Git Product home page Git Product logo

mpv-progressbar's Introduction

progressbar

progressbar.lua is a script for mpv that provides a small, unintrusive progress bar that persists at the bottom of the video window. It takes up two pixels vertically, and the width of the window horizontally:

Normal view

When hovered with the mouse, it expands to show more information:

Hover view

As a consequence of how mpv handles drawing the osd, this script is not compatible with the built-in osc. If you want to use it, you should add osc=no to your mpv config.

Installation

Place the compiled progressbar.lua script in your ~/.mpv/scripts or ~/.config/mpv/scripts directory. It may be more convenient to update if you symlink it in from somewhere else.

Configuration

progressbar.lua now has a whole bunch of options that can be set either on the mpv command line or by writing the file ~~/lua-settings/torque-progressbar.conf, where ~~ is either ~/.mpv or ~/.config/mpv, depending on your setup. The defaults are provided in settings.moon, and are reproduced in config-file-compatible syntax in torque-progressbar.conf.

Keybindings

progressbar.lua creates a few keybindings integral to correct script operation. If you are running mpv with no-input-default-bindings, these must be manually rebound in ~~/input.conf. The defaults are:

. script-binding progressbar/step-forward
, script-binding progressbar/step-backward
c script-binding progressbar/toggle-inactive-bar
tab script-binding progressbar/request-display
mouse_btn0 script-binding progressbar/seek-to-mouse

Building

You must have moonscript installed (particularly moonc, the compiler) and GNUMake compatible make. make from the root of the repository.

mpv-progressbar's People

Contributors

8ware avatar torque avatar

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.