GithubHelp home page GithubHelp logo

ggarlic / lord Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rnons/lord

0.0 1.0 0.0 788 KB

A unified interface to online radios using mpd/mplayer as backend

Home Page: http://rnons.github.io/lord/

License: The Unlicense

Haskell 100.00%

lord's Introduction

lord

Lord is a unified command line interface to several online radios.

By default, lord uses mpd as backend. When mpd is available, lord can be run as daemon (default) or in foreground (with --no-daemon option). When mpd is unavailable (not running), lord will fallback to use mplayer. Mplayer is run in foreground to allow user controlling playback with mplayer keybindings.

Supported radios:

Lord is on hackage, you can install with

cabal install lord

Commands

lord -h
lord status
lord toggle
lord kill

lord 8tracks listen [<mix_id> | <mix_url>] [--no-daemon]
lord 8tracks search <keywords>
lord 8tracks [featured | trending | newest]

lord cmd listen <genre> [--no-daemon]
lord cmd genres

lord douban listen [<channel_id> | <album_url> | <musician_url> | <musician_name> | <programme_url] [--no-daemon]
lord douban search <keywords>
lord douban [hot | trending]

lord jing listen <keywords> [--no-daemon]

lord reddit listen <genre> [--no-daemon]
lord reddit genres

bash completion

optparse-applicative has built-in support for bash completion of command line options and arguments.

With bash, add to your .bashrc:

source <(lord --bash-completion-script `which lord`)

With zsh, add to your .zshrc:

autoload bashcompinit
bashcompinit
source <(lord --bash-completion-script `which lord`)

NOTE: lord --bash-completion-script `which lord` can generate the bash_completion file on the fly. However, you can also use the installed version. The bash_completion file is installed to somewhere like ~/.cabal/share/x86_64-linux-ghc-7.6.3/lord-2.20131220/bash_completion.d/lord.

lord's People

Contributors

rnons avatar

Watchers

 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.