From 997c8b0fbb4c3eeb2ba0a27d8765d41b624de179 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Mon, 25 Jul 2016 15:07:53 +0200 Subject: [PATCH] minor binding and rule updates --- mybindings.lua | 10 ++++++++++ rules.lua | 6 ++++-- separable/binder.lua | 6 +++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/mybindings.lua b/mybindings.lua index 54d5d36..ee99834 100644 --- a/mybindings.lua +++ b/mybindings.lua @@ -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 diff --git a/rules.lua b/rules.lua index 6b730b9..d0601d4 100644 --- a/rules.lua +++ b/rules.lua @@ -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 } }, { diff --git a/separable/binder.lua b/separable/binder.lua index 9dd1110..d37c4f4 100644 --- a/separable/binder.lua +++ b/separable/binder.lua @@ -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)