Conky - MX-Asq MX-geekytowerLogo  [Solved]

Message
Author
User avatar
Melber
Developer
Posts: 1443
Joined: Tue Mar 23, 2021 4:19 pm

Re: Conky - MX-Asq MX-geekytowerLogo

#11 Post by Melber »

Willst du sowas in der Art?
conky.png

Code: Select all

own_window_colour = 'FFFFFF'
default_colour = '000000'
color1 = '000000'
color2 = '000000'
color3 = '000000'
own_window_argb_value = 255
own_window_argb_visual = true
Conky Manger
Transparenz auf "Semi-Transparent" setzen > Opazität auf 100 > Transparenz auf "Transparent" setzen
You do not have the required permissions to view the files attached to this post.

loik
Posts: 2299
Joined: Wed Dec 12, 2018 2:01 pm

Re: Conky - MX-Asq MX-geekytowerLogo

#12 Post by loik »

Jaha, da wollte ich hin.

sah bei mir aber ohne deine Zeilen ( muss ich noch einpflegen )
bisher so aus.
conky white.jpg
Danke für s Mitbasteln.
You do not have the required permissions to view the files attached to this post.

loik
Posts: 2299
Joined: Wed Dec 12, 2018 2:01 pm

Re: Conky - MX-Asq MX-geekytowerLogo

#13 Post by loik »

Habe jetzt deine Abänderungen für das Script eingetragen.

Das kommt meinen Vorstellungen schon sehr nahe.
Und auf wirklich weißem Hintergrund wäre es so annehmbar.

Aber Auf Bildhintergründen fehlt dann eben doch immer noch die eigentliche Transparenz, so dass der Hintergrund durch das Conky hindurch weiterhin sichtbar ist.
Nur eben gerne schwarze Schrift und Balken, falls das Desktopbild im Bereich des Conkys sehr hell ist.
( ich versuche es hier auf XFCE )

Das ist hier leider noch nicht gegeben.
conky white_white.jpg

Hier noch mal mein Script, wie es jetzt aussieht:

Code: Select all

conky.config = {
--#############################################
-- Settings
--#############################################
-- Use Xft?
	use_xft = true,
	font = 'Droid Sans:size=7',
	xftalpha = 0.8,
	text_buffer_size = 2048,

-- Update interval in seconds
	update_interval = 5,

-- This is the number of times Conky will update before quitting.
-- Set to zero to run forever.
	total_run_times = 0,

-- Create own window instead of using desktop (required in nautilus)
-- own_window = yes fixes cairo-compmgr issue...
	own_window = true,
own_window_transparent = false,
--own_window_type normal
--own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- Minimum size of text area
--minimum_size 230 0
--maximum_width 200
	maximum_width = 270,

-- Draw shades?
	draw_shades = false,
--default_shade_color black

-- Draw outlines?
	draw_outline = false,
--default_outline_color grey

-- Draw borders around text
	draw_borders = false,

-- Stippled borders?
	stippled_borders = 0,

-- border width
	border_width = 1,

own_window_colour = 'FFFFFF',

--###########Colors#########
	default_color = '000000',--use ${color} to revert to default
--time, date, mx version
	color1 = '000000',
--sections and horizonal lines, item descriptions
	color2 = '000000',
--readings
	color3 = '000000',
--##########################


-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_right',
--alignment top_middle
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
-- same thing as passing -x at command line
gap_x = 35,
gap_y = 35,

-- Subtract file system buffers from used memory?
	no_buffers = true,

-- set to yes if you want all text to be in uppercase
	uppercase = false,

-- number of cpu samples to average
-- set to 1 to disable averaging
	cpu_avg_samples = 2,

-- number of net samples to average
-- set to 1 to disable averaging
	net_avg_samples = 2,

-- Force UTF8? note that UTF8 support required XFT
	override_utf8_locale = true,

-- Add spaces to keep things from moving about? This only affects
--certain objects.
	use_spacer = 'none',

	own_window_type = 'normal',

--#############################################
--  Output
--#############################################
own_window_argb_value = 255,
own_window_argb_visual = true,
minimum_width = 0, minimum_height = 0,

-- time template
    
    template0 = [[${if_match "pmfix${time %p}" == "pmfix"}${time \1}${else}${time %H:%M}${endif}]],

-- interface templates - to disable conky-manager2 changes  
   if_up_strictness = 'address',
   template4 = 'eth0',
   template5 = 'eth1',
   template6 = 'wlan0',
   template7 = 'wlan1',


};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
   ${alignc}${font Arial Black:size=28}${color1}${template0 %H:%M}${font}

   ${alignc}${time %A %d %B %Y}

${color2}SYSTEM ${hr 2}${color}

   ${image MXLogoStart.png -p 97,90 -s 50x50}
   
  

 ${alignc}${color1}${execi 3600 cat /etc/mx-version}

${voffset 2}${color3}   Kernel: ${alignr}${color}${kernel}

   ${color3}Uptime: ${alignr}${color}${uptime}

   ${color3}CPU: ${color}${cpu cpu0}% ${alignr}${color}${cpubar cpu0 8,60}

   ${color3}RAM: ${color}$mem / $memmax   -> $memperc% ${alignr}${color}${membar 8,60}

   ${color3}SWAP: ${color}$swap / $swapmax   -> $swapperc% ${alignr}${color}${swapbar 8,60}

${color2}MONITOR ${hr 2}${color}

   NAME $alignr PID      CPU     
   ${color3}${top name 1} $alignr${color} ${top pid 1}   ${top cpu 1} %
   ${color3}${top name 2} $alignr${color} ${top pid 2}   ${top cpu 2} %
   ${color3}${top name 3} $alignr${color} ${top pid 3}   ${top cpu 3} %
   ${color3}${top name 4} $alignr${color} ${top pid 4}   ${top cpu 4} %
   ${color3}${top name 5} $alignr${color} ${top pid 5}   ${top cpu 5} %
   ${color3}${top name 6} $alignr${color} ${top pid 6}   ${top cpu 6} %
   ${color3}${top name 7} $alignr${color} ${top pid 7}   ${top cpu 7} %
   ${color3}${top name 8} $alignr${color} ${top pid 8}   ${top cpu 8} %
   ${color3}${top name 9} $alignr${color} ${top pid 9}   ${top cpu 9} %

${if_up ${template4}}
${color2}ETHERNET (${addr ${template4}}) ${hr 2}${color}
   Down: ${downspeedf ${template4}}kB/s ${alignr}Up: ${upspeedf ${template4}}kB/s
   ${downspeedgraph ${template4} 30,120 000000 000000} ${alignr}${upspeedgraph ${template4} 30,120 000000 000000}${else}\
${if_up ${template5}}${color2}
ETHERNET (${addr ${template5}}) ${hr 2}${color}
   Down: ${downspeedf ${template5}}kB/s ${alignr}Up: ${upspeedf ${template5}}kB/s
   ${downspeedgraph ${template5} 30,120 000000 000000} ${alignr}${upspeedgraph ${template5} 30,120 000000 000000}${endif}${endif}\
${if_up ${template6}}${color2}
WIRELESS (${addr ${template6}}) [${wireless_link_qual_perc ${template6}}%] ${hr 2}${color}
   Down: ${downspeedf ${template6}}kB/s ${alignr}Up: ${upspeedf ${template6}}kB/s
   ${downspeedgraph ${template6} 30,120 000000 000000} $alignr${upspeedgraph ${template6} 30,120 000000 000000}${else}
${if_up ${template7}}${color2}
WIRELESS (${addr ${template7}}) [${wireless_link_qual_perc ${template7}}%] ${hr 2}${color}
   Down: ${downspeedf ${template7}}kB/s ${alignr}Up: ${upspeedf ${template7}}kB/s
   ${downspeedgraph ${template7} 30,120 000000 000000} $alignr${upspeedgraph ${template7} 30,120 000000 000000}${endif}${endif}

${color2}MEDIA ${hr 2}${color}

${if_existing conky-harddisks.sh}${execpi 10 sh conky-harddisks.sh}${endif}\

]];
You do not have the required permissions to view the files attached to this post.

User avatar
Melber
Developer
Posts: 1443
Joined: Tue Mar 23, 2021 4:19 pm

Re: Conky - MX-Asq MX-geekytowerLogo

#14 Post by Melber »

Melber wrote: Tue Dec 19, 2023 10:56 am Conky Manger
Transparenz auf "Semi-Transparent" setzen > Opazität auf 100 > Transparenz auf "Transparent" setzen

loik
Posts: 2299
Joined: Wed Dec 12, 2018 2:01 pm

Re: Conky - MX-Asq MX-geekytowerLogo

#15 Post by loik »

Ja, stimmt.
Das hatte ich tatsächlich überlesen.

Ich habe es nun entsprechend eingestellt und das Ergebnis bleibt aber so wie auf meinem Screenshot.
Schwarz auf weiß.
Leider.

User avatar
Melber
Developer
Posts: 1443
Joined: Tue Mar 23, 2021 4:19 pm

Re: Conky - MX-Asq MX-geekytowerLogo

#16 Post by Melber »

Also, das hier funktioniert bei mir

Code: Select all

conky.config = {
--#############################################
-- Settings
-- MX-geekytowerLogo-Melber
--#############################################
-- Use Xft?
	use_xft = true,
	font = 'Droid Sans:size=7',
	xftalpha = 0.8,
	text_buffer_size = 2048,

-- Update interval in seconds
	update_interval = 5,

-- This is the number of times Conky will update before quitting.
-- Set to zero to run forever.
	total_run_times = 0,

-- Create own window instead of using desktop (required in nautilus)
-- own_window = yes fixes cairo-compmgr issue...
	own_window = true,
own_window_transparent = true,
--own_window_type normal
--own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- Minimum size of text area
--minimum_size 230 0
--maximum_width 200
	maximum_width = 270,

-- Draw shades?
	draw_shades = false,
--default_shade_color black

-- Draw outlines?
	draw_outline = false,
--default_outline_color grey

-- Draw borders around text
	draw_borders = false,

-- Stippled borders?
	stippled_borders = 0,

-- border width
	border_width = 1,

own_window_colour = 'FFFFFF',

--###########Colors#########
	default_color = '000000',--use ${color} to revert to default
--time, date, mx version
	color1 = '000000',
--sections and horizonal lines, item descriptions
	color2 = '000000',
--readings
	color3 = '000000',
--##########################


-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_right',
--alignment top_middle
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
-- same thing as passing -x at command line
gap_x = 35,
gap_y = 35,

-- Subtract file system buffers from used memory?
	no_buffers = true,

-- set to yes if you want all text to be in uppercase
	uppercase = false,

-- number of cpu samples to average
-- set to 1 to disable averaging
	cpu_avg_samples = 2,

-- number of net samples to average
-- set to 1 to disable averaging
	net_avg_samples = 2,

-- Force UTF8? note that UTF8 support required XFT
	override_utf8_locale = true,

-- Add spaces to keep things from moving about? This only affects
--certain objects.
	use_spacer = 'none',

	own_window_type = 'normal',

--#############################################
--  Output
--#############################################
own_window_argb_value = 255,
own_window_argb_visual = true,
minimum_width = 0, minimum_height = 0,

-- time template
    
    template0 = [[${if_match "pmfix${time %p}" == "pmfix"}${time \1}${else}${time %I:%M}${endif}]],

-- interface templates - to disable conky-manager2 changes  
   if_up_strictness = 'address',
   template4 = 'eth0',
   template5 = 'eth1',
   template6 = 'wlan0',
   template7 = 'wlan1',


};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
   ${alignc}${font Arial Black:size=28}${color1}${template0 %H:%M}${font}

   ${alignc}${time %A %d %B %Y}

${color2}SYSTEM ${hr 2}${color}

   ${image MXLogoStart.png -p 97,90 -s 50x50}
   
  

 ${alignc}${color1}${execi 3600 cat /etc/mx-version}

${voffset 2}${color3}   Kernel: ${alignr}${color}${kernel}

   ${color3}CPU: ${color}${cpu cpu0}% ${alignr}${color}${cpubar cpu0 8,60}

   ${color3}RAM: ${color}$memperc% ${alignr}${color}${membar 8,60}

   ${color3}SWAP: ${color}$swap/ $swapmax ${alignr}${color}${swapbar 8,60}

   ${color3}Uptime: ${alignr}${color}${uptime}

${color2}MEDIA ${hr 2}${color}

${if_existing conky-harddisks.sh}${execpi 10 sh conky-harddisks.sh}${endif}\
${if_up ${template4}}

${color2}ETHERNET (${addr ${template4}}) ${hr 2}${color}
   Down: ${downspeedf ${template4}}kB/s ${alignr}Up: ${upspeedf ${template4}}kB/s
   ${downspeedgraph ${template4} 30,120 000000 000000} ${alignr}${upspeedgraph ${template4} 30,120 000000 000000}${else}\
${if_up ${template5}}${color2}
ETHERNET (${addr ${template5}}) ${hr 2}${color}
   Down: ${downspeedf ${template5}}kB/s ${alignr}Up: ${upspeedf ${template5}}kB/s
   ${downspeedgraph ${template5} 30,120 000000 000000} ${alignr}${upspeedgraph ${template5} 30,120 000000 000000}${endif}${endif}\
${if_up ${template6}}${color2}
WIRELESS (${addr ${template6}}) [${wireless_link_qual_perc ${template6}}%] ${hr 2}${color}
   Down: ${downspeedf ${template6}}kB/s ${alignr}Up: ${upspeedf ${template6}}kB/s
   ${downspeedgraph ${template6} 30,120 000000 000000} $alignr${upspeedgraph ${template6} 30,120 000000 000000}${else}
${if_up ${template7}}${color2}
WIRELESS (${addr ${template7}}) [${wireless_link_qual_perc ${template7}}%] ${hr 2}${color}
   Down: ${downspeedf ${template7}}kB/s ${alignr}Up: ${upspeedf ${template7}}kB/s
   ${downspeedgraph ${template7} 30,120 000000 000000} $alignr${upspeedgraph ${template7} 30,120 000000 000000}${endif}${endif}

${color2}MONITOR ${hr 2}${color}

   NAME $alignr PID CPU
   ${color3}${top name 1} $alignr${color} ${top pid 1} ${top cpu 1}
   ${color3}${top name 2} $alignr${color} ${top pid 2} ${top cpu 2}
   ${color3}${top name 3} $alignr${color} ${top pid 3} ${top cpu 3}

]];


User avatar
gosia
Posts: 1155
Joined: Sun Apr 28, 2019 3:43 pm

Re: Conky - MX-Asq MX-geekytowerLogo

#17 Post by gosia »

Hallo loik,
so ganz verstehe ich nicht, ob Du nun für Conky Transparenz möchtest oder nicht. Mit Transparenz hat man natürlich immer das Problem, dass Schriftfarbe und durchscheinende Hintergrundfarbe sich etwas stören können, wie bei mir bei "ETHERNET Down".
Aber sonst habe ich dein Conky übernommen und nur die Default-Color auf Blau gesetzt:

Code: Select all

default_color = 'blue'
und die Farben 1-3 auf schwarz:

Code: Select all

color1 = 'black',
color2 = 'black',
color3 = 'black',
Ergebnis:

Image

kann man natürlich auch bunter machen.

viele Grüsse gosia

loik
Posts: 2299
Joined: Wed Dec 12, 2018 2:01 pm

Re: Conky - MX-Asq MX-geekytowerLogo  [Solved]

#18 Post by loik »

Hallo, Gosia.
Hallo Melber.
so ganz verstehe ich nicht, ob Du nun für Conky Transparenz möchtest oder nicht
Ich möchte es so, wie in deinem und in Melbers Beispiel zu sehen.
Dunkle Kräftige Farben, die auf Hellem Hintergrund gut zu lesbar sind und doch ein transparentes Conky, was mir nicht den Blick auf den Deskttop-Hintergrund verschleiert oder sonst wie stört.

Dein Beispiel:
Ja, so etwas hatte ich mr auch schon zurechtgebastelt.
Aber ich war damit nicht recht zufrieden, weil bei Media die Balken so wischiwaschi Pastel wurden oder beim Versuch die Farbe dort dunkler zu machen wurden sie unsichtbar.

Ich habe es erst noch mal mit mit Melbers Script versucht.
1:1 übernommen.
Und sah genau so nicht-transparent aus, wie auf meinem Foto in Post #13.

Aber ich habe dann mal an meinem Script, welches ich ja bereits laut Melber bearbeitet hatte, etwas verändert.

Melber hatte bei
own_window_colour = 'FFFFFF',
Mit dem Ergebnis in Post #13

Ich habe es abgeändert auf
own_window_colour = '000000',

Die Einstellungen im Conky-Manager sahen dafür so aus
Conky schwarze schrift.jpg
Nun ist alles so schön transparent mit Schwarzer Schrift und Balken, wie auf Melbers Foto.
Sehr schön, Danke.

Code: Select all

own_window_colour = '000000',

--###########Colors#########
	default_color = '000000',--use ${color} to revert to default
--time, date, mx version
	color1 = '000000',
--sections and horizonal lines, item descriptions
	color2 = '000000',
--readings
	color3 = '000000',
--##########################

own_window_argb_value = 255,



Sieht jetzt insgesamt so aus.

Code: Select all

conky.config = {
--#############################################
-- Settings
-- Transparentes Conky mit schwarzer Schrift und schwarzen Balken
--#############################################
-- Use Xft?
	use_xft = true,
	font = 'Droid Sans:size=7',
	xftalpha = 0.8,
	text_buffer_size = 2048,

-- Update interval in seconds
	update_interval = 5,

-- This is the number of times Conky will update before quitting.
-- Set to zero to run forever.
	total_run_times = 0,

-- Create own window instead of using desktop (required in nautilus)
-- own_window = yes fixes cairo-compmgr issue...
	own_window = true,
own_window_transparent = true,
--own_window_type normal
--own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- Minimum size of text area
--minimum_size 230 0
--maximum_width 200
	maximum_width = 270,

-- Draw shades?
	draw_shades = false,
--default_shade_color black

-- Draw outlines?
	draw_outline = false,
--default_outline_color grey

-- Draw borders around text
	draw_borders = false,

-- Stippled borders?
	stippled_borders = 0,

-- border width
	border_width = 1,

own_window_colour = '000000',

--###########Colors#########
	default_color = '000000',--use ${color} to revert to default
--time, date, mx version
	color1 = '000000',
--sections and horizonal lines, item descriptions
	color2 = '000000',
--readings
	color3 = '000000',
--##########################


-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_right',
--alignment top_middle
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
-- same thing as passing -x at command line
gap_x = 35,
gap_y = 35,

-- Subtract file system buffers from used memory?
	no_buffers = true,

-- set to yes if you want all text to be in uppercase
	uppercase = false,

-- number of cpu samples to average
-- set to 1 to disable averaging
	cpu_avg_samples = 2,

-- number of net samples to average
-- set to 1 to disable averaging
	net_avg_samples = 2,

-- Force UTF8? note that UTF8 support required XFT
	override_utf8_locale = true,

-- Add spaces to keep things from moving about? This only affects
--certain objects.
	use_spacer = 'none',

	own_window_type = 'normal',

--#############################################
--  Output
--#############################################
own_window_argb_value = 255,
own_window_argb_visual = true,
minimum_width = 0, minimum_height = 0,

-- time template
    
    template0 = [[${if_match "pmfix${time %p}" == "pmfix"}${time \1}${else}${time %H:%M}${endif}]],

-- interface templates - to disable conky-manager2 changes  
   if_up_strictness = 'address',
   template4 = 'eth0',
   template5 = 'eth1',
   template6 = 'wlan0',
   template7 = 'wlan1',


};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
   ${alignc}${font Arial Black:size=28}${color1}${template0 %H:%M}${font}

   ${alignc}${time %A %d %B %Y}

${color2}SYSTEM ${hr 2}${color}

   ${image MXLogoStart.png -p 97,90 -s 50x50}
   
  

 ${alignc}${color1}${execi 3600 cat /etc/mx-version}

${voffset 2}${color3}   Kernel: ${alignr}${color}${kernel}

   ${color3}Uptime: ${alignr}${color}${uptime}

   ${color3}CPU: ${color}${cpu cpu0}% ${alignr}${color}${cpubar cpu0 8,60}

   ${color3}RAM: ${color}$mem / $memmax   -> $memperc% ${alignr}${color}${membar 8,60}

   ${color3}SWAP: ${color}$swap / $swapmax   -> $swapperc% ${alignr}${color}${swapbar 8,60}

${color2}MONITOR ${hr 2}${color}

   NAME $alignr PID      CPU     
   ${color3}${top name 1} $alignr${color} ${top pid 1}   ${top cpu 1} %
   ${color3}${top name 2} $alignr${color} ${top pid 2}   ${top cpu 2} %
   ${color3}${top name 3} $alignr${color} ${top pid 3}   ${top cpu 3} %
   ${color3}${top name 4} $alignr${color} ${top pid 4}   ${top cpu 4} %
   ${color3}${top name 5} $alignr${color} ${top pid 5}   ${top cpu 5} %
   ${color3}${top name 6} $alignr${color} ${top pid 6}   ${top cpu 6} %
   ${color3}${top name 7} $alignr${color} ${top pid 7}   ${top cpu 7} %
   ${color3}${top name 8} $alignr${color} ${top pid 8}   ${top cpu 8} %
   ${color3}${top name 9} $alignr${color} ${top pid 9}   ${top cpu 9} %

${if_up ${template4}}
${color2}ETHERNET (${addr ${template4}}) ${hr 2}${color}
   Down: ${downspeedf ${template4}}kB/s ${alignr}Up: ${upspeedf ${template4}}kB/s
   ${downspeedgraph ${template4} 30,120 000000 000000} ${alignr}${upspeedgraph ${template4} 30,120 000000 000000}${else}\
${if_up ${template5}}${color2}
ETHERNET (${addr ${template5}}) ${hr 2}${color}
   Down: ${downspeedf ${template5}}kB/s ${alignr}Up: ${upspeedf ${template5}}kB/s
   ${downspeedgraph ${template5} 30,120 000000 000000} ${alignr}${upspeedgraph ${template5} 30,120 000000 000000}${endif}${endif}\
${if_up ${template6}}${color2}
WIRELESS (${addr ${template6}}) [${wireless_link_qual_perc ${template6}}%] ${hr 2}${color}
   Down: ${downspeedf ${template6}}kB/s ${alignr}Up: ${upspeedf ${template6}}kB/s
   ${downspeedgraph ${template6} 30,120 000000 000000} $alignr${upspeedgraph ${template6} 30,120 000000 000000}${else}
${if_up ${template7}}${color2}
WIRELESS (${addr ${template7}}) [${wireless_link_qual_perc ${template7}}%] ${hr 2}${color}
   Down: ${downspeedf ${template7}}kB/s ${alignr}Up: ${upspeedf ${template7}}kB/s
   ${downspeedgraph ${template7} 30,120 000000 000000} $alignr${upspeedgraph ${template7} 30,120 000000 000000}${endif}${endif}

${color2}MEDIA ${hr 2}${color}

${if_existing conky-harddisks.sh}${execpi 10 sh conky-harddisks.sh}${endif}\

]];

Gosia, auch wenn ich oben geschrieben hatte, das ich mit dem was du vorgeschlagen hast, in der Vergangenheit nicht zufrieden war, hat es nun aber gut geholfen.
Vielleicht, weil ich dieses mal auch noch Farbe 4 hinzugefügt habe ?
Jedenfalls habe ich so nun ein brauchbares Ergebnis.

Ich habe es für mich so abgewandelt ( zu beachten die Eingetragene 4, bei CPU, RAM, SWAP, NETZWERKE ( mehrfach ) , MEDIA):

Code: Select all

conky.config = {
--#############################################
-- Settings
-- Transparentes Conky mit weißer Schrift und weißen Balken
--#############################################
-- Use Xft?
	use_xft = true,
	font = 'Droid Sans:size=7',
	xftalpha = 0.8,
	text_buffer_size = 2048,

-- Update interval in seconds
	update_interval = 5,

-- This is the number of times Conky will update before quitting.
-- Set to zero to run forever.
	total_run_times = 0,

-- Create own window instead of using desktop (required in nautilus)
-- own_window = yes fixes cairo-compmgr issue...
	own_window = true,
own_window_transparent = false,
--own_window_type normal
--own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- Minimum size of text area
--minimum_size 230 0
--maximum_width 200
	maximum_width = 270,

-- Draw shades?
	draw_shades = false,
--default_shade_color black

-- Draw outlines?
	draw_outline = false,
--default_outline_color grey

-- Draw borders around text
	draw_borders = false,

-- Stippled borders?
	stippled_borders = 0,

-- border width
	border_width = 1,

own_window_colour = '000000',

--###########Colors#########
	default_color = 'ffffff',--use ${color} to revert to default
--time, date, mx version
	color1 = 'ffffff',
--sections and horizonal lines, item descriptions
	color2 = 'ffffff',
--readings
	color3 = 'ffffff',
--bar-color
	color4 = 'ffffff',
--##########################


-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_right',
--alignment top_middle
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
-- same thing as passing -x at command line
gap_x = 35,
gap_y = 35,

-- Subtract file system buffers from used memory?
	no_buffers = true,

-- set to yes if you want all text to be in uppercase
	uppercase = false,

-- number of cpu samples to average
-- set to 1 to disable averaging
	cpu_avg_samples = 2,

-- number of net samples to average
-- set to 1 to disable averaging
	net_avg_samples = 2,

-- Force UTF8? note that UTF8 support required XFT
	override_utf8_locale = true,

-- Add spaces to keep things from moving about? This only affects
--certain objects.
	use_spacer = 'none',

	own_window_type = 'normal',

--#############################################
--  Output
--#############################################
own_window_argb_value = 26,
own_window_argb_visual = true,
minimum_width = 0, minimum_height = 0,

-- time template
    
    template0 = [[${if_match "pmfix${time %p}" == "pmfix"}${time \1}${else}${time %H:%M}${endif}]],

-- interface templates - to disable conky-manager2 changes  
   if_up_strictness = 'address',
   template4 = 'eth0',
   template5 = 'eth1',
   template6 = 'wlan0',
   template7 = 'wlan1',


};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
   ${alignc}${font Arial Black:size=28}${color1}${template0 %H:%M}${font}

   ${alignc}${time %A %d %B %Y}

${color2}SYSTEM ${hr 2}${color}

   ${image MXLogoStart.png -p 97,90 -s 50x50}
   
  

 ${alignc}${color1}${execi 3600 cat /etc/mx-version}

${voffset 2}${color3}   Kernel: ${alignr}${color}${kernel}

   ${color3}Uptime: ${alignr}${color}${uptime}

   ${color3}CPU: ${color}${cpu cpu0}% ${alignr}${color4}${cpubar cpu0 8,60}

   ${color3}RAM: ${color}$mem / $memmax   -> $memperc% ${alignr}${color4}${membar 8,60}

   ${color3}SWAP: ${color}$swap / $swapmax   -> $swapperc% ${alignr}${color4}${swapbar 8,60}

${color2}MONITOR ${hr 2}${color}

   NAME $alignr PID      CPU     
   ${color3}${top name 1} $alignr${color} ${top pid 1}   ${top cpu 1} %
   ${color3}${top name 2} $alignr${color} ${top pid 2}   ${top cpu 2} %
   ${color3}${top name 3} $alignr${color} ${top pid 3}   ${top cpu 3} %
   ${color3}${top name 4} $alignr${color} ${top pid 4}   ${top cpu 4} %
   ${color3}${top name 5} $alignr${color} ${top pid 5}   ${top cpu 5} %
   ${color3}${top name 6} $alignr${color} ${top pid 6}   ${top cpu 6} %
   ${color3}${top name 7} $alignr${color} ${top pid 7}   ${top cpu 7} %
   ${color3}${top name 8} $alignr${color} ${top pid 8}   ${top cpu 8} %
   ${color3}${top name 9} $alignr${color} ${top pid 9}   ${top cpu 9} %

${if_up ${template4}}
${color2}ETHERNET (${addr ${template4}}) ${hr 2}${color4}
   Down: ${downspeedf ${template4}}kB/s ${alignr}Up: ${upspeedf ${template4}}kB/s
   ${downspeedgraph ${template4} 30,120 000000 000000} ${alignr}${upspeedgraph ${template4} 30,120 000000 000000}${else}\
${if_up ${template5}}${color2}
ETHERNET (${addr ${template5}}) ${hr 2}${color4}
   Down: ${downspeedf ${template5}}kB/s ${alignr}Up: ${upspeedf ${template5}}kB/s
   ${downspeedgraph ${template5} 30,120 000000 000000} ${alignr}${upspeedgraph ${template5} 30,120 000000 000000}${endif}${endif}\
${if_up ${template6}}${color2}
WIRELESS (${addr ${template6}}) [${wireless_link_qual_perc ${template6}}%] ${hr 2}${color4}
   Down: ${downspeedf ${template6}}kB/s ${alignr}Up: ${upspeedf ${template6}}kB/s
   ${downspeedgraph ${template6} 30,120 000000 000000} $alignr${upspeedgraph ${template6} 30,120 000000 000000}${else}
${if_up ${template7}}${color2}
WIRELESS (${addr ${template7}}) [${wireless_link_qual_perc ${template7}}%] ${hr 2}${color4}
   Down: ${downspeedf ${template7}}kB/s ${alignr}Up: ${upspeedf ${template7}}kB/s
   ${downspeedgraph ${template7} 30,120 000000 000000} $alignr${upspeedgraph ${template7} 30,120 000000 000000}${endif}${endif}

${color2}MEDIA ${hr 2}${color} ${alignr}${color4}

${if_existing conky-harddisks.sh}${execpi 10 sh conky-harddisks.sh}${endif}\

]];


Damit habe ich nun ein transparententes Conky mit "weißer" Schrift und weißen Balken.
Das funktioniert so gar sehr gut auf Hellgrauen Untergründen.
Conky _weisse_Schrift.jpg
Ist der Untergrund aber hell und kruschtelig, lässt sich auch nachhelfen, in dem man mit ein paar % Opacity für einheitlicheren Kontrast sorg, ohne die Transparenz zu velieren.
Conky weisse schrift Opacity10.jpg

Aber bei dir sieht die Conky-Fläche mit den Schatten-Rändern eben so schön Plakettenartig schwebend aus, wie ich es von Q4OS kenne.
Bekomme ich aber bei XFCE nicht hin.

Muss ich hier in Twesk am Compositor schrauben?
Compositor.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
gosia
Posts: 1155
Joined: Sun Apr 28, 2019 3:43 pm

Re: Conky - MX-Asq MX-geekytowerLogo

#19 Post by gosia »

Hallo loik,
unzufrieden mit meinen Tipps? Das ist ein Ding, ich bin sprachlos ;)

Zum Rest kann ich nicht viel sagen, ich habe nur deine conky-Datei (geshrinkte Variante für kleine Bildschirme) zum Testen übernommen und kleine Änderungen vorgenommen. Manche Änderungen beruhen da eher auf dem Prinzip "Versuch und Irrtum". z.B. das Einfügen von
background = false
Warum bei mir so ein netter Effekt wie eine schwebende durchsichtige Plakette auftritt, weiss ich auch nicht. Grundvorausitzung dafür ist wohl mindestens das Vorhandensein eines Compositors, bei mir läuft picom. Aber bei dir die Punkte "Schatten unter ...Fenstern" klingt doch schon mal gut.
Ansonsten scheinen mir aus dieser Conky-Optionen-Schatzkiste https://conky.sourceforge.net/config_settings.html die Optionen draw_shades und default_shade_color für solch einen Effekt zuständig zu sein. Aber merkwürdigerweise sind beide in meiner Variante

Code: Select all

conky.config = {
--#############################################
-- Settings
--#############################################
-- Use Xft?
	use_xft = true,
	font = 'Droid Sans:bold:size=9',
	xftalpha = 0.8,
	text_buffer_size = 2048,

-- Update interval in seconds
	update_interval = 10,

-- This is the number of times Conky will update before quitting.
-- Set to zero to run forever.
	total_run_times = 0,

-- Create own window instead of using desktop (required in nautilus)
-- own_window = yes fixes cairo-compmgr issue...
	own_window = true,
	own_window_transparent = true,
	own_window_type = normal,
	background = false,
--own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- Minimum size of text area
--minimum_size 230 0
--maximum_width 200
	maximum_width = 270,

-- Draw shades?
	draw_shades = false,

-- Draw outlines?
	draw_outline = false,
--default_outline_color grey

-- Draw borders around text
	draw_borders = false,

-- Stippled borders?
	stippled_borders = 0,

-- border width
	border_width = 1,

	own_window_colour = '000000',

--###########Colors#########
	default_color = 'blue',--use ${color} to revert to default
--time, date, mx version
	color1 = 'black',
--sections and horizonal lines, item descriptions
	color2 = 'black',
--readings
	color3 = 'black',
--##########################


-- Text alignment, other possible values are commented
--alignment top_left
	alignment = 'top_right',
--alignment top_middle
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
-- same thing as passing -x at command line
	gap_x = 35,
	gap_y = 35,

-- Subtract file system buffers from used memory?
	no_buffers = true,

-- set to yes if you want all text to be in uppercase
	uppercase = false,

-- number of cpu samples to average
-- set to 1 to disable averaging
	cpu_avg_samples = 2,

-- number of net samples to average
-- set to 1 to disable averaging
	net_avg_samples = 2,

-- Force UTF8? note that UTF8 support required XFT
	override_utf8_locale = true,

-- Add spaces to keep things from moving about? This only affects
--certain objects.
	use_spacer = 'none',

	own_window_type = 'normal',

--#############################################
--  Output
--#############################################
--	own_window_argb_value = 0,
	own_window_argb_visual = true,
	minimum_width = 0, minimum_height = 0,

-- time template

    template0 = [[${if_match "pmfix${time %p}" == "pmfix"}${time \1}${else}${time %I:%M}${endif}]],

-- interface templates - to disable conky-manager2 changes
   if_up_strictness = 'address',
   template4 = 'eth0',
   template5 = 'eth1',
   template6 = 'wlan0',
   template7 = 'wlan1',
};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')

conky.text = [[
   ${alignc}${font Arial Black:size=28}${color2}${template0 %H:%M}${font}

   ${alignc}${time %A %d %B %Y}

${color2}SYSTEM ${hr 2}${color}

   ${image MXLogoStart.png -p 97,90 -s 50x50}



 ${alignc}${color1}${execi 3600 cat /etc/mx-version}

${voffset 2}${color3}   Kernel: ${alignr}${color}${kernel}

   ${color3}Uptime: ${alignr}${color}${uptime}

   ${color3}CPU: ${color}${cpu cpu0}% ${alignr}${color}${cpubar cpu0 8,60}

   ${color3}RAM: ${color}$mem / $memmax   -> $memperc% ${alignr}${color}${membar 8,60}

   ${color3}SWAP: ${color}$swap / $swapmax   -> $swapperc% ${alignr}${color}${swapbar 8,60}

${color2}MONITOR ${hr 2}${color}
   NAME $alignr PID      CPU
   ${color3}${top name 1} $alignr${color} ${top pid 1}   ${top cpu 1} %
   ${color3}${top name 2} $alignr${color} ${top pid 2}   ${top cpu 2} %
   ${color3}${top name 3} $alignr${color} ${top pid 3}   ${top cpu 3} %
   ${color3}${top name 4} $alignr${color} ${top pid 4}   ${top cpu 4} %
   ${color3}${top name 5} $alignr${color} ${top pid 5}   ${top cpu 5} %
   ${color3}${top name 6} $alignr${color} ${top pid 6}   ${top cpu 6} %
${if_up ${template4}}
${color2}ETHERNET (${addr ${template4}}) ${hr 2}${color1}
   Down: ${downspeedf ${template4}}kB/s ${alignr}Up: ${upspeedf ${template4}}kB/s
   ${downspeedgraph "eth0" 24,120  ffffff 00ff00} ${alignr}${upspeedgraph ${template4} 24,120 000000 000000}${else}\
${if_up ${template5}}${color2}
ETHERNET (${addr ${template5}}) ${hr 2}${color}
   Down: ${downspeedf ${template5}}kB/s ${alignr}Up: ${upspeedf ${template5}}kB/s
   ${downspeedgraph ${template5} 18,120 000000 000000} ${alignr}${upspeedgraph ${template5} 18,120 000000 000000}${endif}${endif}\
${if_up ${template6}}${color2}
WIRELESS (${addr ${template6}}) [${wireless_link_qual_perc ${template6}}%] ${hr 2}${color}
   Down: ${downspeedf ${template6}}kB/s ${alignr}Up: ${upspeedf ${template6}}kB/s
   ${downspeedgraph ${template6} 18,120 000000 000000} $alignr${upspeedgraph ${template6} 18,120 000000 000000}${else}
${if_up ${template7}}${color2}
WIRELESS (${addr ${template7}}) [${wireless_link_qual_perc ${template7}}%] ${hr 2}${color}
   Down: ${downspeedf ${template7}}kB/s ${alignr}Up: ${upspeedf ${template7}}kB/s
   ${downspeedgraph ${template7} 18,120 000000 000000} $alignr${upspeedgraph ${template7} 18,120 000000 000000}${endif}${endif}
${color2}MEDIA ${hr 2}${color}

-- ${if_existing conky-harddisks.sh}${execpi 10 sh conky-harddisks.sh}${endif}\

]];
nicht so gesetzt.
Nun ja, manchmal muss man schon mit 90% Erfolg zufrieden sein.

viele Grüsse gosia

User avatar
CharlesV
Administrator
Posts: 8068
Joined: Sun Jul 07, 2019 5:11 pm

Re: Conky - MX-Asq MX-geekytowerLogo

#20 Post by CharlesV »

Ich habe festgestellt, dass der Compositor auf einigen Rechnern definitiv einen Unterschied macht. Auf einigen ist compton viel besser, auf anderen ist es xfwm.

Und ja, wenn man die Einstellungen für den Compositor verändert, kann es wirklich anders aussehen.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

Post Reply

Return to “Deutsches Forum”