mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2026-03-22 21:45:11 +00:00
var rename
This commit is contained in:
parent
1e6be2b88e
commit
0a3e472d00
|
|
@ -139,9 +139,9 @@ battooltip.wibox.widget.bg = "#404040"
|
||||||
battooltip.textbox.font = theme.font
|
battooltip.textbox.font = theme.font
|
||||||
battooltip.timeout = 0
|
battooltip.timeout = 0
|
||||||
|
|
||||||
battooltip:set_shape(function(cr, width, height)
|
-- battooltip:set_shape(function(cr, width, height)
|
||||||
gears.shape.rounded_bar(cr, width, height)
|
-- gears.shape.rounded_bar(cr, width, height)
|
||||||
end)
|
-- end)
|
||||||
local bat = lain.widget.bat({
|
local bat = lain.widget.bat({
|
||||||
settings = function()
|
settings = function()
|
||||||
local index, perc = "bat", tonumber(bat_now.perc) or 0
|
local index, perc = "bat", tonumber(bat_now.perc) or 0
|
||||||
|
|
@ -190,19 +190,22 @@ local bat = lain.widget.bat({
|
||||||
|
|
||||||
-- ALSA volume
|
-- ALSA volume
|
||||||
local volicon = wibox.widget.imagebox()
|
local volicon = wibox.widget.imagebox()
|
||||||
local battooltip = awful.tooltip({
|
local voltooltip = awful.tooltip({
|
||||||
objects = {volicon},
|
objects = {volicon},
|
||||||
margin_leftright = dpi(15),
|
margin_leftright = dpi(15),
|
||||||
margin_topbottom = dpi(4)
|
margin_topbottom = dpi(4),
|
||||||
})
|
preferred_alignments = {"middle", "front", "back"},
|
||||||
battooltip.wibox.fg = "#fcfbf7"
|
preferred_positions = {"bottom", "left", "right", "top"}
|
||||||
battooltip.wibox.widget.bg = "#404040"
|
|
||||||
battooltip.textbox.font = theme.font
|
|
||||||
battooltip.timeout = 0
|
|
||||||
|
|
||||||
battooltip:set_shape(function(cr, width, height)
|
})
|
||||||
gears.shape.rounded_bar(cr, width, height)
|
voltooltip.wibox.fg = "#fcfbf7"
|
||||||
end)
|
voltooltip.wibox.widget.bg = "#404040"
|
||||||
|
voltooltip.textbox.font = theme.font
|
||||||
|
voltooltip.timeout = 0
|
||||||
|
|
||||||
|
-- battooltip:set_shape(function(cr, width, height)
|
||||||
|
-- gears.shape.rounded_bar(cr, width, height)
|
||||||
|
-- end)
|
||||||
theme.volume = lain.widget.alsabar({
|
theme.volume = lain.widget.alsabar({
|
||||||
-- togglechannel = "IEC958,3",
|
-- togglechannel = "IEC958,3",
|
||||||
notification_preset = {
|
notification_preset = {
|
||||||
|
|
@ -227,7 +230,7 @@ theme.volume = lain.widget.alsabar({
|
||||||
end
|
end
|
||||||
|
|
||||||
volicon:set_image(theme[index])
|
volicon:set_image(theme[index])
|
||||||
battooltip:set_markup(string.format("%s%%", perc))
|
voltooltip:set_markup(string.format("%s%%|100%%", perc))
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
volicon:buttons(my_table.join(awful.button({}, 1, function()
|
volicon:buttons(my_table.join(awful.button({}, 1, function()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue