removed min and float, they didnt work.
added client icon.
This commit is contained in:
Gokul Swaminathan 2020-11-23 21:16:04 -08:00
parent 429fcd26fe
commit 814eebbebc
1 changed files with 14 additions and 12 deletions

View File

@ -1,3 +1,4 @@
local awful = require("awful")
local gears = require("gears")
local wibox = require("wibox")
local beautiful = require("beautiful")
@ -79,22 +80,23 @@ local function create(c, focused_bool, buttons)
local close = create_title_button(c, close_color, bg_normal)
close:connect_signal("button::press", function() c:kill() end)
local floating = create_title_button(c, float_color, bg_normal)
floating:connect_signal("button::press",
function() c.floating = not c.floating end)
local min = create_title_button(c, min_color, bg_normal)
min:connect_signal("button::press", function() c.minimized = true end)
if focused_bool then
tab_content = wibox.widget {
{
{close, floating, min, layout = wibox.layout.fixed.horizontal},
margins = dpi(10),
awful.widget.clienticon(c),
top = dpi(10),
left = dpi(10),
bottom = dpi(10),
widget = wibox.container.margin
},
text_temp,
nil,
{
{close, layout = wibox.layout.fixed.horizontal},
top = dpi(10),
right = dpi(10),
bottom = dpi(10),
widget = wibox.container.margin
},
expand = "none",
layout = wibox.layout.align.horizontal
}
@ -109,8 +111,8 @@ local function create(c, focused_bool, buttons)
widget = wibox.container.background
},
top = dpi(8),
left = dpi(4),
right = dpi(4),
left = dpi(5),
right = dpi(5),
bottom = dpi(0),
widget = wibox.container.margin
})