my complicated awesomewm config (SUNSETTED)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
706 B

local awful = require("awful")
local gears = require("gears")
local wibox = require("wibox")
local awmtk = require("awmtk")
return function(args)
local style = awmtk.style(awmtk.defaults, args.style or {},"wintitle_")
local icon = style.icon({
{
widget = wibox.widget.textbox,
markup = "<b></b>",
id = "widget_text"
},
layout = wibox.layout.fixed.horizontal,
spacing = style.wintitle_container_spacing_horizontal or 4
})
local text = icon:get_children_by_id("widget_text")[1]
client.connect_signal("focus", function()
text.markup = "<b>"..tostring(client.focus.icon_name).."</b>"
end)
return icon
end