I have discovered that conky running on wayland (sway) does not function. Based on my readings this appears to be because conky on Sid is not compiled with the out_to-wayland flag set.
Here's the error I am experiencing. Hopefully someone can help fix the issue.
https://github.com/brndnmtthws/conky/issues/1707
Conky (under Wayland) segmentation fault
Conky (under Wayland) segmentation fault
Pax vobiscum,
Mark Rabideau- Prof Genealogist - http://many-roads.com
Linux BLOG https://eirenicon.org
swaywm,i3wm,hlwm,bspwm,dwm
Linux User #449130
Mark Rabideau- Prof Genealogist - http://many-roads.com
Linux BLOG https://eirenicon.org
swaywm,i3wm,hlwm,bspwm,dwm
Linux User #449130
- wizard10000
- Global Moderator
- Posts: 1152
- Joined: 2019-04-16 23:15
- Location: southeastern us
- Has thanked: 121 times
- Been thanked: 201 times
Re: Conky (under Wayland) segmentation fault
Works on Sid here -My guess is it's something else. lua scripts don't work in Wayland but I've got a couple of non-lua conkys running under labwc as we speak
Code: Select all
wizard@laptop 09:47:23 $ conky &
[1] 18462
wizard@laptop 09:47:28 $ conky: desktop window (0x4f0) is root window
conky: window type - desktop
conky: drawing to created window (0x400002)
conky: drawing to double buffer
conky: forked to background, pid is 18463
conky: FOUND: console
conky: FOUND: ncurses
conky: FOUND: file
conky: FOUND: x11
conky: FOUND: wayland
conky: '(null)' wayland session running 'wlroots' desktop
we see things not as they are, but as we are.
-- anais nin
-- anais nin
Re: Conky (under Wayland) segmentation fault
@wizard10000 None of my scripts use lua. My scripts do run on TileOS (a debian derivative) but not on debian (sid) proper. Would you be willing to share one of your working scripts (plain Jane type) for me to test???
EDIT: here's the message I get when running my conky:
Here's the offending conky:
EDIT: here's the message I get when running my conky:
Code: Select all
╭─mark@debian ~
╰─➤ conky -c /home/mark/.conky/sway/.sway-2rc
conky: drawing to single buffer
conky: forked to background, pid is 22381
╭─mark@debian ~
╰─➤
conky: FOUND: console
conky: FOUND: ncurses
conky: FOUND: file
conky: FOUND: x11
conky: FOUND: wayland
conky: 'sway' wayland session running 'sway' desktop
/sbin/init: unrecognized option '--version'
Code: Select all
--[[
# Based on Oberon's fine work on i3wm-Manjaro
# https://github.com/oberon-manjaro/conkies
# Add'l Color, functional and branding changes were made by
# Mark Rabideau (ManyRoads) http://eirenicon.org
# in order to work, this conky requires the installation
# of pamixer in order to report sound volume correctly.
#
# REMEMBER to change the location of scripts, devices, wifi, etc.
# to match those used on your environment(s)
# you also need appropriate glyph fonts like Nerd Fonts
# fontawesome, etc. in order for the glyphs to present correctly
#
]]
conky.config = {
alignment = 'top_right',
background = true,
color2 = '#ECEFF4',
color3 = '#d8dee9',
cpu_avg_samples = 2,
default_color = '#88C0D0',
double_buffer = true,
font = 'DejaVu Sans Book:size=10',
draw_shades = false,
gap_x = 40,
gap_y = 50,
minimum_width = 260,
no_buffers = true,
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
update_interval = 1.0,
use_xft = true,
out_to_wayland = true,
out_to_x = false,
}
conky.text = [[
${voffset 8}${color2}${font Iosevka Nerd Font:size=20}${time %A}$font\
${voffset -8}${alignr}${color}${font Iosevka Nerd Font:size=42}${time %e}$font
${color}${voffset -30}${color}${font Iosevka Nerd Font:size=20}${time %b}$font\
${voffset -3} ${color}${font Iosevka Nerd Font:size=20}${time %Y}$font${color2} ${hr}
#### Performance
${voffset 5}${color}${font Iosevka Nerd Font:size=11}Performance ${hr} ${font}
${voffset 5}${color}${font Iosevka Nerd Font:size=11}CPU${alignr}$cpu%
$font${color2}${top name 1}${alignr}${color}${top cpu 1}%
${color2}${top name 2}${alignr}${color}${top cpu 2}%
${color2}${top name 3}${alignr}${color}${top cpu 3}%
${color2}${top name 4}${alignr}${color}${top cpu 4}%
${color2}${top name 5}${alignr}${color}${top cpu 5}%
#
${voffset 10}${color}${font Iosevka Nerd Font:size=11}RAM${alignr}$mem$font
${voffset 5}${color2}${top_mem name 1}${alignr}${color}${top_mem mem_res 1}
${color2}${top_mem name 2}${alignr}${color}${top_mem mem_res 2}
${color2}${top_mem name 3}${alignr}${color}${top_mem mem_res 3}
${color2}${top_mem name 4}${alignr}${color}${top_mem mem_res 4}
${color2}${top_mem name 5}${alignr}${color}${top_mem mem_res 5}
#### Application Keybindings
#${voffset 10}${color}${font Iosevka Nerd Font:size=11}Application Keybindings ${hr} ${font}
#${voffset 5}${color2}abiword ${alignr}${color}[alt]+[a]
#${color2}text editor ${alignr}${color}[alt]+[e]
#${color2}file manager ${alignr}${color}[alt]+[f]
#${color2}geany ${alignr}${color}[alt]+[g]
#${color2}gnumeric ${alignr}${color}[alt]+[g]
#${color2}eMail ${alignr}${color}[alt]+[m]
#${color2}OnlyOffice ${alignr}${color}[alt]+[o]
#${color2}skype ${alignr}${color}[alt]+[s]
#${color2}telegram ${alignr}${color}[alt]+[t]
#${color2}virtual machine ${alignr}${color}[alt]+[v]
#${color2}web browser ${alignr}${color}[alt]+[w]
#${color2}zim ${alignr}${color}[alt]+[z]
#${color2}zoom ${alignr}${color}[]+[z]
${voffset 5}${color}${font Iosevka Nerd Font:size=11}System Status ${hr} ${font}
${voffset 10}${color2}${font Iosevka Nerd Font:size=11}Vol. ${font Iosevka Nerd Font:size=11}${color}${alignr}${execi 2 pamixer --get-volume-human}
${color2}${font Iosevka Nerd Font:size=11}Disk ${font FontAwesome:size=11}${font Iosevka Nerd Font:size=11}${color}${alignr}${fs_used /home/mark} of ${fs_size /home/mark} / ${fs_used_perc /home/mark}%
#${color2}${font Iosevka Nerd Font:size=11}Dropbox ${font FontAwesome:size=11}${alignr}${font Iosevka Nerd Font:size=11}${color}${exec dropbox status | sed -n 1p | tr -d "\"\`'"}
${color2}${font Iosevka Nerd Font:size=11}Wifi ${color2}${font FontAwesome:size=11} ${alignr}${color}${font Iosevka Nerd Font:size=11}${wireless_essid wlp0s20f3}/${wireless_link_qual_perc wlp0s20f3}%
${color2}${font Iosevka Nerd Font:size=11}Download ${color2}${font Iosevka Nerd Font:size=11} ${alignr}${color}${color}${font Iosevka Nerd Font:size=11}${downspeedf wlp0s20f3}KB/s
${color2}${font Iosevka Nerd Font:size=11}Temp. ${font FontAwesome:size=11} ${color}${font Iosevka Nerd Font:size=11}${alignr}${exec sensors | grep 'Package id' | awk '{print $4}'}
${hr}
${font Iosevka Nerd Font:size=11}${alignr}${color2}${execi 999999 echo '. /etc/os-release ; echo $PRETTY_NAME' | sh}
#${alignr}${color2}${font Iosevka Nerd Font:size=11}Desktop: ${color}${alignr}${execi 86400 echo $XDG_CURRENT_DESKTOP} / ${alignr}${font}$nodename${font}
${alignr}${color2}${font Iosevka Nerd Font:size=11}Init: ${color}${execi 86400 .$Home/.local/share/scripts/init-id.sh}
#${alignr}${color2}${font Iosevka Nerd Font:size=11}Session: ${color}${execi 86400 echo $XDG_SESSION_TYPE}
${alignr}${color2}${font Iosevka Nerd Font:size=11}uptime: ${color}${execi 1 uptime | awk -F, '{sub(".*up ",x,$1);print $1}'}
${color2}${font Iosevka Nerd Font:size=11}${alignr}kernel: ${color}${kernel}
${hr}
${font Iosevka Nerd Font:size=20}${alignr} ${color2} Sway ${execi 86400 env | grep '^DESKTOP_SESSION' | cut -d'=' -f2-} / ${alignr}$nodename${font}
]]
Pax vobiscum,
Mark Rabideau- Prof Genealogist - http://many-roads.com
Linux BLOG https://eirenicon.org
swaywm,i3wm,hlwm,bspwm,dwm
Linux User #449130
Mark Rabideau- Prof Genealogist - http://many-roads.com
Linux BLOG https://eirenicon.org
swaywm,i3wm,hlwm,bspwm,dwm
Linux User #449130
- wizard10000
- Global Moderator
- Posts: 1152
- Joined: 2019-04-16 23:15
- Location: southeastern us
- Has thanked: 121 times
- Been thanked: 201 times
Re: Conky (under Wayland) segmentation fault
Sure - here's a link:
https://paste.debian.net/1338184/
and a clickable screenshot of a couple conkys running under labwc - the one on the left is local (and is the one I shared above), the one on the right is running remotely but the remote machine doesn't do Wayland, that's X over ssh.
https://paste.debian.net/1338184/
and a clickable screenshot of a couple conkys running under labwc - the one on the left is local (and is the one I shared above), the one on the right is running remotely but the remote machine doesn't do Wayland, that's X over ssh.
we see things not as they are, but as we are.
-- anais nin
-- anais nin
Re: Conky (under Wayland) segmentation fault
@wizard10000 By way of an update, I think I can say the bug rests with Sway. I have installed your variant with my changes on labwc and it works just fine. The following proof of life image offers my 'proof'. Thank you, again.
Pax vobiscum,
Mark Rabideau- Prof Genealogist - http://many-roads.com
Linux BLOG https://eirenicon.org
swaywm,i3wm,hlwm,bspwm,dwm
Linux User #449130
Mark Rabideau- Prof Genealogist - http://many-roads.com
Linux BLOG https://eirenicon.org
swaywm,i3wm,hlwm,bspwm,dwm
Linux User #449130
- wizard10000
- Global Moderator
- Posts: 1152
- Joined: 2019-04-16 23:15
- Location: southeastern us
- Has thanked: 121 times
- Been thanked: 201 times
Re: Conky (under Wayland) segmentation fault
Glad you got it working - interesting that sway might be the culprit.
I have seen some video glitches with that conky and firefox that I haven't figured out yet - I haven't seen it in about a week but four or five times conky failed to refresh after closing a firefox window that partially covered it. Sid recently got a fresh conky and that appears to have resolved the issue - at least so far
I have seen some video glitches with that conky and firefox that I haven't figured out yet - I haven't seen it in about a week but four or five times conky failed to refresh after closing a firefox window that partially covered it. Sid recently got a fresh conky and that appears to have resolved the issue - at least so far
we see things not as they are, but as we are.
-- anais nin
-- anais nin