Show system info only on primary monitor

This commit is contained in:
Alexander Gehrke 2019-12-10 14:59:33 +01:00
parent 364ec85884
commit 9574a2c171

20
rc.lua
View file

@ -42,15 +42,17 @@ for s in screen do
local mail = widgets.add.mail("mail", rbottom, { os.getenv("HOME") .. "/.maildir/uber" }, "bottom_right", "uber") local mail = widgets.add.mail("mail", rbottom, { os.getenv("HOME") .. "/.maildir/uber" }, "bottom_right", "uber")
mail:set_left(15) mail:set_left(15)
widgets.add.cpu("cpu", rtop) if s == screen.primary then
widgets.add.spacer(rtop) widgets.add.cpu("cpu", rtop)
widgets.add.battery("int", rtop, "BAT0") widgets.add.spacer(rtop)
widgets.add.spacer(rtop) widgets.add.battery("int", rtop, "BAT0")
widgets.add.battery("ext", rtop, "BAT1") widgets.add.spacer(rtop)
widgets.add.spacer(rtop) widgets.add.battery("ext", rtop, "BAT1")
widgets.add.wifi("wlan", rtop, "wlan0") widgets.add.spacer(rtop)
widgets.add.spacer(rtop) widgets.add.wifi("wlan", rtop, "wlan0")
widgets.add.systray(rtop) widgets.add.spacer(rtop)
widgets.add.systray(rtop)
end
widgets.set_spacer_text("") widgets.set_spacer_text("")
end end