aWM(playing): Reword comment to make it clearer

This commit is contained in:
tarneo 2024-01-28 19:55:40 +01:00
parent 5819643c6d
commit 9f91901c7a
Signed by: tarneo
GPG Key ID: BA924E53D0EB3FCC
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ local function daemon ()
awful.spawn.easy_async_with_shell(
'mpc current --format "%artist% - %title%"',
function(stdout)
-- Only get the first line, without the newline
-- Remove all lines after the first one
stdout = stdout:gsub("\n.*", "")
if stdout ~= "" and stdout ~= " - " then
title:set_text(stdout)