mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-10 10:14:20 +02:00
widgets: better handling of HiDPI
This commit is contained in:
parent
9704e2c1ec
commit
39e515bab6
2 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ local function client_info(c)
|
||||||
beautiful.fg_widget_value, tostring(c[inf[i]]))
|
beautiful.fg_widget_value, tostring(c[inf[i]]))
|
||||||
end
|
end
|
||||||
|
|
||||||
naughty.notify{ text = string.format('<span font="Terminus 8">%s</span>', v:sub(1,#v-1)),
|
naughty.notify{ text = string.format('<span font="Terminus ' .. 8 * theme.scale .. '">%s</span>', v:sub(1,#v-1)),
|
||||||
timeout = 0, margin = 10, screen = c.screen }
|
timeout = 0, margin = 10, screen = c.screen }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -62,10 +62,10 @@ local cal = (
|
||||||
calendar = naughty.notify(
|
calendar = naughty.notify(
|
||||||
{
|
{
|
||||||
text = string.format('<span font="%s">%s</span>',
|
text = string.format('<span font="%s">%s</span>',
|
||||||
"Terminus 8",
|
"Terminus " .. 8 * theme.scale,
|
||||||
cal:gsub(" +\n","\n")),
|
cal:gsub(" +\n","\n")),
|
||||||
timeout = 0, hover_timeout = 0.5,
|
timeout = 0, hover_timeout = 0.5,
|
||||||
width = 160,
|
width = 160 * theme.scale,
|
||||||
screen = mouse.screen,
|
screen = mouse.screen,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue