From 7061b480e49a21b923aaf16e4a6159e1d77266b4 Mon Sep 17 00:00:00 2001 From: Alexandre Viau Date: Sun, 11 May 2014 18:02:36 -0400 Subject: [PATCH] Moved layout manipulation, standard program and dropdown terminal binds to settings/binds.lua --- rc.lua.blackburn | 34 +--------------------------------- rc.lua.copland | 34 +--------------------------------- rc.lua.dremora | 34 +--------------------------------- rc.lua.holo | 34 +--------------------------------- rc.lua.multicolor | 34 +--------------------------------- rc.lua.powerarrow-darker | 34 +--------------------------------- rc.lua.rainbow | 34 +--------------------------------- rc.lua.steamburn | 34 +--------------------------------- settings/binds.lua | 39 +++++++++++++++++++++++++++++++++++++++ 9 files changed, 47 insertions(+), 264 deletions(-) diff --git a/rc.lua.blackburn b/rc.lua.blackburn index 271a526..4540042 100644 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -13,7 +13,6 @@ require("awful.autofocus") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") -local drop = require("scratchdrop") local lain = require("lain") -- }}} @@ -43,7 +42,7 @@ browser2 = "iron" gui_editor = "gvim" graphics = "gimp" -local layouts = { +layouts = { awful.layout.suit.floating, lain.layout.uselesstile, awful.layout.suit.fair, @@ -356,37 +355,6 @@ globalkeys = awful.util.table.join(globalkeys, awful.key({ altkey, "Control" }, "+", function () lain.util.useless_gaps_resize(1) end), awful.key({ altkey, "Control" }, "-", function () lain.util.useless_gaps_resize(-1) end), - -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), - awful.key({ modkey, }, "u", awful.client.urgent.jumpto), - awful.key({ modkey, }, "Tab", - function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end), - awful.key({ altkey, "Shift" }, "l", function () awful.tag.incmwfact( 0.05) end), - awful.key({ altkey, "Shift" }, "h", function () awful.tag.incmwfact(-0.05) end), - awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), - awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), - awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), - awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), - awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), - awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), - awful.key({ modkey, "Control" }, "n", awful.client.restore), - - -- Standard program - awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), - awful.key({ modkey, "Control" }, "r", awesome.restart), - awful.key({ modkey, "Shift" }, "q", awesome.quit), - - -- Dropdown terminal - awful.key({ modkey, }, "z", function () drop(terminal) end), - -- Widgets popups awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end), awful.key({ altkey, }, "h", function () fshome.show(7) end), diff --git a/rc.lua.copland b/rc.lua.copland index 43c13ff..617d8fe 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -13,7 +13,6 @@ require("awful.autofocus") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") -local drop = require("scratchdrop") local lain = require("lain") local eminent = require("eminent") -- }}} @@ -50,7 +49,7 @@ lain.layout.termfair.ncol = 1 lain.layout.centerfair.nmaster = 3 lain.layout.centerfair.ncol = 1 -local layouts = { +layouts = { awful.layout.suit.floating, awful.layout.suit.fair, awful.layout.suit.tile, @@ -409,37 +408,6 @@ globalkeys = awful.util.table.join(globalkeys, -- Rename tag awful.key({ altkey, "Shift" }, "r", function () lain.util.rename_tag(mypromptbox) end), - -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), - awful.key({ modkey, }, "u", awful.client.urgent.jumpto), - awful.key({ modkey, }, "Tab", - function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end), - awful.key({ altkey, "Shift" }, "l", function () awful.tag.incmwfact( 0.05) end), - awful.key({ altkey, "Shift" }, "h", function () awful.tag.incmwfact(-0.05) end), - awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), - awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), - awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), - awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), - awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), - awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), - awful.key({ modkey, "Control" }, "n", awful.client.restore), - - -- Standard program - awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), - awful.key({ modkey, "Control" }, "r", awesome.restart), - awful.key({ modkey, "Shift" }, "q", awesome.quit), - - -- Dropdown terminal - awful.key({ modkey, }, "z", function () drop(terminal) end), - -- Widgets popups awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end), awful.key({ altkey, }, "h", function () fshomeupd.show(7) end), diff --git a/rc.lua.dremora b/rc.lua.dremora index e3089cb..02f7439 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -13,7 +13,6 @@ require("awful.autofocus") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") -local drop = require("scratchdrop") local lain = require("lain") -- }}} @@ -43,7 +42,7 @@ browser2 = "iron" gui_editor = "gvim" graphics = "gimp" -local layouts = { +layouts = { awful.layout.suit.floating, lain.layout.uselesstile, awful.layout.suit.fair, @@ -356,37 +355,6 @@ globalkeys = awful.util.table.join(globalkeys, awful.key({ altkey, "Control" }, "+", function () lain.util.useless_gaps_resize(1) end), awful.key({ altkey, "Control" }, "-", function () lain.util.useless_gaps_resize(-1) end), - -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), - awful.key({ modkey, }, "u", awful.client.urgent.jumpto), - awful.key({ modkey, }, "Tab", - function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end), - awful.key({ altkey, "Shift" }, "l", function () awful.tag.incmwfact( 0.05) end), - awful.key({ altkey, "Shift" }, "h", function () awful.tag.incmwfact(-0.05) end), - awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), - awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), - awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), - awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), - awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), - awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), - awful.key({ modkey, "Control" }, "n", awful.client.restore), - - -- Standard program - awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), - awful.key({ modkey, "Control" }, "r", awesome.restart), - awful.key({ modkey, "Shift" }, "q", awesome.quit), - - -- Dropdown terminal - awful.key({ modkey, }, "z", function () drop(terminal) end), - -- Widgets popups awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end), awful.key({ altkey, }, "h", function () fshome.show(7) end), diff --git a/rc.lua.holo b/rc.lua.holo index ad8415d..bd2d5d3 100644 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -13,7 +13,6 @@ require("awful.autofocus") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") -local drop = require("scratchdrop") local lain = require("lain") -- }}} @@ -44,7 +43,7 @@ gui_editor = "gvim" graphics = "gimp" musiplr = terminal .. " -e ncmpcpp " -local layouts = { +layouts = { awful.layout.suit.floating, lain.layout.uselesstile, awful.layout.suit.fair, @@ -492,37 +491,6 @@ globalkeys = awful.util.table.join(globalkeys, awful.key({ altkey, "Control" }, "+", function () lain.util.useless_gaps_resize(1) end), awful.key({ altkey, "Control" }, "-", function () lain.util.useless_gaps_resize(-1) end), - -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), - awful.key({ modkey, }, "u", awful.client.urgent.jumpto), - awful.key({ modkey, }, "Tab", - function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end), - awful.key({ altkey, "Shift" }, "l", function () awful.tag.incmwfact( 0.05) end), - awful.key({ altkey, "Shift" }, "h", function () awful.tag.incmwfact(-0.05) end), - awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), - awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), - awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), - awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), - awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), - awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), - awful.key({ modkey, "Control" }, "n", awful.client.restore), - - -- Standard program - awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), - awful.key({ modkey, "Control" }, "r", awesome.restart), - awful.key({ modkey, "Shift" }, "q", awesome.quit), - - -- Dropdown terminal - awful.key({ modkey, }, "z", function () drop(terminal) end), - -- Widgets popups awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end), awful.key({ altkey, }, "w", function () yawn.show(7) end), diff --git a/rc.lua.multicolor b/rc.lua.multicolor index b8c33e0..0e810f7 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -13,7 +13,6 @@ require("awful.autofocus") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") -local drop = require("scratchdrop") local lain = require("lain") -- }}} @@ -44,7 +43,7 @@ gui_editor = "gvim" graphics = "gimp" mail = terminal .. " -e mutt " -local layouts = { +layouts = { awful.layout.suit.floating, awful.layout.suit.tile, awful.layout.suit.tile.left, @@ -420,37 +419,6 @@ globalkeys = awful.util.table.join(globalkeys, mybottomwibox[mouse.screen].visible = not mybottomwibox[mouse.screen].visible end), - -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), - awful.key({ modkey, }, "u", awful.client.urgent.jumpto), - awful.key({ modkey, }, "Tab", - function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end), - awful.key({ altkey, "Shift" }, "l", function () awful.tag.incmwfact( 0.05) end), - awful.key({ altkey, "Shift" }, "h", function () awful.tag.incmwfact(-0.05) end), - awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), - awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), - awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), - awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), - awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), - awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), - awful.key({ modkey, "Control" }, "n", awful.client.restore), - - -- Standard program - awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), - awful.key({ modkey, "Control" }, "r", awesome.restart), - awful.key({ modkey, "Shift" }, "q", awesome.quit), - - -- Dropdown terminal - awful.key({ modkey, }, "z", function () drop(terminal) end), - -- Widgets popups awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end), awful.key({ altkey, }, "h", function () fswidget.show(7) end), diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 2973f38..258e7c4 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -13,7 +13,6 @@ require("awful.autofocus") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") -local drop = require("scratchdrop") local lain = require("lain") -- }}} @@ -46,7 +45,7 @@ mail = terminal .. " -e mutt " iptraf = terminal .. " -g 180x54-20+34 -e sudo iptraf-ng -i all " musicplr = terminal .. " -g 130x34-320+16 -e ncmpcpp " -local layouts = { +layouts = { awful.layout.suit.floating, awful.layout.suit.tile, awful.layout.suit.tile.bottom, @@ -410,37 +409,6 @@ globalkeys = awful.util.table.join(globalkeys, mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible end), - -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), - awful.key({ modkey, }, "u", awful.client.urgent.jumpto), - awful.key({ modkey, }, "Tab", - function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end), - awful.key({ altkey, "Shift" }, "l", function () awful.tag.incmwfact( 0.05) end), - awful.key({ altkey, "Shift" }, "h", function () awful.tag.incmwfact(-0.05) end), - awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), - awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), - awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), - awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), - awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), - awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), - awful.key({ modkey, "Control" }, "n", awful.client.restore), - - -- Standard program - awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), - awful.key({ modkey, "Control" }, "r", awesome.restart), - awful.key({ modkey, "Shift" }, "q", awesome.quit), - - -- Dropdown terminal - awful.key({ modkey, }, "z", function () drop(terminal) end), - -- Widgets popups awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end), awful.key({ altkey, }, "h", function () fswidget.show(7) end), diff --git a/rc.lua.rainbow b/rc.lua.rainbow index aa40040..53f3970 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -13,7 +13,6 @@ require("awful.autofocus") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") -local drop = require("scratchdrop") local lain = require("lain") -- }}} @@ -47,7 +46,7 @@ graphics = "gimp" lain.layout.termfair.nmaster = 3 lain.layout.termfair.ncol = 1 -local layouts = { +layouts = { awful.layout.suit.floating, awful.layout.suit.fair, awful.layout.suit.tile, @@ -354,37 +353,6 @@ globalkeys = awful.util.table.join(globalkeys, awful.key({ altkey, "Control" }, "+", function () lain.util.useless_gaps_resize(1) end), awful.key({ altkey, "Control" }, "-", function () lain.util.useless_gaps_resize(-1) end), - -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), - awful.key({ modkey, }, "u", awful.client.urgent.jumpto), - awful.key({ modkey, }, "Tab", - function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end), - awful.key({ altkey, "Shift" }, "l", function () awful.tag.incmwfact( 0.05) end), - awful.key({ altkey, "Shift" }, "h", function () awful.tag.incmwfact(-0.05) end), - awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), - awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), - awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), - awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), - awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), - awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), - awful.key({ modkey, "Control" }, "n", awful.client.restore), - - -- Standard program - awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), - awful.key({ modkey, "Control" }, "r", awesome.restart), - awful.key({ modkey, "Shift" }, "q", awesome.quit), - - -- Dropdown terminal - awful.key({ modkey, }, "z", function () drop(terminal) end), - -- Widgets popups awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end), awful.key({ altkey, }, "h", function () fshome.show(7) end), diff --git a/rc.lua.steamburn b/rc.lua.steamburn index cb4123e..a028131 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -13,7 +13,6 @@ require("awful.autofocus") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") -local drop = require("scratchdrop") local lain = require("lain") -- }}} @@ -47,7 +46,7 @@ graphics = "gimp" lain.layout.termfair.nmaster = 3 lain.layout.termfair.ncol = 1 -local layouts = { +layouts = { awful.layout.suit.floating, lain.layout.uselessfair.horizontal, lain.layout.uselesstile, @@ -363,37 +362,6 @@ globalkeys = awful.util.table.join(globalkeys, mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible end), - -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), - awful.key({ modkey, }, "u", awful.client.urgent.jumpto), - awful.key({ modkey, }, "Tab", - function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end), - awful.key({ altkey, "Shift" }, "l", function () awful.tag.incmwfact( 0.05) end), - awful.key({ altkey, "Shift" }, "h", function () awful.tag.incmwfact(-0.05) end), - awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), - awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), - awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), - awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), - awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), - awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), - awful.key({ modkey, "Control" }, "n", awful.client.restore), - - -- Standard program - awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), - awful.key({ modkey, "Control" }, "r", awesome.restart), - awful.key({ modkey, "Shift" }, "q", awesome.quit), - - -- Dropdown terminal - awful.key({ modkey, }, "z", function () drop(terminal) end), - -- Widgets popups awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end), awful.key({ altkey, }, "h", function () fshomeupd.show(7) end), diff --git a/settings/binds.lua b/settings/binds.lua index a19b040..2d12c32 100644 --- a/settings/binds.lua +++ b/settings/binds.lua @@ -1,4 +1,5 @@ local awful = require("awful") +local drop = require("scratchdrop") -- {{{ Mouse bindings root.buttons(awful.util.table.join( @@ -8,6 +9,42 @@ root.buttons(awful.util.table.join( )) -- }}} +-- {{{ Key bindings + +globalkeys = awful.util.table.join(globalkeys, + +-- Layout manipulation +awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), +awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), +awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), +awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), +awful.key({ modkey, }, "u", awful.client.urgent.jumpto), +awful.key({ modkey, }, "Tab", + function () + awful.client.focus.history.previous() + if client.focus then + client.focus:raise() + end + end), +awful.key({ altkey, "Shift" }, "l", function () awful.tag.incmwfact( 0.05) end), +awful.key({ altkey, "Shift" }, "h", function () awful.tag.incmwfact(-0.05) end), +awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), +awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), +awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), +awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), +awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), +awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), +awful.key({ modkey, "Control" }, "n", awful.client.restore), + +-- Standard program +awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), +awful.key({ modkey, "Control" }, "r", awesome.restart), +awful.key({ modkey, "Shift" }, "q", awesome.quit), + +-- Dropdown terminal +awful.key({ modkey, }, "z", function () drop(terminal) end) +) + -- Bind all key numbers to tags. -- Be careful: we use keycodes to make it works on any keyboard layout. -- This should map on the top row of your keyboard, usually 1 to 9. @@ -44,3 +81,5 @@ for i = 1, 9 do end end)) end + +-- }}}