Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
samhippo authored Apr 28, 2020
1 parent ab24764 commit 35aaba8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# mpv-scripts
## Scripts
* [custom-osc](#%EF%B8%8F---custom-osclua)

* [delete-file](#%EF%B8%8F---delete-filelua)
* [move-file](#%EF%B8%8F---move-filelua)
* [move-file-datetime](#%EF%B8%8F---move-file-datetimelua)
Expand Down Expand Up @@ -51,7 +52,17 @@ osd-scale-by-window=no
title= [${playlist-pos-1}/${playlist-count}] [${duration}] [${file-size}] ${filename}
osd-status-msg=${time-pos} / ${duration} \nPL ${playlist-pos-1}/${playlist-count}
```
## ▶️   Simple Context Menu
An example context menu created with AHK (AutoHotKey). No modification to mpv is necessary.

![](screenshots/cm_image1.png)
#### Installation
1. AutoHotKey is required for this functionality. Download and install from here [AHK](https://www.autohotkey.com)
2. Download the script [mpv-contextmenu.ahk](mpv-contextmenu.ahk) to any directory and open with AHK.
3. Modify mpv-contextmenu.ahk as needed to add context menu items.

#### Usage
This ahk script invokes a simple contextmenu when the right mouse button is clicked on an mpv window. It then sends hotkeys to mpv based on the menu selection. Any command defined in **input.conf** can be added to the contextmenu. If more complex menus are required then it's possible to use [json-ipc](https://mpv.io/manual/master/#json-ipc) as an alternative.
## ▶️   delete-file.lua
Deletes the currently playing video file.
#### Installation
Expand Down

0 comments on commit 35aaba8

Please sign in to comment.