ubuntuusers.de

Titel:
conky1
Autor:
Taomon
Datum:
11. September 2017 16:09
Aktionen:
Code:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
alex@Taomon:~$ cat .conkyrc
conky.config = {
alignment = 'top_left',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = 'DejaVu Sans Mono:size=10',
gap_x = 5,
gap_y = 60,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = false,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
double_buffer = true,
own_window = true,
own_window_transparent = true,
own_window_class = 'Conky',
own_window_type = 'desktop',
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
show_graph_scale = false,
show_graph_range = false
}


conky.text = [[
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color lightgrey}File systems:
${color} /home $color${fs_used /home}/${fs_size /home} ${color orange} ${fs_bar 6 /home}

${color lightgrey}$hr
${color #e49c16}Verbrauch usb0+wlan0: $color
Heute
${color lightgrey} Down: $color ${execi 300 vnstat -i usb0+wlan0 | grep "today" | sed 's/|//g' | awk '{print $4,$5}'} ${alignr} ${color lightgrey} Up: ${color} ${execi 300 vnstat -i usb0+wlan0 | grep "today" | sed 's/|//g' | awk '{print $6,$7}'}
Diese Woche:
${color lightgrey} Down: $color ${execi 300 vnstat -i usb0+wlan0 -w | grep "current week" | sed 's/|//g' | awk '{print $3,$4}'} ${alignr} ${color lightgrey} Up: ${color} ${execi 300 vnstat -w -i usb0+wlan0  | grep "current week" | sed 's/|//g' | awk '{print $5,$6}'}
Traffic ${time %B}: 
Down:  ${execi 300 vnstat -i usb0+wlan0 -m | grep "`date +"%b '%y"`" | sed 's/|//g'  | awk '{print $3,$4}'} ${alignr} ${color lightgrey} Up: ${color} ${execi 300 vnstat -i usb0+wlan0 -m | grep "`date +"%b '%y"`" | sed 's/|//g' | awk '{print $5,$6}'}
$hr 

${color yellow}Festplatten-Temp:$color
${color red} ${execi 300 echo $(date "+%d.%m.%y|%H:%M:%S")>> /home/alex/.conky.log && /bin/nc localhost 7634 | sed "s:|/:/:g;s:|C|:°C\n:g;s/|/: /g" | cut -c31-40 | tee -a /home/alex/.conky.log}
${color grey}$hr
Name              PID   CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$hr
${color lightgrey}CPU-Temp:
${color grey} $color CPU1: ${color red} ${execi 50 sensors | grep -i 'core 0' | cut -c15-17}  ${color grey}$color CPU2: ${color red} ${execi 50 sensors | grep -i 'core 1' | cut -c15-17}
${color lightgrey}$hr
#${color lightgrey}Grafikkarte-Temp
#${color red} ${alignr}${nvidia temp} C && /usr/bin/nvidia-settings -tq gpucoretemp >> /home/alex/.nvidia.log
#${color lightgrey}$hr
${color lightgrey}Grafikkarte-Temp
${color red} ${execi 3000 echo $(date "+%d.%m.%y|%H:%M:%S")>> /home/alex/.nvidia.log  &&  /usr/bin/nvidia-settings -tq gpucoretemp | head -n1 | tee -a /home/alex/.nvidia.log} 
${color grey} $hr 


]]


alex@Taomon:~$