New Setup 📦
This commit is contained in:
parent
d16174b447
commit
415dbd08a1
10194 changed files with 1368647 additions and 4 deletions
37
home/.config/awesome/ui/widgets/clock.lua
Normal file
37
home/.config/awesome/ui/widgets/clock.lua
Normal file
|
@ -0,0 +1,37 @@
|
|||
-- ## Clock ##
|
||||
-- ~~~~~~~~~~~~~
|
||||
|
||||
-- Requirements :
|
||||
-- ~~~~~~~~~~~~~~
|
||||
local wibox = require('wibox')
|
||||
local beautiful = require('beautiful')
|
||||
local dpi = require('beautiful').xresources.apply_dpi
|
||||
|
||||
-- # Libs :
|
||||
-- ~~~~~~~~
|
||||
local helpers = require("libs.helpers")
|
||||
|
||||
-- Clock :
|
||||
--local clock = wibox.widget.textclock('<span font="' .. theme.font .. '">%a %d %b | %H:%M</span>')
|
||||
local clock = wibox.widget.textclock('%H : %M')
|
||||
|
||||
-- Icon :
|
||||
local widget_icon = " "
|
||||
local icon = wibox.widget{
|
||||
font = theme.icon_font,
|
||||
markup = helpers.colorize_text(widget_icon, colors.main_scheme),
|
||||
widget = wibox.widget.textbox,
|
||||
valign = "center",
|
||||
align = "center"
|
||||
}
|
||||
|
||||
return wibox.widget {
|
||||
icon,
|
||||
wibox.widget{
|
||||
clock,
|
||||
fg = colors.brightwhite,
|
||||
widget = wibox.container.background
|
||||
},
|
||||
spacing = dpi(2),
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue