mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
volume: scale volume text with DPI
This commit is contained in:
parent
39e515bab6
commit
1907e37928
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ local function change(what)
|
|||
|
||||
volid = naughty.notify({ text = string.format("%3d %%", vol),
|
||||
icon = icon,
|
||||
font = "Free Sans Bold 24",
|
||||
font = "Free Sans Bold " .. 24*theme.scale,
|
||||
replaces_id = volid }).id
|
||||
end
|
||||
|
||||
|
|
|
@ -185,7 +185,7 @@ volicon.image = image(beautiful.icons .. "/widgets/vol.png")
|
|||
local volwidget = widget({ type = "textbox" })
|
||||
vicious.register(volwidget, vicious.widgets.volume,
|
||||
'<span color="' .. beautiful.fg_widget_value .. '">$2 $1%</span>',
|
||||
17, "Master")
|
||||
17, "Master")
|
||||
volume = loadrc("volume", "vbe/volume")
|
||||
volwidget:buttons(awful.util.table.join(
|
||||
awful.button({ }, 1, volume.mixer),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue