added battery widget
This commit is contained in:
parent
432b6e8ede
commit
1015f39b78
13
rc.lua
13
rc.lua
|
@ -7,6 +7,8 @@ require("beautiful")
|
||||||
-- Notification library
|
-- Notification library
|
||||||
require("naughty")
|
require("naughty")
|
||||||
require("teardrop")
|
require("teardrop")
|
||||||
|
require("obvious.battery")
|
||||||
|
require("obvious.wlan")
|
||||||
|
|
||||||
-- {{{ Variable definitions
|
-- {{{ Variable definitions
|
||||||
-- Themes define colours, icons, and wallpapers
|
-- Themes define colours, icons, and wallpapers
|
||||||
|
@ -78,6 +80,14 @@ mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
|
||||||
menu = mymainmenu })
|
menu = mymainmenu })
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Reusable separators
|
||||||
|
spacer = widget({ type = "textbox", name = "spacer" })
|
||||||
|
spacer.text = " "
|
||||||
|
|
||||||
|
separator = widget({ type = "textbox", name = "separator", align = "center" })
|
||||||
|
separator.text = "·"
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Wibox
|
-- {{{ Wibox
|
||||||
-- Create a textclock widget
|
-- Create a textclock widget
|
||||||
mytextclock = awful.widget.textclock({ align = "right" })
|
mytextclock = awful.widget.textclock({ align = "right" })
|
||||||
|
@ -142,6 +152,7 @@ for s = 1, screen.count() do
|
||||||
mytasklist[s] = awful.widget.tasklist(function(c)
|
mytasklist[s] = awful.widget.tasklist(function(c)
|
||||||
return awful.widget.tasklist.label.currenttags(c, s)
|
return awful.widget.tasklist.label.currenttags(c, s)
|
||||||
end, mytasklist.buttons)
|
end, mytasklist.buttons)
|
||||||
|
batmon = obvious.battery();
|
||||||
|
|
||||||
-- Create the wibox
|
-- Create the wibox
|
||||||
mywibox[s] = awful.wibox({ position = "top", screen = s })
|
mywibox[s] = awful.wibox({ position = "top", screen = s })
|
||||||
|
@ -155,6 +166,8 @@ for s = 1, screen.count() do
|
||||||
},
|
},
|
||||||
mylayoutbox[s],
|
mylayoutbox[s],
|
||||||
mytextclock,
|
mytextclock,
|
||||||
|
separator, spacer, batmon,
|
||||||
|
spacer,
|
||||||
s == 1 and mysystray or nil,
|
s == 1 and mysystray or nil,
|
||||||
mytasklist[s],
|
mytasklist[s],
|
||||||
layout = awful.widget.layout.horizontal.rightleft
|
layout = awful.widget.layout.horizontal.rightleft
|
||||||
|
|
Loading…
Reference in a new issue