diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2020-08-09 09:23:38 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2020-08-09 09:23:38 +0200 |
commit | 4c228cd60890c0ef09c345c13713453c4c2dd508 (patch) | |
tree | 12b39298dd172291ea82529354578cf6e0cf8d73 /contrib | |
parent | bc6bd8a2b8b84a79dd77b81d6a25b661c5d1d1ca (diff) | |
download | pianobar-4c228cd60890c0ef09c345c13713453c4c2dd508.tar.gz pianobar-4c228cd60890c0ef09c345c13713453c4c2dd508.tar.bz2 pianobar-4c228cd60890c0ef09c345c13713453c4c2dd508.zip |
Allow choosing time format
Introduce new format string for playback time, supporting formats like
-remaining/total, elapsed/total, …
Fixes #699.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/config-example | 1 | ||||
-rw-r--r-- | contrib/pianobar.1 | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/contrib/config-example b/contrib/config-example index d6186c4..5f5dc2d 100644 --- a/contrib/config-example +++ b/contrib/config-example @@ -60,6 +60,7 @@ #tired_icon = [33mzZ[0m #format_nowplaying_station = Station [35m%n[0m #format_list_song = %i) %a - %t%r (%d)%@%s +#format_time = %e/%t #rpc_host = internal-tuner.pandora.com #partner_user = pandora one diff --git a/contrib/pianobar.1 b/contrib/pianobar.1 index 0cdf6c8..c5b82aa 100644 --- a/contrib/pianobar.1 +++ b/contrib/pianobar.1 @@ -329,6 +329,22 @@ Station name Station id .TP +.B format_time = %s%r/%t +Time format. + +.B %e +Elapsed time + +.B %r +Remaining time + +.B %s +Sign + +.B %t +Total time + +.TP .B gain_mul = 1.0 Pandora sends a ReplayGain value with every song. This sets a multiplier so that the gain adjustment can be reduced. 0.0 means no gain adjustment, 1.0 means full gain adjustment, values inbetween reduce the magnitude |