Giter VIP home page Giter VIP logo

vox.plugin.zsh's Introduction

VOX - ZSH Plugin

An oh-my-zsh plugin to control VOX, a lightweight full-featured audio player for OS X that can play a variety of formats including FLAC and Ogg Vorbis.

Requirements

VOX

Usage

Usage: vox <option>
    -h, --help      Show this message, then exit
    -v, --version   Show version number, then exit

Options:
    launch|quit             Launch or quit VOX
    play|pause|resume       Play or pause the current track
    rewind|forward          Skip back or ahead in the current track
    fastrewind|fastforward  Skip further back or ahead in the current track
    next|previous           Play the next or previous track
    vol|volume [up|down]    Increase or decrease the volume
    vol|volume #            Set volume to # [0-10]
    mute|unmute             Toggle volume
    status                  Show current track details

Examples

$ vox launch
> Launch VOX

$ vox play
> Start or resume playback

$ vox pause
> Pause the currently playing track

$ vox next
> Play next track

$ vox vol up
> Increase the volume

Installation

Clone this repository into your oh-my-zsh custom plugins directory.

cd ~/.oh-my-zsh/custom/plugins

git clone https://github.com/andrewbonnington/vox.plugin.zsh ./vox

Enable the plugin by editing your ~/.zshrc file.

Changelog

1.3.0

  • Set volume

1.2.0

  • Mute and unmute volume

1.1.0

  • Show current track details

1.0.0

  • Launch and quit VOX
  • Play and pause
  • Skip back or ahead in the current track
  • Play the next or previous track
  • Increase or decrease the volume

Limitations

Due to the limited AppleScript functionality provided by VOX the set volume and mute functionality provided by this script is achieved by increasing/decreasing the volume until the desired volume is obtained. This means that the volume can not be set exactly but should be within ±5% of the required volume, due to being set in 10% intervals.

Additionally the mute functionality is achieved by storing the current volume in following location /tmp/voxvol.dat which is subsequently read when reinstating the volume. If this file is modified or the volume adjusted either using the script or the GUI this feature may not function as expected.

License

MIT © Andrew Bonnington

vox.plugin.zsh's People

Contributors

andrewbonnington avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.