aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-11-15 16:11:30 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-11-15 16:11:30 -0200
commit8cf6a7af175379f170762ff743edead6ecf549d1 (patch)
treefa52cf13e23977f584ca71efbc0adb906d9422c1
parentd29393280d814f3f6fd065b4fa969f9ab939ebd4 (diff)
downloadawesome-8cf6a7af175379f170762ff743edead6ecf549d1.tar.gz
awesome-8cf6a7af175379f170762ff743edead6ecf549d1.tar.bz2
Normal clock
-rw-r--r--TODO.md3
-rw-r--r--config.dot/awesome.link/wibox.lua1
-rw-r--r--config.dot/awesome.link/widgets.lua6
3 files changed, 8 insertions, 2 deletions
diff --git a/TODO.md b/TODO.md
index 8d9048a..1ec9ca3 100644
--- a/TODO.md
+++ b/TODO.md
@@ -4,6 +4,5 @@ TODO
Widgets
-------
-* Date.
-* Clock.
* USB status.
+* Audio volume.
diff --git a/config.dot/awesome.link/wibox.lua b/config.dot/awesome.link/wibox.lua
index d1cc5c5..fadb04b 100644
--- a/config.dot/awesome.link/wibox.lua
+++ b/config.dot/awesome.link/wibox.lua
@@ -85,6 +85,7 @@ for s = 1, screen.count() do
arr2,
--netwidget,
--neticon,
+ clockwidget,
arr3,
batwidget,
baticon,
diff --git a/config.dot/awesome.link/widgets.lua b/config.dot/awesome.link/widgets.lua
index 7317cf2..1387de0 100644
--- a/config.dot/awesome.link/widgets.lua
+++ b/config.dot/awesome.link/widgets.lua
@@ -107,6 +107,12 @@ neticon.image = image(beautiful.widget_net)
netwidget:buttons(awful.util.table.join(awful.button({ }, 1,
function () awful.util.spawn_with_shell(iptraf) end)))
+--{{---| Normal clock |-------------------------------------------------------------------------------
+
+clockwidget = widget({ type = "textbox" })
+vicious.register(clockwidget, vicious.widgets.date,
+'<span background="#C2C2A4" font="Terminus 12"> <span font="Terminus 9" color="#FFFFFF">%d/%m/%Y %H:%M</span> </span>', 3)
+
--{{---| Binary Clock |-----------------------------------------------------------------------------
binaryclock = {}