PLDaily / tmux-NeteaseMusic

Show a nice menu to manage NeteaseMusic application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NeteaseMusic plugin for tmux

GitHub

Show a nice menu to manage NeteaseMusic application.

tmux-NeteaseMusic

Installation

Requirements

  • macOS
  • tmux >= 3.0

With Tmux Plugin Manager

Add the plugin in .tmux.conf:

set -g @plugin 'PLDaily/tmux-NeteaseMusic'

Press prefix + I to fetch the plugin and source it. Done.

Manual

Clone the repo somewhere. Add run-shell in the end of .tmux.conf:

run-shell PATH_TO_REPO/tmux-NeteaseMusic.tmux

NOTE: this line should be placed after set-option -g status-right ....

Press prefix + : and type source-file ~/.tmux.conf. Done.

Usage

Press tmux prefix + m (for example, C-b m) and you will see a nice menu:

tmux-NeteaseMusic

* Open NeteaseMusic   (o) - open/launch NeteaseMusic
* Play/Pause          (p) - toggle play/pause
* Previous            (b) - play the current track from the beggining or play the previous track
* Next                (n) - play the next track
* Like/Dislike        (l) - toggle play/pause
* Close menu          (q) - close menu

Credits

Many thanks to authors of tmux-spotify and applescript-player-control for inspiration!

FAQ

Q: Not authorized to send Apple events to System Events ?

A: Goto Settings -> Security & Privacy -> Privacy -> Automation -> Privacy tab and check the System Events checkbox

License

tmux-NeteaseMusic plugin is released under the MIT License.

About

Show a nice menu to manage NeteaseMusic application

License:MIT License


Languages

Language:Shell 58.4%Language:AppleScript 41.6%