Merge branch 'rewrite'
commit
995c522adb
|
@ -46,12 +46,18 @@ end
|
||||||
|
|
||||||
-- Return current column
|
-- Return current column
|
||||||
function Tagger:get_col()
|
function Tagger:get_col()
|
||||||
return ( (self:get_tag() - 1) % self.cols ) + 1
|
return (
|
||||||
|
(self:get_tag() - 1) % self.cols
|
||||||
|
) + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Return current row
|
-- Return current row
|
||||||
function Tagger:get_row()
|
function Tagger:get_row()
|
||||||
return math.floor( (self:get_tag() - self:get_col()) / self.cols ) + 1
|
return math.floor(
|
||||||
|
(
|
||||||
|
self:get_tag() - self:get_col()
|
||||||
|
) / self.cols
|
||||||
|
) + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Select a tag by position
|
-- Select a tag by position
|
||||||
|
|
|
@ -57,10 +57,15 @@ tasklist.make = function(screen)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
{
|
||||||
|
widget = wibox.container.place,
|
||||||
|
halign = "center",
|
||||||
|
valign = "bottom",
|
||||||
|
fill_vertical = true,
|
||||||
{
|
{
|
||||||
id = "clienticon",
|
id = "clienticon",
|
||||||
widget = awful.widget.clienticon,
|
widget = awful.widget.clienticon,
|
||||||
forced_width = config.core.clienticon_width
|
},
|
||||||
},
|
},
|
||||||
margins = beautiful.dpi(3),
|
margins = beautiful.dpi(3),
|
||||||
widget = wibox.container.margin
|
widget = wibox.container.margin
|
||||||
|
@ -79,7 +84,7 @@ tasklist.make = function(screen)
|
||||||
|
|
||||||
-- Change background when mouse is over widget
|
-- Change background when mouse is over widget
|
||||||
self:connect_signal("mouse::enter", function(result)
|
self:connect_signal("mouse::enter", function(result)
|
||||||
self:get_children_by_id("top_tab")[1].bg = "#2DA0DA"
|
--self:get_children_by_id("top_tab")[1].bg = "#2DA0DA"
|
||||||
self:get_children_by_id("background")[1].bg = beautiful.color.bar.hover_bg
|
self:get_children_by_id("background")[1].bg = beautiful.color.bar.hover_bg
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
@ -90,9 +95,9 @@ tasklist.make = function(screen)
|
||||||
if c == client.focus then
|
if c == client.focus then
|
||||||
self:get_children_by_id("top_tab")[1].bg = "#2DA0FF"
|
self:get_children_by_id("top_tab")[1].bg = "#2DA0FF"
|
||||||
elseif c.minimized then
|
elseif c.minimized then
|
||||||
self:get_children_by_id("top_tab")[1].bg = "#2DA0DA77"
|
|
||||||
else
|
|
||||||
self:get_children_by_id("top_tab")[1].bg = beautiful.color.bar.hover_bg --beautiful.color.transparent
|
self:get_children_by_id("top_tab")[1].bg = beautiful.color.bar.hover_bg --beautiful.color.transparent
|
||||||
|
else
|
||||||
|
self:get_children_by_id("top_tab")[1].bg = "#2DA0DA77"
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
|
@ -107,9 +112,9 @@ tasklist.make = function(screen)
|
||||||
if c == client.focus then
|
if c == client.focus then
|
||||||
self:get_children_by_id("top_tab")[1].bg = "#2DA0DA"
|
self:get_children_by_id("top_tab")[1].bg = "#2DA0DA"
|
||||||
elseif c.minimized then
|
elseif c.minimized then
|
||||||
self:get_children_by_id("top_tab")[1].bg = "#2DA0DA77"
|
|
||||||
else
|
|
||||||
self:get_children_by_id("top_tab")[1].bg = beautiful.color.bar.hover_bg --beautiful.color.transparent
|
self:get_children_by_id("top_tab")[1].bg = beautiful.color.bar.hover_bg --beautiful.color.transparent
|
||||||
|
else
|
||||||
|
self:get_children_by_id("top_tab")[1].bg = "#2DA0DA77"
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
layout = wibox.layout.align.vertical,
|
layout = wibox.layout.align.vertical,
|
||||||
|
|
Loading…
Reference in New Issue