Fuxx
This commit is contained in:
parent
8268fba83d
commit
7ed2a6e110
9565 changed files with 1315332 additions and 90 deletions
36
home/.config/awesome/ui/sidebar/clock.lua
Normal file
36
home/.config/awesome/ui/sidebar/clock.lua
Normal file
|
@ -0,0 +1,36 @@
|
|||
-- ## Clock ##
|
||||
-- ~~~~~~~~~~~
|
||||
|
||||
-- requirements
|
||||
-- ~~~~~~~~~~~~
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require ("beautiful")
|
||||
local dpi = beautiful.xresources.apply_dpi
|
||||
|
||||
-- Day
|
||||
local day = wibox.widget.textbox()
|
||||
day.font = "Roboto bold 8"
|
||||
day.align = 'center'
|
||||
|
||||
local date = wibox.widget.textbox()
|
||||
date.font = "Roboto bold 10"
|
||||
date.align = 'center'
|
||||
|
||||
gears.timer {
|
||||
timeout = 60,
|
||||
call_now = true,
|
||||
autostart = true,
|
||||
callback = function()
|
||||
day.markup = "<span foreground='"..colors.red.."'>"..os.date("%A").."</span>"
|
||||
date.markup = os.date("%d %B %Y")
|
||||
end
|
||||
}
|
||||
|
||||
return wibox.widget {
|
||||
day,
|
||||
date,
|
||||
spacing = dpi(4),
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue