Skip to content

Commit

Permalink
add move and resize window function in rc.lua.*
Browse files Browse the repository at this point in the history
  • Loading branch information
geekpi committed May 15, 2014
1 parent 23b7e4a commit 53de794
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 8 deletions.
10 changes: 9 additions & 1 deletion rc.lua.blackburn
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 9 additions & 1 deletion rc.lua.copland
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 9 additions & 1 deletion rc.lua.dremora
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 9 additions & 1 deletion rc.lua.holo
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 9 additions & 1 deletion rc.lua.multicolor
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 9 additions & 1 deletion rc.lua.powerarrow-darker
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 9 additions & 1 deletion rc.lua.rainbow
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 9 additions & 1 deletion rc.lua.steamburn
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 53de794

Please sign in to comment.