From 869e290b6521544caa9f90ebb391aa1f22cfeb12 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Fri, 4 May 2018 15:19:55 +0200 Subject: [PATCH] Update mpd prompt and modalbind --- modalbind | 2 +- mybindings.lua | 7 +++---- separable/mpd.lua | 5 +++++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/modalbind b/modalbind index fc14b4e..c1f3205 160000 --- a/modalbind +++ b/modalbind @@ -1 +1 @@ -Subproject commit fc14b4e164d2fb25739aae0f054c955320d2ef5b +Subproject commit c1f3205fce9134f81290a4009a337f1d71b17d65 diff --git a/mybindings.lua b/mybindings.lua index bfc86f6..9233f33 100644 --- a/mybindings.lua +++ b/mybindings.lua @@ -32,12 +32,11 @@ local mpdmap = { {"s", binder.spawn("mpd"), "start MPD" }, {"S", binder.spawn("mpd --kill"), "kill MPD" }, {"g", binder.spawn(conf.cmd.mpd_client), "Gmpc" }, -} - -local mpdpromts = { + {"separator", "Search" }, {"a", mpd.prompt.artist, "artist" }, {"b", mpd.prompt.album, "album" }, {"t", mpd.prompt.title, "title" }, + {"j", mpd.prompt.jump, "jump" }, {"r", mpd.prompt.toggle_replace_on_search, "toggle replacing" }, {"h", mb.grabf(mpdhosts, "Select MPD host"), "Change host" } } @@ -77,7 +76,7 @@ local myglobalkeys = awful.util.table.join( --{{{ Modal mappings awful.key({ modkey }, "m", mb.grabf(mpdmap, "MPD", true)), - awful.key({ modkey, "Shift" }, "m", mb.grabf(mpdpromts, "MPD - Search for")), + --awful.key({ modkey, "Shift" }, "m", mb.grabf(mpdpromts, "MPD - Search for")), awful.key({ modkey }, "c", mb.grabf(progmap, "Commands")), awful.key({ modkey }, "d", mb.grabf(docmap, "Documents")), awful.key({ modkey }, "n", mb.grabf(notifymap, "Notifications")), diff --git a/separable/mpd.lua b/separable/mpd.lua index b81cc01..580fb52 100644 --- a/separable/mpd.lua +++ b/separable/mpd.lua @@ -91,6 +91,11 @@ end M.prompt.title = function() dmenu("-a -b -t") end + +M.prompt.jump = function() + dmenu("-j") +end + M.prompt.title = title M.prompt.replace_on_search = function(bool)