-
Notifications
You must be signed in to change notification settings - Fork 211
Closed
Description
- output of
awesome -v
andlua -v
awesome v4.2 (Human after all)
lua not on path
- expected behavior and actual behavior
Expectingbat_now.status
to have a value as defined in the wiki
Actual: bat_now.status is nil
without bat_now.status, the below config works.
- steps to reproduce the problem
local theme = {}
theme.font = "Terminus 10.5"
local lain = require("lain")
local markup = lain.util.markup
local separators = lain.util.separators
local gray = "#9E9C9A"
local bat = lain.widget.bat({
settings = function()
bat_header = " Bat "
bat_p = bat_now.perc .. "% "
bat_t = bat_now.time .. " "
bat_s = bat_now.status .. " "
widget:set_markup(markup.font(theme.font, markup(gray, bat_header) .. bat_p .. bat_t .. bat_s))
end
})
- X error log
Apr 11 22:25:43 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: stack traceback:
Apr 11 22:25:43 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: #011/home/gbell2/.config/awesome/rc.lua:154: in upvalue 'settings'
Apr 11 22:25:43 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: #011/home/gbell2/.config/awesome/lain/widget/bat.lua:185: in local 'func'
Apr 11 22:25:43 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: #011/usr/share/awesome/lib/gears/object.lua:143: in function 'gears.object.emit_signal'
Apr 11 22:25:43 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: #011/home/gbell2/.config/awesome/lain/helpers.lua:97: in function 'lain.helpers.newtimer'
Apr 11 22:25:43 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: #011/home/gbell2/.config/awesome/lain/widget/bat.lua:212: in function 'lain.widget.bat'
Apr 11 22:25:43 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: #011/home/gbell2/.config/awesome/rc.lua:149: in main chunk
Apr 11 22:25:43 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: error: /home/gbell2/.config/awesome/rc.lua:154: attempt to concatenate a nil value (field 'status')
Apr 11 22:25:49 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: 2020-04-11 22:25:49 E: Error opening directory '/usr/share/awesome/applications': No such file or directory
Apr 11 22:25:49 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: 2020-04-11 22:25:49 E: Error opening directory '/usr/local/share/applications': No such file or directory
Apr 11 22:25:49 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: 2020-04-11 22:25:49 E: Error opening directory '/home/gbell2/.nix-profile/share/applications': No such file or directory
Apr 11 22:25:49 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: 2020-04-11 22:25:49 E: Error opening directory '/usr/share/awesome/applications': No such file or directory
Apr 11 22:25:49 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: 2020-04-11 22:25:49 E: Error opening directory '/usr/local/share/applications': No such file or directory
Apr 11 22:25:49 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: 2020-04-11 22:25:49 E: Error opening directory '/home/gbell2/.nix-profile/share/applications': No such file or directory
Apr 11 22:25:50 thinkpad /usr/lib/gdm3/gdm-x-session[1402]: 2020-04-11 22:25:50 W: awesome: a_glib_poll:432: Last main loop iteration took 0.619277 seconds! Increasing limit for this warning to that value.
Metadata
Metadata
Assignees
Labels
No labels