Skip to content

avadhutp/lazarus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazarus Build Status CodeCov GoDoc

Lazarus plays the most recent HOT songs from any of music's subreddits:

  1. r/ListenToThis
  2. r/music

screenshot

Requirements

  1. youtube-dl (download instructions)
  2. any terminal-based mp3 player like
  • afplayer: on OS X (installed by default)
  • cvlc: on Linux (:warning:note: While using cvlc specify the command as cvlc --play-and-exit to avoid stalling Lazarus.)
  • mplayer

Installation

  1. Create an ini settings file as shown in the settings section of this readme
  2. Put it in /etc/lazarus.ini. Optionally, you can pass the location of the ini file to Lazarus at run time
  3. Download Lazarus: go get github.com/avadhut/lazarus
  4. Run it as:
  5. If the ini file is in the default location (/etc/lazarus.ini), then simply issue lazarus
  6. Else, issue lazarus --config /some/other/location/lazarus.ini

Settings

Lazarus works off of an ini file. This supports the following configs:

Setting Description Example
tmp_location The location where Lazarus can download temporary mp3s. Ideally, this location should be absolute as Lazarus does not deal well with relative paths currently. Also, the trailing slash is necessary. tmp_location = /tmp/lazarus/
player_cmd The command-line music player to use for playback. This needs to be installed on your system and accessible by the current user. Try to use one which supports a wide range of formats suchas m4a, mp3, opus, etc. Also, specify the required arguments, if any, along with the command. player_cmd = cvlc --play-and-exit

Keyboard shortcuts

Shortcut Purpose
q Quit Lazarus
s Skip song
b Bookmark song

About

🎵 Lazarus is a terminal-based music player written in Go that plays songs from the r/ListenToThis subreddit.

Resources

Stars

Watchers

Forks

Packages

No packages published