Skip to content

aKqir24/pywal-mpv-modernx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pywal-mpv-modernx

An MPV OSC script based on modernx that uses the pywal colors as its scheme.

img

Installation

Warning

I have not tested this on windows and macos, also on windows pywal does not have specific way to be installed other than pip itself. Which means pywal's cache folder path is still not known.

  • On windows
    Locate your MPV folder. It is typically located at \%APPDATA%\mpv\, then copy the contents in it.

  • On Linux Locate the $HOME/.config and put the contents of this file there and install Material-Design-Iconic-Font.ttf my copying it in the $HOME/.fonts/ or if you have git installed then:

  git clone https://github.com/aKqir24/pywal-mpv-modernx.git $HOME/.config/
  ln -sf ~/.config/mpv/Material-Design-Iconic-Font.ttf $HOME/.fonts/

Config

edit osc.conf in "~~/script-opts/" folder, however many options are changed, so refer to the user_opts variable in the script file for details.

Buttons

like the built-in script, some buttons may accept multiple mouse actions, here is a list:

Seekbar

  • Left mouse button: seek to chosen position.
  • Right mouse button: seek to the head of chosen chapter

Playlist back/forward buttons

  • Left mouse button: play previous/next file.
  • Right mouse button: show playlist.

Skip back/forward buttons

  • Left mouse button: go to previous/next chapter.
  • Right mouse button: show chapter list.

Jump back/forward buttons

  • Left mouse button: Jumps forwards/backwards by 5 seconds, or by the amount set in user_opts.
  • Right mouse button: Jumps forwards/backwards by 1 minute.
  • Shift + Left mouse button: Skips to the previous/next frame.

Cycle audio/subtitle buttons

  • Left mouse button/Right mouse button: cycle to next/previous track.
  • Middle mouse button: show track list.

Playback time

  • Left mouse button: display time in milliseconds

Duration

  • Left mouse button: display total time instead of remaining time