Merge pull request #1341 from psychon/modeline
Lots of fun with vim modelines
This commit is contained in:
commit
4b9e8e232d
|
@ -64,3 +64,5 @@ set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A tiling window manager")
|
|||
if(CPACK_GENERATOR)
|
||||
include(CPack)
|
||||
endif()
|
||||
|
||||
# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker
|
||||
|
|
|
@ -16,3 +16,5 @@ foreach(doc_file_name ${doc_files})
|
|||
# Create a new variable usable from lua files
|
||||
set(DOC_${DOC_FILE_NAME}_COMMON "Imported documentation\n\n${doc_file_content}")
|
||||
endforeach()
|
||||
|
||||
# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker
|
||||
|
|
|
@ -47,3 +47,5 @@ endfunction()
|
|||
generate_widget_list( "container" )
|
||||
generate_widget_list( "layout" )
|
||||
generate_widget_list( "widget" )
|
||||
|
||||
# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker
|
||||
|
|
|
@ -86,3 +86,5 @@ capi.client.connect_signal("focus", urgent.delete)
|
|||
capi.client.connect_signal("unmanage", urgent.delete)
|
||||
|
||||
return urgent
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -56,3 +56,5 @@ resize.add_move_callback(function(c, _, _)
|
|||
end, "mouse.move")
|
||||
|
||||
return setmetatable(module, {__call = function(_, ...) return module.drag_to_tag(...) end})
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -227,3 +227,5 @@ local function handler(_, client, context, args) --luacheck: no unused_args
|
|||
end
|
||||
|
||||
return setmetatable(module, {__call=handler})
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -264,3 +264,5 @@ resize.add_leave_callback(function(c, _, args)
|
|||
end, "mouse.move")
|
||||
|
||||
return setmetatable(module, {__call = function(_, ...) return module.snap(...) end})
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -238,3 +238,5 @@ function gears.geometry.rectangle.area_remove(areas, elem)
|
|||
end
|
||||
|
||||
return gears.geometry
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -520,3 +520,5 @@ end
|
|||
return setmetatable(module, {
|
||||
__call = function(_,...) return add_steps(...) end
|
||||
})
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -57,7 +57,7 @@ function(escape_string variable content escaped_content line_prefix)
|
|||
|
||||
set(tmp_output ${content})
|
||||
foreach (LINE ${var_lines})
|
||||
if(NOT LINE MATCHES "^.+--DOC_[A-Z]+$")
|
||||
if(NOT LINE MATCHES "^.*--DOC_[A-Z]+")
|
||||
set(tmp_output ${tmp_output}\n--${line_prefix}${LINE})
|
||||
endif()
|
||||
endforeach()
|
||||
|
@ -259,3 +259,5 @@ foreach(file ${test_files})
|
|||
endforeach()
|
||||
|
||||
message(STATUS "Example tests passed.")
|
||||
|
||||
# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker
|
||||
|
|
|
@ -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
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue