]> git.rmz.io Git - dotfiles.git/commit
awesome/mpd_widget: use ping command to sync state
authorSamir Benmendil <me@rmz.io>
Mon, 3 Aug 2020 21:06:54 +0000 (22:06 +0100)
committerSamir Benmendil <me@rmz.io>
Sat, 8 Aug 2020 10:48:23 +0000 (11:48 +0100)
commit3754466c5a0f36d056dde3c27bc5bf666739da3e
tree7d71e6b6b56bd953ba732e5a09e121bfadcbb9db
parent534a10c119de31237acbb8fd75a7a55e3cf2d922
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.
awesome/widgets/mpd_widget.lua