From 9e43517521a5b70c2dc03352261eaf7cf102bef0 Mon Sep 17 00:00:00 2001 From: Dennis van der Schagt Date: Mon, 19 Aug 2024 08:10:33 +0200 Subject: [PATCH] Escape quotes and double dashes in blocks (#2079) --- src/blocks/music.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/music.rs b/src/blocks/music.rs index 9bc5e8a06e..51217a40a6 100644 --- a/src/blocks/music.rs +++ b/src/blocks/music.rs @@ -20,7 +20,7 @@ //! ----|--------|-------- //! `format` | A string to customise the output of this block. See below for available placeholders. | \" $icon {$combo.str(max_w:25,rot_interval:0.5) $play \|}\" //! `format_alt` | If set, block will switch between `format` and `format_alt` on every click | `None` -//! `player` | Name(s) of the music player(s) MPRIS interface. This can be either a music player name or an array of music player names. Run busctl --user list \| grep "org.mpris.MediaPlayer2." \| cut -d' ' -f1 and the name is the part after "org.mpris.MediaPlayer2.". | `None` +//! `player` | Name(s) of the music player(s) MPRIS interface. This can be either a music player name or an array of music player names. Run busctl \--user list \| grep \"org.mpris.MediaPlayer2.\" \| cut -d\' \' -f1 and the name is the part after "org.mpris.MediaPlayer2.". | `None` //! `interface_name_exclude` | A list of regex patterns for player MPRIS interface names to ignore. | `["playerctld"]` //! `separator` | String to insert between artist and title. | `" - "` //! `seek_step_secs` | Positive number of seconds to seek forward/backward when scrolling on the bar. Does not need to be an integer. | `1`