Skip to content

Instantly share code, notes, and snippets.

@Soladiem Soladiem/.conkyrc
Last active Sep 28, 2018

Embed
What would you like to do?
Example of conky for linux
conky.config = {
-------------------------------------
-- Generic Settings
-------------------------------------
background=true,
update_interval=1,
double_buffer=true,
no_buffers=true,
imlib_cache_size=10,
draw_shades=false,
draw_outline=false,
draw_borders=false,
-------------------------------------
-- Window Specifications
-------------------------------------
gap_x=30,
gap_y=30,
alignment="top_right",
minimum_height=500,
minimum_width=600,
own_window=true,
own_window_type="dock",
own_window_transparent=true,
own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager",
own_window_argb_visual=true,
own_window_argb_value=0,
-------------------------------------
-- Text Settings
-------------------------------------
use_xft=true,
xftalpha=1,
font="Droid Sans:size=10",
text_buffer_size=256,
override_utf8_locale=true,
-------------------------------------
-- Color Scheme
-------------------------------------
default_color='FFFFFF',
color0='EAEAEA', -- default
color1='f4cb67', -- date
color2='ede439', -- day of the week
color3='fbf0a3', -- select
}
conky.text = [[
${voffset 10}${color1}\
${font GE Inspira:pixelsize=120}${time %d}${font}\
${voffset -84}${color0}${font GE Inspira:pixelsize=58}${time %B}${font}\
${voffset 25}${font GE Inspira:pixelsize=24}${offset -130}${color2}${if_match ${time %w} == 0}${time %A}${else}${if_match ${time %w} == 6}${time %A}${else}${color0}${time %A}${endif}${endif}${color0} ${time %Y}${font}\
${voffset 25}${offset -395}\
$hr\
${goto 35}${voffset 15}${color3}Система:${color0}${execi 9990 lsb_release -a | grep 'Description' | cut -d":" -f2}${if_match $machine == x86_64} 64 bit${else} 32 bit${endif} на ядре $sysname ${kernel}\
${goto 125}${voffset 18}${execi 9991 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f4} - $freq МГц${offset 20}${color3}CPU ${color0}${cpu cpu0}%${offset 20}${color3}Время работы: ${color0}$uptime\
${goto 125}${voffset 15}${loadgraph 40,300 FFFFFF FF0000 -t}
${goto 125}${voffset 5}${color3}HDD (SSD)${color0}\
${goto 125}${voffset 15}System ${fs_used /}/${fs_size /} ${fs_bar 8,80 /} [${fs_used_perc /}%]\
${goto 125}${voffset 15}Temp ${fs_used /run}/${fs_size /run} ${fs_bar 8,91 /run} [${fs_used_perc /run}%]\
${goto 125}${voffset 15}Home ${fs_used /home}/${fs_size /home} ${fs_bar 8,95 /home} [${fs_used_perc /home}%]\
${goto 125}${voffset 20}${color3}Оперативная память${color0}\
${goto 125}${voffset 15}RAM:$color $mem/$memmax ${membar 8, 80} [$memperc%]\
${goto 125}${voffset 15}${if_match $swapperc > 0}Swap:$color $swap/$swapmax ${swapbar 8, 80} [$swapperc%]${else}Swap не используется ($swapfree свободно)${endif}\
${goto 125}${voffset 15}Всего процессов: $processes\
${goto 125}${voffset 20}${color3}Макс. нагрузка на CPU:${color0}\
${goto 125}${voffset 15}${color FFFFFF}${top name 1} ${top cpu 1}%\
${goto 125}${voffset 15}${color0}${top name 2} ${top cpu 2}%\
${goto 125}${voffset 15}${top name 3} ${top cpu 3}%\
${goto 125}${voffset 20}${color3}Макс. нагрузка на RAM:${color0}\
${goto 125}${voffset 15}${color FFFFFF}${top_mem name 1} ${top_mem mem 1}%\
${goto 125}${voffset 15}${color0}${top_mem name 2} ${top_mem mem 2}%\
${goto 125}${voffset 15}${top_mem name 3} ${top_mem mem 3}%
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.