From 53de79410d3bb5e128e134616568676156916c3a Mon Sep 17 00:00:00 2001 From: zhengsihua Date: Thu, 15 May 2014 11:11:09 +0800 Subject: [PATCH] add move and resize window function in rc.lua.* --- rc.lua.blackburn | 10 +++++++++- rc.lua.copland | 10 +++++++++- rc.lua.dremora | 10 +++++++++- rc.lua.holo | 10 +++++++++- rc.lua.multicolor | 10 +++++++++- rc.lua.powerarrow-darker | 10 +++++++++- rc.lua.rainbow | 10 +++++++++- rc.lua.steamburn | 10 +++++++++- 8 files changed, 72 insertions(+), 8 deletions(-) diff --git a/rc.lua.blackburn b/rc.lua.blackburn index 699a54f..809463f 100644 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -488,7 +488,15 @@ globalkeys = awful.util.table.join( mypromptbox[mouse.screen].widget, awful.util.eval, nil, awful.util.getdir("cache") .. "/history_eval") - end) + end), + + --move and resize window + awful.key({ modkey, "Control" }, "Down", function () awful.client.moveresize( 0, 20, 0, 0) end), + awful.key({ modkey, "Control" }, "Up", function () awful.client.moveresize( 0, -20, 0, 0) end), + awful.key({ modkey, "Control" }, "Left", function () awful.client.moveresize(-20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Right", function () awful.client.moveresize( 20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Next", function () awful.client.moveresize( 20, 20, -40, -40) end), + awful.key({ modkey, "Control" }, "Prior", function () awful.client.moveresize(-20, -20, 40, 40) end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.copland b/rc.lua.copland index dcf3db6..83bb06a 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -541,7 +541,15 @@ globalkeys = awful.util.table.join( mypromptbox[mouse.screen].widget, awful.util.eval, nil, awful.util.getdir("cache") .. "/history_eval") - end) + end), + + --move and resize window + awful.key({ modkey, "Control" }, "Down", function () awful.client.moveresize( 0, 20, 0, 0) end), + awful.key({ modkey, "Control" }, "Up", function () awful.client.moveresize( 0, -20, 0, 0) end), + awful.key({ modkey, "Control" }, "Left", function () awful.client.moveresize(-20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Right", function () awful.client.moveresize( 20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Next", function () awful.client.moveresize( 20, 20, -40, -40) end), + awful.key({ modkey, "Control" }, "Prior", function () awful.client.moveresize(-20, -20, 40, 40) end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.dremora b/rc.lua.dremora index ff7daed..12dbff5 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -488,7 +488,15 @@ globalkeys = awful.util.table.join( mypromptbox[mouse.screen].widget, awful.util.eval, nil, awful.util.getdir("cache") .. "/history_eval") - end) + end), + + --move and resize window + awful.key({ modkey, "Control" }, "Down", function () awful.client.moveresize( 0, 20, 0, 0) end), + awful.key({ modkey, "Control" }, "Up", function () awful.client.moveresize( 0, -20, 0, 0) end), + awful.key({ modkey, "Control" }, "Left", function () awful.client.moveresize(-20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Right", function () awful.client.moveresize( 20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Next", function () awful.client.moveresize( 20, 20, -40, -40) end), + awful.key({ modkey, "Control" }, "Prior", function () awful.client.moveresize(-20, -20, 40, 40) end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.holo b/rc.lua.holo index 8594453..a8b524a 100644 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -623,7 +623,15 @@ globalkeys = awful.util.table.join( mypromptbox[mouse.screen].widget, awful.util.eval, nil, awful.util.getdir("cache") .. "/history_eval") - end) + end), + + --move and resize window + awful.key({ modkey, "Control" }, "Down", function () awful.client.moveresize( 0, 20, 0, 0) end), + awful.key({ modkey, "Control" }, "Up", function () awful.client.moveresize( 0, -20, 0, 0) end), + awful.key({ modkey, "Control" }, "Left", function () awful.client.moveresize(-20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Right", function () awful.client.moveresize( 20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Next", function () awful.client.moveresize( 20, 20, -40, -40) end), + awful.key({ modkey, "Control" }, "Prior", function () awful.client.moveresize(-20, -20, 40, 40) end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 95c1ca1..eacb4eb 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -551,7 +551,15 @@ globalkeys = awful.util.table.join( mypromptbox[mouse.screen].widget, awful.util.eval, nil, awful.util.getdir("cache") .. "/history_eval") - end) + end), + + --move and resize window + awful.key({ modkey, "Control" }, "Down", function () awful.client.moveresize( 0, 20, 0, 0) end), + awful.key({ modkey, "Control" }, "Up", function () awful.client.moveresize( 0, -20, 0, 0) end), + awful.key({ modkey, "Control" }, "Left", function () awful.client.moveresize(-20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Right", function () awful.client.moveresize( 20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Next", function () awful.client.moveresize( 20, 20, -40, -40) end), + awful.key({ modkey, "Control" }, "Prior", function () awful.client.moveresize(-20, -20, 40, 40) end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index c143005..c440b41 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -540,7 +540,15 @@ globalkeys = awful.util.table.join( mypromptbox[mouse.screen].widget, awful.util.eval, nil, awful.util.getdir("cache") .. "/history_eval") - end) + end), + + --move and resize window + awful.key({ modkey, "Control" }, "Down", function () awful.client.moveresize( 0, 20, 0, 0) end), + awful.key({ modkey, "Control" }, "Up", function () awful.client.moveresize( 0, -20, 0, 0) end), + awful.key({ modkey, "Control" }, "Left", function () awful.client.moveresize(-20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Right", function () awful.client.moveresize( 20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Next", function () awful.client.moveresize( 20, 20, -40, -40) end), + awful.key({ modkey, "Control" }, "Prior", function () awful.client.moveresize(-20, -20, 40, 40) end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.rainbow b/rc.lua.rainbow index 9f58f3a..a14b57a 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -486,7 +486,15 @@ globalkeys = awful.util.table.join( mypromptbox[mouse.screen].widget, awful.util.eval, nil, awful.util.getdir("cache") .. "/history_eval") - end) + end), + + --move and resize window + awful.key({ modkey, "Control" }, "Down", function () awful.client.moveresize( 0, 20, 0, 0) end), + awful.key({ modkey, "Control" }, "Up", function () awful.client.moveresize( 0, -20, 0, 0) end), + awful.key({ modkey, "Control" }, "Left", function () awful.client.moveresize(-20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Right", function () awful.client.moveresize( 20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Next", function () awful.client.moveresize( 20, 20, -40, -40) end), + awful.key({ modkey, "Control" }, "Prior", function () awful.client.moveresize(-20, -20, 40, 40) end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.steamburn b/rc.lua.steamburn index f116819..64e516a 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -495,7 +495,15 @@ globalkeys = awful.util.table.join( mypromptbox[mouse.screen].widget, awful.util.eval, nil, awful.util.getdir("cache") .. "/history_eval") - end) + end), + + --move and resize window + awful.key({ modkey, "Control" }, "Down", function () awful.client.moveresize( 0, 20, 0, 0) end), + awful.key({ modkey, "Control" }, "Up", function () awful.client.moveresize( 0, -20, 0, 0) end), + awful.key({ modkey, "Control" }, "Left", function () awful.client.moveresize(-20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Right", function () awful.client.moveresize( 20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Next", function () awful.client.moveresize( 20, 20, -40, -40) end), + awful.key({ modkey, "Control" }, "Prior", function () awful.client.moveresize(-20, -20, 40, 40) end) ) clientkeys = awful.util.table.join(