我剛開始玩 Conky (v. 1.12.2),一切都很好,除了我不能讓它顯示圖形邊框。(見截圖)只有當我切換輪廓或陰影時才會出現邊框,但考慮到糟糕的美學效果,我會非常避免它。我的組態檔在帖子的底部(它是我在網上找到的一個修改版本);draw_graph_borders 設定為 True。
(圖表上還出現了一個奇怪的“4m”文本,在螢屏截圖中可見:有什么想法嗎?)
我正在運行全新安裝的 Pop OS!(輕微定制的 Ubuntu 變體)22.04,帶有默認桌面環境;我的華為筆記本電腦有一個 Intel HD Graphics 620 卡。
非常感謝你的幫助。馬西莫
conky.config = {
own_window_argb_visual = true,
own_window_argb_value = 170,
double_buffer = true,
alignment = 'top_right',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'DejaVu Sans Mono:size=12',
gap_x = 60,
gap_y = 60,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'normal',
show_graph_range = true,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}
--stuff after 'TEXT' will be formatted on screen
conky.text = [[
${color grey}$nodename linux-$kernel${alignr} ${time %T}
#${color grey}System:
${color grey} Battery:${color white} ${battery BAT1}
${color grey} CPU Frequency:${color white} $freq_g ${color grey} ${color grey} CPUUsage:${color white} $cpu% ${cpubar}
${color #000000} ${cpugraph cpu0 32,240 000000 7f8ed3} ${color #000000}${memgraph 32,240 000000 d37f00}
${color grey} RAM Usage:${color white} $mem/$memmax - $memperc% ${membar}
${color grey} Swap Usage:${color white} $swap/$swapmax - $swapperc% ${swapbar}
$hr
${color grey}Wifi:${color grey} ${color white}${wireless_essid wlp1s0} ${color grey}bitrate:${color white} ${wireless_bitrate wlp1s0}
${color grey} ${execi 120 iwconfig wlp1s0 | grep Link}
${color grey}Down:${color white} ${downspeed wlp1s0} k/s${color grey}${offset 80}Up:${color white} ${upspeed wlp1s0} k/s
${color #000000}${downspeedgraph wlp1s0 32,240 000000 7f8ed3} ${color #000000}${upspeedgraph wlp1s0 32,240 000000 8e7f00}
${color grey}Address: ${color white}${addr wlp1s0}${alignr} ${color grey}External IP: $color${execi 1800 wget -q -O- http://ipecho.net/plain; echo}
${color grey}VPN Status: $color${execi 60 expressvpn status | head -1 | ansifilter}
$hr
${color grey}File Systems:
${color grey}/ ${color white}${fs_used /}/${fs_size /} ${color white}${fs_bar /}
${color grey}~ ${color white}${fs_used /home}/${fs_size /home} ${color white}${fs_bar /home}
${color grey}Name PID CPU% MEM%
${color white} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color white} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color white} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color grey}Mem usage
${color white} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color white} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color white} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
$hr
${color grey}Local Weather:
${color white}${execi 1800 python3 /home/massimo/weather.py}
]]
uj5u.com熱心網友回復:
我不能讓它顯示圖形邊框。
${color #000000}
在黑色背景上繪制黑色邊框的原因。如果我洗掉該顏色規范,我會看到邊框。
(我沒有看到“4m”文字。)
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/505007.html