diff --git a/lib/spotify.lua b/lib/spotify.lua index aa92bd9..918b1fe 100644 --- a/lib/spotify.lua +++ b/lib/spotify.lua @@ -35,3 +35,9 @@ end function previous() spotify("Previous") end + +function show() + -- This should work, but no: + -- spotify("Raise") + awful.util.spawn("spotify") +end diff --git a/rc/bindings.lua b/rc/bindings.lua index 65b0d9b..ecd997a 100644 --- a/rc/bindings.lua +++ b/rc/bindings.lua @@ -231,6 +231,7 @@ config.keys.global = awful.util.table.join( elseif key == "c" then music.pause() elseif key == "v" then music.stop() elseif key == "b" then music.next() + elseif key == "s" then music.show() end return true end)