From bfa87c2061aa0e4b4f5e39673ddb7a585968283e Mon Sep 17 00:00:00 2001 From: crater2150 Date: Wed, 28 Feb 2018 10:02:38 +0100 Subject: [PATCH] Change some bindings (Mod+n) --- mybindings.lua | 16 +++++++--------- separable/binder.lua | 10 ---------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/mybindings.lua b/mybindings.lua index 6f95117..f6703c6 100644 --- a/mybindings.lua +++ b/mybindings.lua @@ -59,6 +59,10 @@ local docmap = { {"j", binder.spawn("dmjavadoc"), "Javadoc" } } +local notifymap = { + {"m", binder.spawn("newmails -p"), "Show unread mails" }, +} + --local calendarmap = { -- o = { function() calendar:next() end, "Next" }, -- i = { function() calendar:prev() end, "Prev" }, @@ -76,6 +80,7 @@ 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 }, "n", mb.grabf(notifymap, "Notifications")), --}}} -- {{{ handy console @@ -104,17 +109,10 @@ local myglobalkeys = awful.util.table.join( awful.key({ }, "XF86AudioPlay", mpd.ctrl.toggle), awful.key({ }, "XF86AudioNext", mpd.ctrl.next), - awful.key({ }, "XF86AudioPrev", mpd.ctrl.prev) + awful.key({ }, "XF86AudioPrev", mpd.ctrl.prev), - --}}} + awful.key({ modkey }, "y", binder.spawn("copyq toggle")) - -- calendar {{{ - --awful.key({ modkey }, "y", - --function() - -- calendar:show() - -- mb.grab(calendarmap, "Calendar", true) - --end - --) --}}} ) diff --git a/separable/binder.lua b/separable/binder.lua index e5f6813..9c48676 100644 --- a/separable/binder.lua +++ b/separable/binder.lua @@ -90,15 +90,6 @@ local default_bindings = awful.util.table.join( awful.key({ modkey, "Shift" }, "q", awesome.quit), awful.key({ modkey, }, "Return", spawnf(conf.cmd.terminal)), - awful.key({ modkey, "Control" }, "n", awful.client.restore), - awful.key({ modkey, "Shift" }, "n", - function() - local tag = awful.tag.selected() - for i=1, #tag:clients() do - awful.client.restore(tag:clients()[i]) - end - end), - --{{{ Layout manipulation and client position awful.key({ modkey }, "j", function () awful.client.focus.byidx( 1) @@ -194,7 +185,6 @@ awful.key({ modkey, "Shift" }, "l", screen_move_client_wrapdir("right")), awful.key({ modkey, "Control" }, "o", function (c) c.ontop = not c.ontop end), awful.key({ modkey, "Shift" }, "a", function (c) c.sticky = not c.sticky end), awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end), -awful.key({ modkey, }, "n", function (c) c.minimized = not c.minimized end), awful.key({ modkey, }, "b", function (c) c.border_width = c.border_width > 0 and 0 or beautiful.border_width end), awful.key({ modkey, }, "Up", function(c) client_opacity_set(c, 1, 1, 0.1) end), awful.key({ modkey, }, "Down", function(c) client_opacity_set(c, 1, 0, -0.1) end),