summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2020-08-09 09:23:38 +0200
committerLars-Dominik Braun <lars@6xq.net>2020-08-09 09:23:38 +0200
commit4c228cd60890c0ef09c345c13713453c4c2dd508 (patch)
tree12b39298dd172291ea82529354578cf6e0cf8d73 /contrib
parentbc6bd8a2b8b84a79dd77b81d6a25b661c5d1d1ca (diff)
downloadpianobar-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-example1
-rw-r--r--contrib/pianobar.116
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 = zZ
#format_nowplaying_station = Station %n
#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