delta
f42a3a2cc9
add new icons, switch over to using stylesheets instead of gears.color.recolor_image, add a music widget to the panel, optimize services in common.lua, fix the application lense filtering and increase the update rate of services in common.lua Signed-off-by: delta <darkussdelta@gmail.com>
63 lines
1.6 KiB
Lua
63 lines
1.6 KiB
Lua
local q = require "quarrel"
|
|
local qbind = require "quarrel.bind"
|
|
local qui = require "quarrel.ui"
|
|
local qvars = require "quarrel.vars"
|
|
local wibox = require "wibox"
|
|
|
|
local power_menu = wibox.widget {
|
|
qui.styled {
|
|
widget = wibox.container.background,
|
|
bg = qvars.colors.black,
|
|
{
|
|
widget = wibox.widget.textbox,
|
|
text = "1",
|
|
buttons = {
|
|
qbind:new {
|
|
triggers = qvars.btns.left,
|
|
press = function()
|
|
q.debug("from 1")
|
|
end,
|
|
hidden = true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
qui.styled {
|
|
widget = wibox.container.background,
|
|
bg = qvars.colors.black,
|
|
{
|
|
widget = wibox.widget.textbox,
|
|
text = "2",
|
|
buttons = {
|
|
qbind:new {
|
|
triggers = qvars.btns.left,
|
|
press = function()
|
|
q.debug("from 2")
|
|
end,
|
|
hidden = true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
qui.styled {
|
|
widget = wibox.container.background,
|
|
bg = qvars.colors.black,
|
|
{
|
|
widget = wibox.widget.textbox,
|
|
text = "3",
|
|
buttons = {
|
|
qbind:new {
|
|
triggers = qvars.btns.left,
|
|
press = function()
|
|
q.debug("from 3")
|
|
end,
|
|
hidden = true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
layout = wibox.layout.flex.horizontal
|
|
}
|
|
|
|
return power_menu
|