-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weather widget breaks on multiple monitors. #424
Comments
I do not know how that Please |
Unfortunately this doesn't seem to fix the issue. Perhaps |
I didn't spot your errors: replace local myweather = lain.widget.weather {
city_id = 5128581, -- placeholder (London)
notification_preset = { font = beautiful.font, fg = beautiful.fg_normal },
weather_na_markup = lain.util.markup.fontfg(beautiful.font, beautiful.fg_normal, "N/A "),
settings = function()
local descr = weather_now["weather"][1]["description"]:lower()
local units = math.floor(weather_now["main"]["temp"])
widget:set_markup(lain.util.markup.fontfg(beautiful.font, beautiful.fg_normal, descr .. " " .. units .. "°C"))
end
} awful.screen.connect_for_each_screen(function(s)
-- Wallpaper
set_wallpaper(s)
-- Each screen has its own tag table.
awful.tag({ "1", "2", "3", "4", "5" }, s, awful.layout.layouts[1])
-- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt()
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
-- We need one layoutbox per screen.
s.mylayoutbox = awful.widget.layoutbox(s)
s.mylayoutbox:buttons(gears.table.join(
awful.button({ }, 1, function () awful.layout.inc( 1) end),
awful.button({ }, 3, function () awful.layout.inc(-1) end),
awful.button({ }, 4, function () awful.layout.inc( 1) end),
awful.button({ }, 5, function () awful.layout.inc(-1) end)))
-- Create a taglist widget
s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, taglist_buttons)
-- Create a tasklist widget
s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons)
-- Create the wibox
s.mywibox = awful.wibar({ position = "top", screen = s })
-- Add widgets to the wibox
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
mylauncher,
s.mytaglist,
s.mypromptbox,
separator,
},
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
wibox.widget.systray(),
mykeyboardlayout,
separator,
myweather.widget,
separator,
mytextclock,
s.mylayoutbox,
},
}
end) |
Oh wow, this is embarassing. Thanks so much for catching these errors; sorry for the false alarm! |
Unfortunately I don't know my way around Awesome / Unix well enough to follow the steps outlined for
awesome -v
andlua -a
whilst having Awesome broken, so I apologize in advance. But I'll do my best to outline the problem I ran into and how I got around it.When I try to use the weather widget for my wibar on both my laptop and external display, this happens. Specifically I am told that when
weather.show(t_out)
tries to setI am told by
naughty/core.lua
that there is an "attempt to compare number with table". This issue goes away if I simply comment outtimeout = t_out
.The way I create my weather widget in my taskbar is to put the following in
rc.lua
:I'm not sure if this is a real issue or if I'm just doing something incorrectly. Again, sorry if I'm not reporting this issue in the most efficient way possible due to lack of expertise...
The text was updated successfully, but these errors were encountered: