Fix spotify detection
This commit is contained in:
parent
1e12965e6e
commit
83e539aa39
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue