awesome
awesome copied to clipboard
Can't change the font of the keyboard layout widget
Output of awesome --version
:
awesome 4.3-1
How to reproduce the issue:
Create awful.widget.keyboardlayout instance. There is no way to change its fonts using its own methods.
Expected result:
We can change font without applying such workarounds:
function keyboardlayout_with_font(font)
local theme = require("beautiful").get()
local old_font, theme.font = theme.font, font
local result = awful.widget.keyboardlayout()
theme.font = old_font
return result
end