Conky Console

Ставим conky
conky console

pacman -S conky

nano .conkyrc
out_to_x no
out_to_console no
out_to_ncurses yes
# Update interval in seconds
update_interval 3.0
# ------------------ Main Text ---------------------------------#
TEXT
${color yellow}Сегодня: ${color}${execi 600 date +%A} ${execi 600 date +%d}$color ${execi 600 date +%B} ${color green}${execi 1 date +%T}$alignr${color}
${color red}===============================================================================${color}
#-------------------------------------------------------------------------------------------------------
${color green}Общая информация${color}
Компьютер: ${color yellow}Arch Linux Server${color}
Версия ядра:${color yellow} $kernel${color}
Архитектура системы:${color yellow} $machine${color}
Время работы системы:${color yellow} $uptime${color}
${color red}===============================================================================${color}
${color green}Информация о системе$color
${color yellow}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}${color}
Частота: ${color green}${freq_g 2}ГГц${color} Процессов: ${color red}$running_processes/$processes${color}
ЦП1 ${cpubar cpu0 1,20} ${color yellow}${cpu cpu0}%$color ЦП2 ${cpubar cpu1 1,20} ${color yellow}${cpu cpu1}%$color
ОЗУ ${membar 1,20} ${color yellow}${memperc}%${color} SWAP ${swapbar 1,20} ${color yellow}${swapperc}%${color}
Disk: I/O: ${color yellow}$diskio / ${color}R: ${color0}$diskio_read / ${color}W: ${color yellow}$diskio_write${color}
Temp: HD : ${color red}${hddtemp /dev/sda}°C${color} $alignr CPU: ${color red}${acpitemp}°C${color}
${color red}===============================================================================${color}
${color green}Дисковое пространство$color
/ ${fs_bar 1,30 /} ${color yellow}${fs_used_perc /}%$color ${fs_used /}/${fs_size /}
boot ${fs_bar 1,30 /boot} ${color yellow}${fs_used_perc /boot}%$color ${fs_used /boot}/${fs_size /boot}
home ${fs_bar 1,30 /home} ${color yellow}${fs_used_perc /home}%$color ${fs_used /home}/${fs_size /home}
${color red}===============================================================================${color}
${color green}Адресация$color
LAN: ${color yellow}${addr eth0}$color IN: ${color green}${downspeed eth0}Кб/с${color} OUT: ${color red}${upspeed eth0}Кб/с${color}
Принято : ${color green}${totaldown eth0}${color} Отдано : ${color red}${totalup eth0}${color}

${color red}===============================================================================${color}

Отменяем выключение монитора

nano /etc/rc.local
sh -c 'setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1'

И просто запускаем conky

conky

 

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *