Skip to content

Commit

Permalink
Version 0.11
Browse files Browse the repository at this point in the history
Set the default value of sleep to 1.
  • Loading branch information
trizen committed Feb 3, 2019
1 parent 50f4cf8 commit d5763d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ An extensible lyrics fetcher, with daemon support for cmus and mocp.

### Features:
- support for plugins
- cmus and mocp daemon mode
- cmus, mocp and playerctl daemon mode

### Dependencies:

Expand All @@ -18,7 +18,8 @@ usage: clyrics [options] [song name]
options:
-m : start as a daemon for moc player
-c : start as a daemon for cmus player
-s <int> : sleep duration between lyrics updates (default: 3)
-p : start as a daemon for playerctl media controller
-s <int> : sleep duration between lyrics updates (default: 1)
-P <dir> : plugin directory (default: ~/.config/clyrics)
-d : activate the debug mode
Expand Down
8 changes: 4 additions & 4 deletions clyrics
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ use Time::HiRes qw(sleep);

# Name and version
my $name = 'clyrics';
my $version = '0.10';
my $version = '0.11';

# Debug mode
my $DEBUG = 0;

# Sleep duration
my $SLEEP_SECONDS = 3;
my $SLEEP_SECONDS = 1;

# .config directory
my $xdg_config_home = $ENV{XDG_CONFIG_HOME}
Expand Down Expand Up @@ -180,7 +180,7 @@ options:
example:
$0 -m -s 1 # stars the mocp daemon
$0 dust of the chase # prints the lyrics of "RWH - Dust of the chase"
$0 eminem not afraid # prints the lyrics of "Eminem - Not Afraid"
USAGE
}

Expand Down Expand Up @@ -240,7 +240,6 @@ sub mocp_daemon {

daemon_loop(
sub {

my $info = `mocp --info &>/dev/stdout`;
$? and die "[!] moc player is not installed!\n";

Expand Down Expand Up @@ -297,6 +296,7 @@ sub cmus_daemon {

# playerctl daemon
sub playerctl_daemon {

daemon_loop(
sub {
my $info = `playerctl metadata --format '{{artist}}\n{{title}}\n{{status}}' &>/dev/stdout`;
Expand Down

0 comments on commit d5763d8

Please sign in to comment.