Update modalbind

This commit is contained in:
crater2150 2019-08-10 20:37:10 +02:00
parent ce2b4ded18
commit be630095a1
4 changed files with 8 additions and 7 deletions

@ -1 +1 @@
Subproject commit c4f48eff3e2e57f5fe550fc1cdea377a55065fda
Subproject commit 6cba6e0cc4b08b75125d62a1b9747b2b27218b26

View file

@ -40,7 +40,7 @@ local mpdmap = {
{"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" }
{"h", mb.grabf{keymap=mpdhosts, name="Select MPD host"}, "Change host" }
}
local progmap = {
@ -76,10 +76,10 @@ local myglobalkeys = awful.util.table.join(
--{{{ Modal mappings
awful.key({ modkey }, "m", mb.grabf(mpdmap, "MPD", true)),
awful.key({ modkey }, "m", mb.grabf{keymap=mpdmap, name="MPD", stay_in_mode=true}),
--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 }, "c", mb.grabf{keymap=progmap, name="Commands"}),
awful.key({ modkey }, "d", mb.grabf{keymap=docmap, name="Documents"}),
awful.key({ modkey }, "n", function()
if naughty.is_suspended() then
naughty.resume()

1
rc.lua
View file

@ -62,6 +62,7 @@ audiowheel = require("audiowheel")-- { bg = "#ffff00aa" }
binder = require("separable.binder")
binder.modal.set_location("bottom_left")
binder.modal.hide_default_options()
--binder.modal.set_x_offset(18)
binder.add_default_bindings()

View file

@ -126,8 +126,8 @@ local default_bindings = awful.util.table.join(
--{{{ Modal mappings
awful.key({ modkey }, "space", mb.grabf(layoutmap, "Layouts")),
awful.key({ modkey, "Control" }, "space", mb.grabf(layoutsettings, "Layout settings", true)),
awful.key({ modkey }, "space", mb.grabf{keymap=layoutmap, name="Layouts"}),
awful.key({ modkey, "Control" }, "space", mb.grabf{keymap=layoutsettings, name="Layout settings", stay_in_mode=true}),
--}}}
--{{{ Audio control