Last active
September 21, 2020 21:28
-
-
Save koutsenko/3f4139efdfbeb6a0a8719ea0300069d3 to your computer and use it in GitHub Desktop.
.conkyrc, секция conky.text, kds-desktop-home. Нужно править имя сетевого интерфейс и точки маунта для монитора места
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conky.config = { | |
alignment = 'top_right', | |
background = false, | |
border_width = 1, | |
cpu_avg_samples = 2, | |
default_color = 'white', | |
default_outline_color = 'black', | |
default_shade_color = 'black', | |
double_buffer = true, | |
draw_borders = false, | |
draw_graph_borders = true, | |
draw_outline = false, | |
draw_shades = false, | |
use_xft = true, | |
-- font = 'DejaVu Sans Mono:size=12', | |
font = 'Courier New:size=14', | |
format_human_readable = true, | |
gap_x = 30, | |
gap_y = 60, | |
minimum_height = 200, | |
minimum_width = 300, | |
net_avg_samples = 2, | |
no_buffers = true, | |
out_to_console = false, | |
out_to_stderr = false, | |
extra_newline = false, | |
own_window = true, | |
own_window_colour = '#0000ff', | |
own_window_class = 'Conky', | |
own_window_type = 'normal', | |
own_window_hints = 'undecorated,below,skip_taskbar,sticky,skip_pager', | |
own_window_transparent = true, | |
own_window_argb_visual = true, | |
own_window_argb_value = 127, | |
short_units = true, | |
stippled_borders = 0, | |
update_interval = 1.0, | |
uppercase = false, | |
use_spacer = 'none', | |
show_graph_scale = false, | |
show_graph_range = false | |
} | |
conky.text = [[ | |
${exec whoami}@$nodename $machine $kernel | |
$hr | |
Uptime: $uptime $alignr ${time %H:%M %d.%m.%Y} | |
CPU Freq: ${freq_g}GHz | |
CPU Usage: $cpu% ${cpubar 6} | |
RAM: $mem / $memmax - $memperc% ${membar 6} | |
Swap: $swap / $swapmax - $swapperc% ${swapbar 6} | |
$hr | |
/ ${diskio /dev/sda} ${goto 130}${fs_used /} / ${fs_size /} ${fs_bar 6 /} | |
Data ${diskio /dev/sdb} ${goto 130}${fs_used /media/kds/Data} / ${fs_size /media/kds/Data} ${fs_bar 6 /media/kds/Data} | |
$hr | |
Eth0: D ${downspeed eno1} U ${upspeed eno1} $alignr ${addr eno1} | |
]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Conky for raspberry pi
HOW DO I GET IT?
sudo apt-get install conky -y
2. Download the configuration file for conky:
wget -O /home/pi/.conkyrc https://raw.githubusercontent.com/novaspirit/rpi_conky/master/rpi3_conkyrc
3. To start conky on boot, we need to add a shell script and and configure conky to show on lxdesktop. Create the shell script file:
sudo nano /usr/bin/conky.sh
4. Paste this into the conky.sh file:
#!/bin/sh
(sleep 4s && conky) &
exit 0
5. Create the desktop file (autostart):
sudo nano /etc/xdg/autostart/conky.desktop
6. Paste this into the conky.desktop file:
[Desktop Entry]
Name=conky
Type=Application
Exec=sh /usr/bin/conky.sh
Terminal=false
Comment=system monitoring tool.Categories=Utility;
7. Reboot and check and see if everything is working! 😀
sudo reboot