29 lines
740 B
Lua
29 lines
740 B
Lua
-- ## Keyboard layout ##
|
|
-- ~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
-- requirements
|
|
-- ~~~~~~~~~~~~
|
|
local wibox = require('wibox')
|
|
local awful = require("awful")
|
|
local beautiful = require('beautiful')
|
|
local dpi = require('beautiful').xresources.apply_dpi
|
|
|
|
-- Keyboard :
|
|
keyboardlayout = awful.widget.keyboardlayout()
|
|
keyboardlayout.widget.font = theme.font
|
|
|
|
keyboard_icon = wibox.widget {
|
|
markup = '<span font="' .. theme.icon_font .. '"foreground="'.. colors.brightblue ..'"></span>',
|
|
widget = wibox.widget.textbox,
|
|
}
|
|
|
|
return wibox.widget {
|
|
keyboard_icon,
|
|
wibox.widget{
|
|
keyboardlayout,
|
|
fg = colors.brightwhite,
|
|
widget = wibox.container.background
|
|
},
|
|
spacing = dpi(2),
|
|
layout = wibox.layout.fixed.horizontal
|
|
}
|