2017年7月14日 星期五

Conky - 桌面監控程式



sudo apt-get install conky-all

cp /etc/conky/conky.conf ~/.conkyrc



conky.config = {
-- -- Conky settings -- #
background = true,
update_interval = 1,

cpu_avg_samples = 2,
net_avg_samples = 2,

override_utf8_locale = true,

double_buffer = true,
no_buffers = true,

text_buffer_size = 32768,
imlib_cache_size = 0,

-- -- Window specifications -- #
own_window = true,
own_window_type = 'desktop',
own_window_argb_visual = true,
own_window_argb_value = 120,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',

border_inner_margin = 50,
border_outer_margin = 0,

-- Conky on second monitor
xinerama_head = 2,


--minimum_size 1100 700
maximum_width = 1100,

alignment = 'bottom_right',
gap_x = 60,
gap_y = 90,

-- -- Graphics settings -- #
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,

-- -- Text settings -- #
use_xft = true,
font = 'Ubuntu Mono:size=8',
xftalpha = 0.8,
--Ícones: ${font Conky Icons by Carelli:size=10}

uppercase = false,

default_color = '#FFFFFF',

--own_window_transparent yes
own_window_colour = '#000000',
minimum_width = 0, minimum_height = 0,
};

conky.text = [[
${color white}$alignc$sysname $kernel on $machine
${color white}$alignc${exec whoami} @ $nodename
$color$stippled_hr
${color}Date: ${color white}${time %Y-%m-%d}
${color}Time: ${color white}${time %k:%M:%S}${alignr}${color}Uptime: ${color white}$uptime
$color$stippled_hr
${alignc}Batt:$color   ${battery}
$color$stippled_hr
${alignc}Temperatures
${alignc}CPU: ${color white}${freq}mHz / ${hwmon 2 temp 1}°C$color - MB: ${color white}${hwmon 0 temp 1}°C
$color$stippled_hr
${color}CPU:${color white}  ${cpu cpu1}% ${cpubar cpu1}
${color}RAM:${color white} $memperc% $mem/$memmax $membar
${color}Swap: ${color white}$swapperc% $swap/$swapmax ${swapbar}
$color$stippled_hr
${alignc}File systems
${color}/Root${color white} ${fs_used_perc /}% ${fs_used /}/${fs_size /} ${fs_bar /}
${color}/Home${color white} ${fs_used_perc /home/}% ${fs_used /home/}/${fs_size /home/} ${fs_bar /home/}
$color$stippled_hr${if_running amarokapp}
]];

沒有留言:

張貼留言