From 4d4241485536afd5b4ed561422d3bbbbc817b910 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 1 Nov 2013 15:53:35 +0100 Subject: [PATCH] music: add the possibility to raise music player --- lib/spotify.lua | 6 ++++++ rc/bindings.lua | 1 + 2 files changed, 7 insertions(+) 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)