diff --git a/rc.lua.blackburn b/rc.lua.blackburn index 4446078..d348fdd 100644 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -289,13 +289,8 @@ for s = 1, screen.count() do end -- }}} --- {{{ Mouse bindings -root.buttons(awful.util.table.join( - awful.button({ }, 3, function () mymainmenu:toggle() end), - awful.button({ }, 4, awful.tag.viewnext), - awful.button({ }, 5, awful.tag.viewprev) -)) --- }}} +-- Bindings +require("settings.binds") -- {{{ Key bindings globalkeys = awful.util.table.join( diff --git a/rc.lua.copland b/rc.lua.copland index d653cc1..7e38a0c 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -339,13 +339,8 @@ for s = 1, screen.count() do end -- }}} --- {{{ Mouse bindings -root.buttons(awful.util.table.join( - awful.button({ }, 3, function () mymainmenu:toggle() end), - awful.button({ }, 4, awful.tag.viewnext), - awful.button({ }, 5, awful.tag.viewprev) -)) --- }}} +-- Bindings +require("settings.binds") -- {{{ Key bindings globalkeys = awful.util.table.join( diff --git a/rc.lua.dremora b/rc.lua.dremora index 3e24a82..912ee99 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -289,13 +289,8 @@ for s = 1, screen.count() do end -- }}} --- {{{ Mouse bindings -root.buttons(awful.util.table.join( - awful.button({ }, 3, function () mymainmenu:toggle() end), - awful.button({ }, 4, awful.tag.viewnext), - awful.button({ }, 5, awful.tag.viewprev) -)) --- }}} +-- Bindings +require("settings.binds") -- {{{ Key bindings globalkeys = awful.util.table.join( diff --git a/rc.lua.holo b/rc.lua.holo index 571cdad..cdfe937 100644 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -424,13 +424,8 @@ for s = 1, screen.count() do end -- }}} --- {{{ Mouse bindings -root.buttons(awful.util.table.join( - awful.button({ }, 3, function () mymainmenu:toggle() end), - awful.button({ }, 4, awful.tag.viewnext), - awful.button({ }, 5, awful.tag.viewprev) -)) --- }}} +-- Bindings +require("settings.binds") -- {{{ Key bindings globalkeys = awful.util.table.join( diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 91dcca8..b74d3b9 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -356,13 +356,8 @@ for s = 1, screen.count() do end -- }}} --- {{{ Mouse Bindings -root.buttons(awful.util.table.join( - awful.button({ }, 3, function () mymainmenu:toggle() end), - awful.button({ }, 4, awful.tag.viewnext), - awful.button({ }, 5, awful.tag.viewprev) -)) --- }}} +-- Bindings +require("settings.binds") -- {{{ Key bindings globalkeys = awful.util.table.join( diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index ce55936..4bae2f2 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -347,13 +347,8 @@ for s = 1, screen.count() do end -- }}} --- {{{ Mouse Bindings -root.buttons(awful.util.table.join( - awful.button({ }, 3, function () mymainmenu:toggle() end), - awful.button({ }, 4, awful.tag.viewnext), - awful.button({ }, 5, awful.tag.viewprev) -)) --- }}} +-- Bindings +require("settings.binds") -- {{{ Key bindings globalkeys = awful.util.table.join( diff --git a/rc.lua.rainbow b/rc.lua.rainbow index ff6efd0..32bb946 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -287,13 +287,8 @@ for s = 1, screen.count() do end -- }}} --- {{{ Mouse bindings -root.buttons(awful.util.table.join( - awful.button({ }, 3, function () mymainmenu:toggle() end), - awful.button({ }, 4, awful.tag.viewnext), - awful.button({ }, 5, awful.tag.viewprev) -)) --- }}} +-- Bindings +require("settings.binds") -- {{{ Key bindings globalkeys = awful.util.table.join( diff --git a/rc.lua.steamburn b/rc.lua.steamburn index adce0d2..691d341 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -300,13 +300,8 @@ for s = 1, screen.count() do end -- }}} --- {{{ Mouse bindings -root.buttons(awful.util.table.join( - awful.button({ }, 3, function () mymainmenu:toggle() end), - awful.button({ }, 4, awful.tag.viewnext), - awful.button({ }, 5, awful.tag.viewprev) -)) --- }}} +-- Bindings +require("settings.binds") -- {{{ Key bindings globalkeys = awful.util.table.join( diff --git a/settings/binds.lua b/settings/binds.lua new file mode 100644 index 0000000..daa552b --- /dev/null +++ b/settings/binds.lua @@ -0,0 +1,9 @@ +local awful = require("awful") + +-- {{{ Mouse bindings +root.buttons(awful.util.table.join( + awful.button({ }, 3, function () mymainmenu:toggle() end), + awful.button({ }, 4, awful.tag.viewnext), + awful.button({ }, 5, awful.tag.viewprev) +)) +-- }}}