Update mpd prompt and modalbind
This commit is contained in:
parent
ed84faef52
commit
869e290b65
|
@ -1 +1 @@
|
||||||
Subproject commit fc14b4e164d2fb25739aae0f054c955320d2ef5b
|
Subproject commit c1f3205fce9134f81290a4009a337f1d71b17d65
|
|
@ -32,12 +32,11 @@ local mpdmap = {
|
||||||
{"s", binder.spawn("mpd"), "start MPD" },
|
{"s", binder.spawn("mpd"), "start MPD" },
|
||||||
{"S", binder.spawn("mpd --kill"), "kill MPD" },
|
{"S", binder.spawn("mpd --kill"), "kill MPD" },
|
||||||
{"g", binder.spawn(conf.cmd.mpd_client), "Gmpc" },
|
{"g", binder.spawn(conf.cmd.mpd_client), "Gmpc" },
|
||||||
}
|
{"separator", "Search" },
|
||||||
|
|
||||||
local mpdpromts = {
|
|
||||||
{"a", mpd.prompt.artist, "artist" },
|
{"a", mpd.prompt.artist, "artist" },
|
||||||
{"b", mpd.prompt.album, "album" },
|
{"b", mpd.prompt.album, "album" },
|
||||||
{"t", mpd.prompt.title, "title" },
|
{"t", mpd.prompt.title, "title" },
|
||||||
|
{"j", mpd.prompt.jump, "jump" },
|
||||||
{"r", mpd.prompt.toggle_replace_on_search, "toggle replacing" },
|
{"r", mpd.prompt.toggle_replace_on_search, "toggle replacing" },
|
||||||
{"h", mb.grabf(mpdhosts, "Select MPD host"), "Change host" }
|
{"h", mb.grabf(mpdhosts, "Select MPD host"), "Change host" }
|
||||||
}
|
}
|
||||||
|
@ -77,7 +76,7 @@ local myglobalkeys = awful.util.table.join(
|
||||||
--{{{ Modal mappings
|
--{{{ Modal mappings
|
||||||
|
|
||||||
awful.key({ modkey }, "m", mb.grabf(mpdmap, "MPD", true)),
|
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 }, "c", mb.grabf(progmap, "Commands")),
|
||||||
awful.key({ modkey }, "d", mb.grabf(docmap, "Documents")),
|
awful.key({ modkey }, "d", mb.grabf(docmap, "Documents")),
|
||||||
awful.key({ modkey }, "n", mb.grabf(notifymap, "Notifications")),
|
awful.key({ modkey }, "n", mb.grabf(notifymap, "Notifications")),
|
||||||
|
|
|
@ -91,6 +91,11 @@ end
|
||||||
M.prompt.title = function()
|
M.prompt.title = function()
|
||||||
dmenu("-a -b -t")
|
dmenu("-a -b -t")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
M.prompt.jump = function()
|
||||||
|
dmenu("-j")
|
||||||
|
end
|
||||||
|
|
||||||
M.prompt.title = title
|
M.prompt.title = title
|
||||||
|
|
||||||
M.prompt.replace_on_search = function(bool)
|
M.prompt.replace_on_search = function(bool)
|
||||||
|
|
Loading…
Reference in a new issue