Update mpd prompt and modalbind

This commit is contained in:
crater2150 2018-05-04 15:19:55 +02:00
parent ed84faef52
commit 869e290b65
3 changed files with 9 additions and 5 deletions

@ -1 +1 @@
Subproject commit fc14b4e164d2fb25739aae0f054c955320d2ef5b
Subproject commit c1f3205fce9134f81290a4009a337f1d71b17d65

View file

@ -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")),

View file

@ -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)