You are not logged in.
Pages: 1
Hi, hope message won`t be deleted cuz of wrong forum:) Setted up my conky and want to paste image with arch logo, doing it with "${image path/to/picture.png -p x,y -s x,y}", it`s black but in conky it`s white, tried several pictures(10 xD) defferent clours and they`re all white or transparent in conky. Mb someone knows, thx for answers)
Here is config
use_xft yes
xftfont Trueno:size=8
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
text_buffer_size 1024
format_human_readable
own_window yes
own_window_transparent yes
own_window_type normal
own_window_argb_visual yes
own_window_class override
top_cpu separate no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 210
maximum_width 210
default_color 000000
draw_shades no
color0 000000
color1 000000
color2 000000
alignment top_right
gap_x 25
gap_y 70
no_buffers no
net_avg_samples 2
override_utf8_locale yes
TEXT
${voffset 2}${color0}${font}${color} ${alignr}Arch-LINUX-${color2}${kernel}${color}
${image ~/.local/share/arch.png -p -4,0 -s 200x70}
SYSTEM ${hr 0,5}
${color0}${font StyleBats:size=16}T${font}${color} UPDATES: ${font Liberation Sans:style=Bold:size=8}${alignr}${color1}${execi 10800 pacman -Qu | wc -l}${font}${color} Packages
${color0}${font StyleBats:size=16}A${font}${color} CPU0: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu0}% ${execi 10 sensors | grep 'Core 0' | cut -c16-21}${color}${font} ${alignr}${color2}${cpubar cpu0 8,60}${color}
${color0}${font StyleBats:size=16}A${font}${color} CPU1: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu1}%${color}${font} ${alignr}${color2}${cpubar cpu1 8,60}${color}
${color0}${font StyleBats:size=16}A${font}${color} CPU2: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}% ${execi 10 sensors | grep 'Core 2' | cut -c16-21}${color}${font} ${alignr}${color2}${cpubar cpu2 8,60}${color}
${color0}${font StyleBats:size=16}A${font}${color} CPU3: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu3}%${color}${font} ${alignr}${color2}${cpubar cpu3 8,60}${color}
${color0}${font StyleBats:size=16}g${font}${color} RAM: ${font Liberation Sans:style=Bold:size=8}${color1}$memperc%${color}${font} ${alignr}${color2}${membar 8,60}${color}
${color0}${font StyleBats:size=16}j${font}${color} SWAP: ${font Liberation Sans:style=Bold:size=8}${color1}$swapperc%${color}${font} ${alignr}${color2}${swapbar 8,60}${color}
${color0}${font StyleBats:size=16}q${font}${color} Uptime: ${alignr}${color1}${uptime}${color}
${voffset 4}${font style=Bold:size=10}PROCESSES${font}${voffset 0}${goto 130}CPU${alignr}RAM
${voffset -1}${goto 9}${top name 1}${font style=Bold:size=8} ${goto 120}${top cpu 1}${alignr }${top mem 1}${font}
${voffset -1}${goto 9}${top name 2}${font style=Bold:size=8} ${goto 120}${top cpu 2}${alignr }${top mem 2}${font}
${voffset -1}${goto 9}${top name 3}${font style=Bold:size=8} ${goto 120}${top cpu 3}${alignr }${top mem 3}${font}
${voffset -1}${goto 9}${top name 4}${font style=Bold:size=8} ${goto 120}${top cpu 4}${alignr }${top mem 4}${font}
${voffset -1}${goto 9}${top name 5}${font style=Bold:size=8} ${goto 120}${top cpu 5}${alignr }${top mem 5}${font}
DISK ${hr 0,5}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}System:
${voffset 4}${color1}${fs_used /}/${fs_size /}${color} ${alignr}${fs_bar 8,60 /}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Home:
${voffset 4}${color1}${fs_used /home}/${fs_size /home}${color} ${alignr}${fs_bar 8,60 /home}
${voffset 4}${font StyleBats:size=15}O${font} ${voffset -5}Read I/O: ${color1}${diskio_read}${color}${alignr}${diskiograph_read sda 8,60}
${voffset 4}${font StyleBats:size=15}P${font} ${voffset -5}Write I/O: ${color1}${diskio_write}${color}${alignr}${diskiograph_write sda 8,60}
${voffset 4}${font StyleBats:size=15}8${font} ${voffset -5}Temperature: ${color1}${execi 10 sudo hddtemp /dev/sda | cut -c34-38}${color}
NETWORK ${hr 0,5}
${voffset 4}${font WIFI:size=14}B${font} SSID: ${alignr}${wireless_essid wlp3s0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${color1}${upspeedf wlp3s0} kb/s${color} ${alignr}${upspeedgraph wlp3s0 8,60}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${color1}${downspeedf wlp3s0} kb/s ${color}${alignr}${downspeedgraph wlp3s0 8,60}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${color1}${totalup wlp3s0}${color}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${color1}${totaldown wlp3s0}${color}
#${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Signal: ${color1}${wireless_link_qual wlp3s0}%${color} ${alignr}${wireless_link_bar 8,60 wlp3s0}
Last edited by axl (2020-05-24 12:41:21)
Offline
Can you provide any screenshots to clarify what you're intending to see (e.g. the image as intended shown in a graphic viewer) and what you get in conky?
I think you'll need to upload you screenshots to imgur or somewhere like that, and take the reference and link it from a post here.
Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.
Offline
I would guess, it's related to transparency - any chance, that you're using an image with transparency which looks different inside vs. outside of conky?
That said: yes, a link to the image in use plus maybe a screenshot of how it is wrong would be really helpful :-)
regards,
deep42thought
Offline
https://imgur.com/sHrmPiF.png this is how it looks
https://sources.archlinux.org/other/art … 200dpi.png this is how it should look
Offline
Hmm yes, that does look odd. It looks rather like a transparency issue as posited by deep42thought, but it looks to me that both the background and the foreground seem to have full alpha, with only the antialiased edges (introduced when scaling it mainly) show through.
I would load the source image into GIMP and see if it has alpha, followed by removing that alpha. There's almost certainly some more light weight way of doing that, but I only really know GIMP these days.
Edit: I've looked at the image in GIMP myself now. All that white in the source image appears in GIMP as transparency. Perhaps Conky is being too clever and additionally setting black as transparent, which would work with any image with a black background which is most of them, but doesn't work in our instance. In out case, it looks like you can have a white scquare with a hole the shape of the Archlinux logo, or an archlinux logo in white if you invert it.
To remove the alpha channel in GIMP, load the image in, select 'Layer->Transparency->Remove alpha channel' from the menu bar.
Last edited by levi (2020-05-23 20:06:33)
Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.
Offline
yes, it looks like certain settings for conky (argb_visual?) make all black parts transparent:
https://ubuntu-mate.community/t/conky-i … bled/16838
https://sourceforge.net/p/conky/bugs/317/
regards, deep42thought
Offline
Pages: 1