Compare commits
No commits in common. "dccd5c0a5fa90a83884e6327ad5574f3c61d78ab" and "732d07715ea6a4b89798392936ba8394a580cabf" have entirely different histories.
dccd5c0a5f
...
732d07715e
|
@ -65,12 +65,12 @@ local menu_widget = menu({
|
||||||
},
|
},
|
||||||
{ "Stop task",
|
{ "Stop task",
|
||||||
function()
|
function()
|
||||||
awful.spawn("kill "..tostring(client.focus.pid))
|
awful.spawn("kill "..tostring(c.pid))
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{ "Kill task",
|
{ "Kill task",
|
||||||
function()
|
function()
|
||||||
awful.spawn("kill -s KILL "..tostring(client.focus.pid))
|
awful.spawn("kill -s KILL "..tostring(c.pid))
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{ "Debug info",
|
{ "Debug info",
|
||||||
|
|
|
@ -7,62 +7,17 @@ local awmtk = {}
|
||||||
|
|
||||||
-- {{{ Utils
|
-- {{{ Utils
|
||||||
|
|
||||||
awmtk.subclass = function(parent_class,instance_overrides,name)
|
|
||||||
return setmetatable(instance_overrides,{
|
|
||||||
__index = function(self,k)
|
|
||||||
if rawget(self,k) then
|
|
||||||
return rawget(self,k)
|
|
||||||
elseif type(beautiful[name]) == "table" and beautiful[name][k] then
|
|
||||||
return beautiful[name][k]
|
|
||||||
elseif parent_class[k] then
|
|
||||||
return parent_class[k]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
|
||||||
-- {{{ Classes and namespaces
|
-- {{{ Classes
|
||||||
|
|
||||||
-- Default namespace
|
-- Default namespace
|
||||||
awmtk.default = setmetatable({
|
awmtk.default = setmetatable({}, {
|
||||||
-- { Backgrounds
|
-- { Backgrounds
|
||||||
-- custom background color for highlighting elements
|
|
||||||
bg_highlight = beautiful.bg_highlight or beautiful.bg_focus,
|
|
||||||
-- }
|
|
||||||
-- { Borders
|
|
||||||
-- Borders for popups
|
|
||||||
shape_border_width = beautiful.shape_border_width or 0,
|
|
||||||
shape_border_color = beautiful.shape_border_color or beautiful.bg_normal,
|
|
||||||
-- }
|
|
||||||
-- { Shapes
|
|
||||||
inner_margin = beautiful.inner_margin or 5
|
|
||||||
rounding = beautiful.rounding or 0
|
|
||||||
-- }
|
|
||||||
}, { __index = beautiful })
|
}, { __index = beautiful })
|
||||||
|
|
||||||
-- Container subnamespace
|
|
||||||
-- We copy the table instead of referncing default namespace to avoid recursion
|
|
||||||
awmtk.default.container = setmetatable({
|
|
||||||
-- { Backgrounds
|
|
||||||
-- custom background color for highlighting elements
|
|
||||||
bg_highlight = beautiful.bg_highlight or beautiful.bg_focus,
|
|
||||||
-- }
|
|
||||||
-- { Borders
|
|
||||||
-- Borders for popups
|
|
||||||
shape_border_width = beautiful.shape_border_width or 0,
|
|
||||||
shape_border_color = beautiful.shape_border_color or beautiful.bg_normal,
|
|
||||||
-- }
|
|
||||||
-- { Shapes
|
|
||||||
inner_margin = beautiful.inner_margin or 5
|
|
||||||
rounding = beautiful.rounding or 0
|
|
||||||
-- }
|
|
||||||
-- { Layout spacing
|
|
||||||
spacing = (beautiful.container and beautiful.container.spacing) or 2
|
|
||||||
},{
|
|
||||||
__index = beautiful
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue