aboutsummaryrefslogtreecommitdiff
path: root/config.dot/awesome.link/widgets.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config.dot/awesome.link/widgets.lua')
-rw-r--r--config.dot/awesome.link/widgets.lua46
1 files changed, 27 insertions, 19 deletions
diff --git a/config.dot/awesome.link/widgets.lua b/config.dot/awesome.link/widgets.lua
index 5f7a9c1..6117328 100644
--- a/config.dot/awesome.link/widgets.lua
+++ b/config.dot/awesome.link/widgets.lua
@@ -1,6 +1,14 @@
+--{{---| Text clock widget |------------------------------------------------------------------------------
+
+mytextclock = awful.widget.textclock({ align = "right" })
+
+--{{---| Systray widget |------------------------------------------------------------------------------
+
+mysystray = widget({ type = "systray" })
+
--{{---| Chat widget |------------------------------------------------------------------------------
-chaticon = widget ({type = "imagebox" })
+chaticon = widget ({type = "imagebox" })
chaticon.image = image(beautiful.widget_chat)
chaticon:buttons(awful.util.table.join(awful.button({ }, 1,
function () awful.util.spawn_with_shell(chat) end)))
@@ -14,7 +22,7 @@ function () awful.util.spawn_with_shell(mailmutt) end)))
--{{---| Music widget |-----------------------------------------------------------------------------
-music = widget ({type = "imagebox" })
+music = widget ({type = "imagebox" })
music.image = image(beautiful.widget_music)
music:buttons(awful.util.table.join(
awful.button({ }, 1, function () awful.util.spawn_with_shell(musicplr) end),
@@ -72,7 +80,7 @@ memicon.image = image(beautiful.widget_mem)
--{{---| Battery widget |---------------------------------------------------------------------------
-baticon = widget ({type = "imagebox" })
+baticon = widget ({type = "imagebox" })
baticon.image = image(beautiful.widget_battery)
batwidget = widget({ type = "textbox" })
vicious.register( batwidget, vicious.widgets.bat, '<span background="#92B0A0" font="Terminus 12"> <span font="Terminus 9" color="#FFFFFF" background="#92B0A0">$1$2% </span></span>', 1, "BAT0" )
@@ -90,7 +98,7 @@ function () awful.util.spawn_with_shell(iptraf) end)))
--{{---| Binary Clock |-----------------------------------------------------------------------------
-binaryclock = {}
+binaryclock = {}
binaryclock.widget = widget({type = "imagebox"})
binaryclock.w = 42
binaryclock.h = 16
@@ -184,29 +192,29 @@ binarytimer:start()
--{{---| Separators widgets |-----------------------------------------------------------------------
-spr = widget({ type = "textbox" })
-spr.text = ' '
-sprd = widget({ type = "textbox" })
-sprd.text = '<span background="#313131" font="Terminus 12"> </span>'
-spr3f = widget({ type = "textbox" })
+spr = widget({ type = "textbox" })
+spr.text = ' '
+sprd = widget({ type = "textbox" })
+sprd.text = '<span background="#313131" font="Terminus 12"> </span>'
+spr3f = widget({ type = "textbox" })
spr3f.text = '<span background="#777e76" font="Terminus 12"> </span>'
-arr1 = widget ({type = "imagebox" })
+arr1 = widget ({type = "imagebox" })
arr1.image = image(beautiful.arr1)
-arr2 = widget ({type = "imagebox" })
+arr2 = widget ({type = "imagebox" })
arr2.image = image(beautiful.arr2)
-arr3 = widget ({type = "imagebox" })
+arr3 = widget ({type = "imagebox" })
arr3.image = image(beautiful.arr3)
-arr4 = widget ({type = "imagebox" })
+arr4 = widget ({type = "imagebox" })
arr4.image = image(beautiful.arr4)
-arr5 = widget ({type = "imagebox" })
+arr5 = widget ({type = "imagebox" })
arr5.image = image(beautiful.arr5)
-arr6 = widget ({type = "imagebox" })
+arr6 = widget ({type = "imagebox" })
arr6.image = image(beautiful.arr6)
-arr7 = widget ({type = "imagebox" })
+arr7 = widget ({type = "imagebox" })
arr7.image = image(beautiful.arr7)
-arr8 = widget ({type = "imagebox" })
+arr8 = widget ({type = "imagebox" })
arr8.image = image(beautiful.arr8)
-arr9 = widget ({type = "imagebox" })
+arr9 = widget ({type = "imagebox" })
arr9.image = image(beautiful.arr9)
-arr0 = widget ({type = "imagebox" })
+arr0 = widget ({type = "imagebox" })
arr0.image = image(beautiful.arr0)