From 36cea762bd2f5251aacbdbe8afea1b416bcbe6cf Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 29 Jul 2012 16:59:33 +0200 Subject: [PATCH] widgets: add battery icon --- icons/widgets/bat.png | Bin 0 -> 163 bytes rc/widgets.lua | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 icons/widgets/bat.png diff --git a/icons/widgets/bat.png b/icons/widgets/bat.png new file mode 100644 index 0000000000000000000000000000000000000000..16d6b66effdd065f8d26ad0333ca2c11ff7092ed GIT binary patch literal 163 zcmeAS@N?(olHy`uVBq!ia0vp^LO?9Q!3HFy+4N(86kC$Fy9>jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS#w!!9Yx&#`p7`*fg?fv1aOh{fsT1c{poS67ApXTLWg zbamKYc>!k$&Pr7sot}w0%^HR|1+5nqe2otSO}ks9ec%7@%}k(P22WQ%mvv4FO#s5$ BES3NO literal 0 HcmV?d00001 diff --git a/rc/widgets.lua b/rc/widgets.lua index 9694c05..5e3fd8f 100644 --- a/rc/widgets.lua +++ b/rc/widgets.lua @@ -61,6 +61,8 @@ if config.hostname == "guybrush" then end, 61, "BAT1") end +local baticon = widget({ type = "imagebox" }) +baticon.image = image(awful.util.getdir("config") .. "/icons/widgets/bat.png") -- Network local netup = widget({ type = "textbox" }) @@ -229,7 +231,7 @@ for s = 1, screen.count() do on(1, systray), sepclose, datewidget, dateicon, spacer, on(2, volwidget), on(2, volicon), on(2, spacer), - on(2, batwidget.widget), on(2, batwidget.widget ~= "" and spacer or ""), + on(2, batwidget.widget), on(2, batwidget.widget ~= "" and baticon or ""), on(2, batwidget.widget ~= "" and spacer or ""), on(2, fswidget), on(2, fsicon), on(2, sepopen), on(1, netgraph.widget), on(1, netdownicon), on(1, netdown), on(1, netupicon), on(1, netup), on(1, spacer), on(1, memwidget), on(1, memicon), on(1, spacer),