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.