Scale wibar and font based on dpi
This commit is contained in:
parent
d50fcd0a13
commit
d3ae7475fa
|
@ -1,11 +1,13 @@
|
||||||
-- {{{ Main
|
-- {{{ Main
|
||||||
|
|
||||||
|
local awful = require("awful")
|
||||||
theme = {}
|
theme = {}
|
||||||
theme.wallpaper = "~/.wallpaper"
|
theme.wallpaper = "~/.wallpaper"
|
||||||
|
|
||||||
-- }}}
|
-- }}}
|
||||||
-- {{{ Styles
|
-- {{{ Styles
|
||||||
theme.fontface = "Dina"
|
theme.fontface = "Menlo for Powerline"
|
||||||
theme.fontsize = 8
|
theme.fontsize = math.floor(awful.screen.focused().dpi / 8)
|
||||||
theme.font = theme.fontface .. " " .. theme.fontsize
|
theme.font = theme.fontface .. " " .. theme.fontsize
|
||||||
|
|
||||||
-- {{{ Colors
|
-- {{{ Colors
|
||||||
|
|
|
@ -41,12 +41,12 @@ local function setup()
|
||||||
leftwibar[s] = awful.wibar({
|
leftwibar[s] = awful.wibar({
|
||||||
position = "left",
|
position = "left",
|
||||||
screen = s,
|
screen = s,
|
||||||
width = 18
|
width = math.floor(s.dpi / 5)
|
||||||
})
|
})
|
||||||
rightwibar[s] = awful.wibar({
|
rightwibar[s] = awful.wibar({
|
||||||
position = "right",
|
position = "right",
|
||||||
screen = s,
|
screen = s,
|
||||||
width = 18
|
width = math.floor(s.dpi / 5)
|
||||||
})
|
})
|
||||||
|
|
||||||
-- {{{ create containers
|
-- {{{ create containers
|
||||||
|
|
Loading…
Reference in a new issue