Fix spotify detection

This commit is contained in:
Alexander Gehrke 2020-07-17 14:35:44 +02:00
parent 1e12965e6e
commit 83e539aa39

View file

@ -85,7 +85,9 @@ local myglobalkeys = awful.util.table.join(
--{{{ Modal mappings --{{{ Modal mappings
awful.key({ modkey }, "m", function() awful.key({ modkey }, "m", function()
awful.spawn.easy_async("which playerctl && playerctl -p spotify status", function(stdout, stderr, reason, exitcode) awful.spawn.easy_async_with_shell(
"which playerctl && playerctl -p spotify status",
function(stdout, stderr, reason, exitcode)
if exitcode > 0 then if exitcode > 0 then
mb.grab{keymap=mpdmap, name="MPD", stay_in_mode=true} mb.grab{keymap=mpdmap, name="MPD", stay_in_mode=true}
else else