From 83e539aa39cdb1ed5f7ff399d29d3afe3bba0a97 Mon Sep 17 00:00:00 2001 From: Alexander Gehrke Date: Fri, 17 Jul 2020 14:35:44 +0200 Subject: [PATCH] Fix spotify detection --- mybindings.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mybindings.lua b/mybindings.lua index 3c02b9c..d69d827 100644 --- a/mybindings.lua +++ b/mybindings.lua @@ -85,7 +85,9 @@ local myglobalkeys = awful.util.table.join( --{{{ Modal mappings 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 mb.grab{keymap=mpdmap, name="MPD", stay_in_mode=true} else