Closed iharh closed 2 years ago
only by moving systray inside config/toolbar_horizontal.lua
I'm trying to put the following into config/keys.lua:
local panel_widget_separator = wibox.container.background( common.constraint({ width=beautiful.panel_widget_spacing, }), beautiful.panel_widget_bg ) awesome_context.widgets.systray_toggle = common.panel_widget_shape(widgets.sneaky_toggle({ widgets={ panel_widget_separator, -- w.netctl, -- panel_widget_separator, }, enable_sneaky_tray = true, --margin = {right = beautiful.panel_padding_bottom}, panel_widget_shape = false, }))
but get exception:
2021-09-14 16:55:36 E: awesome: Error during a protected call: ...e/iharh/.config/awesome/actionless/widgets/lcarslist.lua:176: attempt to call a table value (field 'icon_sizes') stack traceback: ...e/iharh/.config/awesome/actionless/widgets/lcarslist.lua:176: in function <...e/iharh/.config/awesome/actionless/widgets/lcarslist.lua:73> (...tail calls...) /usr/local/share/awesome/lib/awful/widget/common.lua:147: in function 'awful.widget.common.list_update' ...e/iharh/.config/awesome/actionless/widgets/lcarslist.lua:189: in upvalue 'tag_group' ...e/iharh/.config/awesome/actionless/widgets/lcarslist.lua:215: in upvalue 'tasklist_update' ...e/iharh/.config/awesome/actionless/widgets/lcarslist.lua:261: in function <...e/iharh/.config/awesome/actionless/widgets/lcarslist.lua:260> [C]: in function 'xpcall' /usr/local/share/awesome/lib/gears/protected_call.lua:36: in function </usr/local/share/awesome/lib/gears/protected_call.lua:35> (...tail calls...) /usr/local/share/awesome/lib/gears/timer.lua:255: in function 'gears.timer.run_delayed_calls_now'
are you using LCARS mode? otherwise such stacktrace shouldn't appear at all (see hotkeys list popup to how disable lcars mode if you don't need it)
No, I'm just copy&paste from lcars code.
should be fixed by 253c3ab4f21b7683f9ad00db33e05ffc2c24c62c and 982874c23663c2142749413212321a30edcef153
Thank you, but I still have troubles. At config/keys.lua at keys.init I'm using:
local panel_widget_separator = wibox.container.background( common.constraint({ width=beautiful.panel_widget_spacing, }), beautiful.panel_widget_bg ) awesome_context.widgets.systray_toggle = widgets.sneaky_toggle({ widgets={ panel_widget_separator, -- w.netctl, -- panel_widget_separator, }, enable_sneaky_tray = true, --margin = {right = beautiful.panel_padding_bottom}, panel_widget_shape = false, })
But still can't see my systrace widget. I've added nlog(...) traces through the sneaky_togle and sneaky_tray show methods. All stuff is called, but I don't see anything on screen
mb you trying to add more than one tray
Let me share my changes:
i dont have time to go through it all but quick search by word systray
shown me what you added one more systray but didn't removed the existing one (inside notifications sidebar) - you can't have two x11 trays at the same time
I've just removed systray_toggle from config/lcars_toolbar_horizontal.lua, but still can't see my own systray.
I've just managed to put systray there, but without toggle functionality. Polishing ...
Is it possible to get systray icons be displayed at the top-bar vs side-bar, just like in a screenshot: