minor binding and rule updates
This commit is contained in:
parent
5d072ec3f1
commit
997c8b0fbb
|
@ -58,6 +58,13 @@ local docmap = {
|
|||
j = { func = binder.spawn("dmjavadoc"), desc = "Javadoc" }
|
||||
}
|
||||
|
||||
local reloadmap = {
|
||||
r = { func = awesome.restart, desc = "Awesome, full restart" },
|
||||
b = { func = function()
|
||||
binder.add_bindings(require("mybindings"))
|
||||
end, desc = "Bindings" },
|
||||
}
|
||||
|
||||
local calendarmap = {
|
||||
o = { func = function() calendar:next() end, desc = "Next" },
|
||||
i = { func = function() calendar:prev() end, desc = "Prev" },
|
||||
|
@ -67,6 +74,7 @@ local calendarmap = {
|
|||
|
||||
local myglobalkeys = awful.util.table.join(
|
||||
awful.key({ }, "Pause", binder.spawn('wmselect')),
|
||||
awful.key({ }, "Print", binder.spawn('dmscrot')),
|
||||
|
||||
--{{{ Modal mappings
|
||||
|
||||
|
@ -74,6 +82,8 @@ local myglobalkeys = awful.util.table.join(
|
|||
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, "Control" }, "r", mb.grabf(reloadmap, "Reload")),
|
||||
--}}}
|
||||
|
||||
-- {{{ scratch drop
|
||||
|
|
|
@ -49,9 +49,11 @@ local function setup(self)
|
|||
{
|
||||
rule = { class = "Sm" },
|
||||
properties = {
|
||||
--ontop = true,
|
||||
floating = true,
|
||||
size_hints_honor = true,
|
||||
-- --ontop = true,
|
||||
fullscreen = true,
|
||||
border_width = 0
|
||||
-- border_width = 0
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -52,7 +52,7 @@ layoutsettings = {
|
|||
}
|
||||
|
||||
local default_bindings = awful.util.table.join(
|
||||
awful.key({ modkey, "Control" }, "r", awesome.restart),
|
||||
--awful.key({ modkey, "Control" }, "r", awesome.restart),
|
||||
awful.key({ modkey, "Shift" }, "q", awesome.quit),
|
||||
awful.key({ modkey, }, "Return", spawnf(conf.cmd.terminal)),
|
||||
|
||||
|
@ -132,6 +132,10 @@ function binder.add_default_bindings()
|
|||
return binder.add_bindings(default_bindings)
|
||||
end
|
||||
|
||||
function binder.clear()
|
||||
globalkeys = {}
|
||||
end
|
||||
|
||||
|
||||
function binder.apply()
|
||||
root.keys(globalkeys)
|
||||
|
|
Loading…
Reference in a new issue