我想只留下可見的 wibox1 我的標籤。
我嘗試使用這段程式碼:
your_tag:add_signal("property:selected", function(tag)
your_wibox.visible = tag.selected
end)
但沒有成功。
這是我的配置:
wibox1 = wibox({width = 190 , height = 30, x = 40, y = 180, screen = 1 })
wibox1.visible = false
onlinef = blingbling.text_box({ height = 30, width= 100, v_margin = 5, font="Xirod", font_size = "10", text_color = "#00BFFF", background_text_border = "#000000",
})
onlinef:set_text(" offline attacks ")
wibox1:set_widget(onlinef)
awful.key({ modkey }, "h", function () wibox1.visible=true end),
awful.key({ modkey }, "h", function () wibox1.visible=false end),
tags = {
names = {
'⌥ web',
'⌥ Analistas',
'⌥ Sniffing',
'⌥ Engenharia',
'⌥ Hardware',
'⌥ system',
'⌥ anony me',
'⌥ ataques',
},
layout = {
layouts[10], --WEB
layouts[2], --MULTIMIDIA
layouts[8], --HACKING
layouts[10], --FREE
layouts[4], --FREE
layouts[5], --LINUX
layouts[10], --EDITING
layouts[1], --PROCESS
}
}