tests/example: Add vim modelines
This uses DOC_HIDE magic in the actual test code, except for the template.lua files which do not have it. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
af59d52ddf
commit
46c32d9df1
|
@ -11,3 +11,5 @@ mouse.coords {
|
|||
}
|
||||
|
||||
mouse.push_history() --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -23,3 +23,5 @@ c = client.gen_fake {x = screen[3].geometry.x+10, y = screen[3].geometry.y+10, w
|
|||
placement.align(c, {position = "center_horizontal", honor_workarea=true})
|
||||
|
||||
return {hide_lines=true}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -14,3 +14,5 @@ awful.placement.bottom(client.focus)
|
|||
assert(c.x == screen[1].geometry.width/2-40/2-c.border_width--DOC_HIDE
|
||||
and c.y==screen[1].geometry.height-30-2*c.border_width--DOC_HIDE
|
||||
and c.width==40 and c.height==30)--DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -17,3 +17,5 @@ assert( --DOC_HIDE
|
|||
and c.width == 40--DOC_HIDE
|
||||
and c.height == 30--DOC_HIDE
|
||||
) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -14,3 +14,5 @@ awful.placement.bottom_right(client.focus)
|
|||
assert(c.x == screen[1].geometry.width-40-2*c.border_width) --DOC_HIDE
|
||||
assert(c.y==screen[1].geometry.height-30-2*c.border_width) --DOC_HIDE
|
||||
assert(c.width==40 and c.height==30)--DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -13,3 +13,5 @@ awful.placement.center_horizontal(client.focus)
|
|||
assert(c.x == screen[1].geometry.width/2-40/2-c.border_width)--DOC_HIDE
|
||||
assert(c.y==35)--DOC_HIDE
|
||||
assert(c.width==40 and c.height==30)--DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -9,3 +9,5 @@ local awful = {placement = require("awful.placement")} --DOC_HIDE
|
|||
--[[local c = ]]client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE
|
||||
|
||||
awful.placement.center_vertical(client.focus)
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -14,3 +14,5 @@ awful.placement.centered(client.focus)
|
|||
assert(c.x == screen[1].geometry.width/2-40/2-c.border_width) --DOC_HIDE
|
||||
assert(c.y==screen[1].geometry.height/2-30/2-c.border_width) --DOC_HIDE
|
||||
assert(c.width==40 and c.height==30)--DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -60,3 +60,5 @@ local _, corner = awful.placement.closest_corner(
|
|||
{include_sides = true, bounding_rect = {x=0, y=0, width=200, height=200}}
|
||||
)
|
||||
print("Closest corner:", corner)
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -9,3 +9,5 @@ f(client.focus)
|
|||
local sg = screen[1].geometry--DOC_HIDE
|
||||
assert(c.x == sg.x and c.y==sg.height/2-30/2-c.border_width--DOC_HIDE
|
||||
and c.width==40 and c.height==30)--DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -16,3 +16,5 @@ assert(c.x == wa.x and geo.x == wa.x)--DOC_HIDE
|
|||
assert(c.y == wa.y) --DOC_HIDE
|
||||
assert(c.width == wa.width/2 - 2*c.border_width)--DOC_HIDE
|
||||
assert(c.height == wa.height - 2*c.border_width)--DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -13,3 +13,5 @@ awful.placement.left(client.focus)
|
|||
|
||||
assert(c.x == 0 and c.y==screen[1].geometry.height/2-30/2-c.border_width--DOC_HIDE
|
||||
and c.width==40 and c.height==30)--DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -16,3 +16,5 @@ local c1 = client.gen_fake {--DOC_HIDE
|
|||
c1.height+2*c1.border_width == screen[1].geometry.height) --DOC_HIDE
|
||||
end --DOC_HIDE
|
||||
end --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -13,3 +13,5 @@ placement.maximize_horizontally(c)
|
|||
assert(c.width + 2*c.border_width == screen[1].geometry.width) --DOC_HIDE
|
||||
assert(c.y == 35) --DOC_HIDE
|
||||
assert(c.height == 30) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -13,3 +13,5 @@ placement.maximize_vertically(c)
|
|||
assert(c.height+2*c.border_width == screen[1].geometry.height)--DOC_HIDE
|
||||
assert(c.x == 45) --DOC_HIDE
|
||||
assert(c.width == 40) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -6,3 +6,5 @@ mouse.coords {x= 50, y=50} --DOC_HIDE
|
|||
mouse.push_history() --DOC_HIDE
|
||||
|
||||
awful.placement.next_to_mouse(client.focus)
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -7,3 +7,5 @@ print("Before:", "x="..c.x..", y="..c.y..", width="..c.width..", height="..c.hei
|
|||
awful.placement.no_offscreen(c)--, {honor_workarea=true, margins=40})
|
||||
|
||||
print("After:", "x="..c.x..", y="..c.y..", width="..c.width..", height="..c.height) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -24,3 +24,5 @@ awful.placement.no_overlap(client.focus) --FIXME --DOC_HIDE
|
|||
|
||||
--TODO maximized + no_overlap --DOC_HIDE
|
||||
--TODO add 9 clients with no_overlap on all of them --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -72,3 +72,5 @@ for _, v in ipairs(all_coords_in) do
|
|||
assert(test_touch_mouse(client.get()[s]), v[1])
|
||||
s = s + 1
|
||||
end
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -14,3 +14,5 @@ awful.placement.right(client.focus)
|
|||
assert(c.x == screen[1].geometry.width-40-2*c.border_width) --DOC_HIDE
|
||||
assert( c.y==screen[1].geometry.height/2-30/2-c.border_width)--DOC_HIDE
|
||||
assert( c.width==40 and c.height==30)--DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -14,3 +14,5 @@ local c1 = client.gen_fake {--DOC_HIDE
|
|||
|
||||
placement.stretch(c1, {direction=pos})
|
||||
end
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -16,3 +16,5 @@ assert(c.y==35) --DOC_HIDE
|
|||
assert(c.width == 40) --DOC_HIDE
|
||||
assert(c.y+c.height+2*c.border_width == --DOC_HIDE
|
||||
screen[1].geometry.y + screen[1].geometry.height) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -12,3 +12,5 @@ local c = client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE
|
|||
placement.stretch_left(client.focus)
|
||||
|
||||
assert(c.x == 0 and c.y == 35 and c.height == 30) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -13,3 +13,5 @@ placement.stretch_right(client.focus)
|
|||
|
||||
local right = screen[1].geometry.x + screen[1].geometry.width --DOC_HIDE
|
||||
assert(c.height == 30 and c.x == 45 and c.x+c.width+2*c.border_width == right) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -15,3 +15,5 @@ assert(c.y==0) --DOC_HIDE
|
|||
assert(c.x==45) --DOC_HIDE
|
||||
assert(c.width == 40) --DOC_HIDE
|
||||
assert(c.height-2*c.border_width == 35+30) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -15,3 +15,5 @@ assert(c.x == screen[1].geometry.width/2-40/2-c.border_width)
|
|||
assert(c.y==0) --DOC_HIDE
|
||||
assert( c.width==40) --DOC_HIDE
|
||||
assert(c.height==30)--DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -12,3 +12,5 @@ local c = client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE
|
|||
awful.placement.top_left(client.focus)
|
||||
|
||||
assert(c.x == 0 and c.y==0 and c.width==40 and c.height==30)--DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -13,3 +13,5 @@ awful.placement.top_right(client.focus)
|
|||
|
||||
assert(c.x == screen[1].geometry.width-40-2*c.border_width and c.y==0 --DOC_HIDE
|
||||
and c.width==40 and c.height==30)--DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -9,3 +9,5 @@ awful.placement.under_mouse(client.focus)
|
|||
|
||||
assert(client.focus.x + client.focus.width /2 - mouse.coords().x <= 1) --DOC_HIDE
|
||||
assert(client.focus.y + client.focus.height/2 - mouse.coords().y <= 1) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -136,3 +136,5 @@ for _, h in ipairs(mouse.old_histories) do
|
|||
end
|
||||
|
||||
img:finish()
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.arc(cr,70,70, nil, 0, 2*math.pi)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.arrow) : rotate_at(35,35,math.pi/2)(cr,70,70)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.circle) : scale(0.5, 1)(cr,70,70)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.cross) : scale(0.5, 1)(cr,70,70)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.hexagon) : rotate_at(35,35,math.pi/2)(cr,70,40)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -10,3 +10,5 @@ show(cr) --DOC_HIDE
|
|||
shape.transform(shape.infobubble)
|
||||
: rotate_at(35,35,3*math.pi/2) (cr,70,70, nil, nil, 40)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.isosceles_triangle) : rotate_at(35, 35, math.pi/2)(cr,70,70)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.losange) : scale(0.5, 1)(cr,70,70)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.octogon) : translate(0, 25) (cr,70,20)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.parallelogram) : scale(0.5, 1)(cr,70,70)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.partially_rounded_rect(cr, 70, 70, true, true, false, true, 30)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.pie(cr,70,70, 0, 2*math.pi, 10)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.powerline) : translate(0, 25) (cr,70,20, -20)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr, true) --DOC_HIDE
|
|||
|
||||
shape.radial_progress(cr, 70, 20, .9)
|
||||
show(cr, true) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.rectangle) : scale(0.5, 1)(cr,70,70)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -11,3 +11,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.rectangular_tag) : translate(0, 30) (cr, 70, 10, -10)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.rounded_bar(cr, 70, 20)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ show(cr) --DOC_HIDE
|
|||
|
||||
shape.transform(shape.rounded_rect) : translate(0,25) (cr,70,20, 5)
|
||||
show(cr) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -2,3 +2,5 @@ return function() return {
|
|||
data = {},
|
||||
connect_signal = function() end
|
||||
} end
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -21,4 +21,3 @@ return setmetatable(drawin, {
|
|||
})
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
||||
|
|
|
@ -99,4 +99,3 @@ screen._add_screen {width=320, height=240}
|
|||
return screen
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
||||
|
|
|
@ -34,4 +34,3 @@ return setmetatable(tag, {
|
|||
})
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
||||
|
|
|
@ -51,3 +51,5 @@ print(o.something)
|
|||
o.something = "a cow"
|
||||
|
||||
print(o.something)
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -22,3 +22,5 @@ o:disconnect_signal("my_signal", slot)
|
|||
|
||||
-- This time, the `slot` wont be called as it is no longer connected.
|
||||
o:emit_signal "my_signal"
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -3,3 +3,5 @@ require("_common_template")(...)
|
|||
|
||||
-- Execute the test
|
||||
loadfile(file_path)()
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -36,3 +36,5 @@ for _, v in ipairs {"", "#00ff00", "#0000ff"} do
|
|||
end
|
||||
|
||||
return nil, 60
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -46,3 +46,5 @@ for _, v in ipairs {0,1,3,6.5} do
|
|||
end
|
||||
|
||||
return nil, 60
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -77,3 +77,5 @@ l:add(wibox.widget {
|
|||
})
|
||||
|
||||
return nil, 60
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -79,3 +79,5 @@ parent:add(wibox.widget {
|
|||
})
|
||||
|
||||
return 500, 60
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -33,3 +33,5 @@ for _, v in ipairs {0, math.pi/2, math.pi} do
|
|||
end
|
||||
|
||||
return nil, 60
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -37,3 +37,5 @@ for _, v in ipairs {1,3,7,10} do
|
|||
end
|
||||
|
||||
return nil, 60
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -26,3 +26,5 @@ for _, v in ipairs {0,1,7,99} do
|
|||
end
|
||||
|
||||
return nil, 60
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -25,3 +25,5 @@ parent : setup {
|
|||
spacing = 10,
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -30,3 +30,5 @@ parent : setup {
|
|||
spacing = 10,
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -25,3 +25,5 @@ parent : setup {
|
|||
spacing = 10,
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -38,3 +38,5 @@ parent : setup {
|
|||
spacing = 10,
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -43,3 +43,5 @@ return {
|
|||
},
|
||||
layout = wibox.container.margin
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -22,3 +22,5 @@ return {
|
|||
bg = beautiful.bg_highlight,
|
||||
widget = wibox.container.background
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -25,3 +25,5 @@ return {
|
|||
},
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -52,3 +52,5 @@ return {
|
|||
expand = "none",
|
||||
layout = wibox.layout.align.vertical,
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -17,3 +17,5 @@ return {
|
|||
reflection = {horizontal = true},
|
||||
widget = wibox.container.mirror
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -23,3 +23,5 @@ return {
|
|||
margins = 5,
|
||||
layout = wibox.container.margin
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -17,3 +17,5 @@ return {
|
|||
direction = "east",
|
||||
widget = wibox.container.rotate
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -75,3 +75,4 @@ local f_w, f_h = container:fit({dpi=96}, 9999, 9999)
|
|||
local img = surface.widget_to_svg(container, image_path..".svg", f_w, f_h)
|
||||
img:finish()
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -24,3 +24,5 @@ local l = wibox.layout {
|
|||
}
|
||||
|
||||
parent:add(l)
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -27,3 +27,5 @@ local l = wibox.layout {
|
|||
}
|
||||
|
||||
parent:add(l)
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -24,3 +24,5 @@ local l = wibox.layout {
|
|||
}
|
||||
|
||||
parent:add(l)
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -31,3 +31,5 @@ local l = wibox.layout {
|
|||
}
|
||||
|
||||
parent:add(l)
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -26,3 +26,5 @@ local l = wibox.layout {
|
|||
}
|
||||
|
||||
parent:add(l)
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -60,3 +60,5 @@ parent : setup { --DOC_HIDE
|
|||
spacing = 10, --DOC_HIDE
|
||||
layout = wibox.layout.fixed.horizontal --DOC_HIDE
|
||||
} --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ wibox.widget {
|
|||
generic_widget( "third" ),
|
||||
layout = wibox.layout.align.horizontal
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ wibox.widget {
|
|||
generic_widget( "third" ),
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ wibox.widget {
|
|||
generic_widget( "third" ),
|
||||
layout = wibox.layout.flex.horizontal
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -11,3 +11,5 @@ local w = wibox.widget {
|
|||
w:ajust_ratio(2, 0.44, 0.33, 0.22)
|
||||
|
||||
return w --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -8,3 +8,5 @@ wibox.widget {
|
|||
generic_widget( "third" ),
|
||||
layout = wibox.layout.stack
|
||||
}
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -101,3 +101,5 @@ end
|
|||
-- Save to the output file
|
||||
local img = surface["widget_to_svg"](widget, image_path..".svg", w or 200, h or 30)
|
||||
img:finish()
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -13,3 +13,5 @@ parent:add( --DOC_HIDE
|
|||
}
|
||||
|
||||
) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -15,3 +15,5 @@ parent:add( --DOC_HIDE
|
|||
}
|
||||
|
||||
) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -27,3 +27,4 @@ f_w, f_h = f_w+10, f_h+10
|
|||
local img = surface["widget_to_"..image_type](container, image_path.."."..image_type, w or f_w, h or f_h)
|
||||
img:finish()
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -18,3 +18,5 @@ parent:add( --DOC_HIDE
|
|||
widget = wibox.widget.checkbox
|
||||
}
|
||||
) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -25,3 +25,5 @@ for _, s in ipairs {"rectangle", "circle", "losange", "octogon"} do
|
|||
end
|
||||
|
||||
parent:add(l) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -31,3 +31,5 @@ parent:add( --DOC_HIDE
|
|||
widget = wibox.widget.checkbox
|
||||
}
|
||||
) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -25,3 +25,5 @@ for _, s in ipairs {"rectangle", "circle", "losange", "octogon"} do
|
|||
end
|
||||
|
||||
parent:add(l) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -29,3 +29,5 @@ parent:add( --DOC_HIDE
|
|||
} --DOC_HIDE
|
||||
|
||||
) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -20,3 +20,5 @@ parent:add( w ) --DOC_HIDE
|
|||
for _, v in ipairs(data) do --DOC_HIDE
|
||||
w:add_value(v) --DOC_HIDE
|
||||
end --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -11,3 +11,5 @@ parent:add( --DOC_HIDE
|
|||
}
|
||||
|
||||
) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -22,3 +22,5 @@ parent:add( --DOC_HIDE
|
|||
}
|
||||
|
||||
) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -17,3 +17,5 @@ parent:add( --DOC_HIDE
|
|||
}
|
||||
|
||||
) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -20,3 +20,5 @@ parent:add( --DOC_HIDE
|
|||
}
|
||||
|
||||
) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -11,3 +11,5 @@ parent:add( --DOC_HIDE
|
|||
}
|
||||
|
||||
) --DOC_HIDE
|
||||
|
||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue