From: Samir Benmendil Date: Mon, 3 Aug 2020 21:06:54 +0000 (+0100) Subject: awesome/mpd_widget: use ping command to sync state X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/3754466c5a0f36d056dde3c27bc5bf666739da3e?ds=sidebyside;hp=3754466c5a0f36d056dde3c27bc5bf666739da3e awesome/mpd_widget: use ping command to sync state The ping command does nothing other than return OK, but it will be sent in order of the `send()` call, i.e. after any previous invocation of `send()` and since the server will return strings in order, this guarantees that the previous `status` and `currentsong` command have been evaluated and contain data. ---