refactor
This commit is contained in:
parent
05896c56dd
commit
ed77efd2f5
29
init.lua
29
init.lua
|
@ -92,8 +92,35 @@ local keys = gears.table.join(
|
||||||
break
|
break
|
||||||
--+ activate previous client
|
--+ activate previous client
|
||||||
end
|
end
|
||||||
|
end),
|
||||||
|
--+ shortcut: shuffle up
|
||||||
|
|
||||||
|
awful.key({ modkey, }, "Page_Up", function ()
|
||||||
|
client.focus:geometry({width=800,height=800}) awful.placement.top_right(client.focus)
|
||||||
|
end),
|
||||||
|
--+ shortcut: align top-right
|
||||||
|
|
||||||
|
awful.key({ modkey, }, "Page_Down", function ()
|
||||||
|
client.focus:geometry({width=800,height=800}) awful.placement.bottom_right(client.focus)
|
||||||
|
end),
|
||||||
|
--+ shortcut: align bottom-right
|
||||||
|
|
||||||
|
awful.key({ modkey, }, "Home", function ()
|
||||||
|
if not client.focus.floating then client.focus.floating = true end
|
||||||
|
awful.placement.centered(client.focus)
|
||||||
|
end),
|
||||||
|
--+ shortcut: align center as float
|
||||||
|
|
||||||
|
awful.key({ modkey, }, "Insert", function ()
|
||||||
|
awful.placement.top_left(client.focus)
|
||||||
|
end),
|
||||||
|
--+ shortcut: align top-left
|
||||||
|
|
||||||
|
awful.key({ modkey, }, "Delete", function ()
|
||||||
|
awful.placement.bottom_left(client.focus)
|
||||||
end)
|
end)
|
||||||
--+ shortcut: shuffle down
|
--+ shortcut: align bottom-left
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
--------------------------------------------------------------> exports -- ;
|
--------------------------------------------------------------> exports -- ;
|
||||||
|
|
Loading…
Reference in New Issue