Add awesome extras

This commit is contained in:
2021-12-15 13:09:25 +00:00
parent 2aa8f732d6
commit 36bfe02555
49 changed files with 6173 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
local gears = require("gears")
shape = {}
-- Create rounded rectangle shape (in one line)
function shape.rrect(radius)
return function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, radius)
end
end
-- Create partially rounded rect
function shape.prrect(radius, tl, tr, br, bl)
return function(cr, width, height)
gears.shape.partially_rounded_rect(
cr,
width,
height,
tl,
tr,
br,
bl,
radius
)
end
end
return shape