1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 11:32:32 +00:00

Merge pull request #46 from geekpi/master

add move and resize window function in rc.lua.*
This commit is contained in:
Luke Bonham 2014-05-16 12:02:29 +02:00
commit 97d8fa5aff
8 changed files with 72 additions and 8 deletions

View file

@ -488,7 +488,15 @@ globalkeys = awful.util.table.join(
mypromptbox[mouse.screen].widget, mypromptbox[mouse.screen].widget,
awful.util.eval, nil, awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval") 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( clientkeys = awful.util.table.join(

View file

@ -541,7 +541,15 @@ globalkeys = awful.util.table.join(
mypromptbox[mouse.screen].widget, mypromptbox[mouse.screen].widget,
awful.util.eval, nil, awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval") 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( clientkeys = awful.util.table.join(

View file

@ -488,7 +488,15 @@ globalkeys = awful.util.table.join(
mypromptbox[mouse.screen].widget, mypromptbox[mouse.screen].widget,
awful.util.eval, nil, awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval") 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( clientkeys = awful.util.table.join(

View file

@ -623,7 +623,15 @@ globalkeys = awful.util.table.join(
mypromptbox[mouse.screen].widget, mypromptbox[mouse.screen].widget,
awful.util.eval, nil, awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval") 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( clientkeys = awful.util.table.join(

View file

@ -551,7 +551,15 @@ globalkeys = awful.util.table.join(
mypromptbox[mouse.screen].widget, mypromptbox[mouse.screen].widget,
awful.util.eval, nil, awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval") 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( clientkeys = awful.util.table.join(

View file

@ -540,7 +540,15 @@ globalkeys = awful.util.table.join(
mypromptbox[mouse.screen].widget, mypromptbox[mouse.screen].widget,
awful.util.eval, nil, awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval") 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( clientkeys = awful.util.table.join(

View file

@ -486,7 +486,15 @@ globalkeys = awful.util.table.join(
mypromptbox[mouse.screen].widget, mypromptbox[mouse.screen].widget,
awful.util.eval, nil, awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval") 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( clientkeys = awful.util.table.join(

View file

@ -495,7 +495,15 @@ globalkeys = awful.util.table.join(
mypromptbox[mouse.screen].widget, mypromptbox[mouse.screen].widget,
awful.util.eval, nil, awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval") 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( clientkeys = awful.util.table.join(