ubuntuusers.de

Titel:
conky2
Autor:
Taomon
Datum:
11. September 2017 16:12
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
alex@Taomon:~$ cat .conkyrc2
conky.config = {
alignment = 'top_right',
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
${font openlogos:size=20}${color Red}Debian ${image /home/alex/debian-swirl.png -p 200,40 -s 96x96} 
${color Orange}Stretch${font openlogos:size=20}
${font openlogos:size=20}${color purple}$nodename
${color grey}
$hr
${color purple} ${font openlogos:size=12} ${execi 300 date}
${color grey}
$hr
${font Arial:bold:size=10}${color Tan1}NETZWERK
${color DarkSlateGray}${hr 2}${color Orange}${font}
IP LAN : ${addr eth0} 
IP WLAN: ${addr wlan0}
IP USB: ${addr usb0}
Down: ${color #8844ee} ${downspeed wlan0} kb/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed wlan0} kb/s
    ${color #0000ff}${downspeedgraph wlan0 32,140 ff0000 0000ff 2} ${color #22ccff}${upspeedgraph wlan0 32,140 0000ff ff0000}
    
Down: ${color #8844ee} ${downspeed usb0} kb/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed usb0} kb/s
    ${color #0000ff}${downspeedgraph usb0 32,140 ff0000 0000ff 2} ${color #22ccff}${upspeedgraph usb0 32,140 0000ff ff0000}
${color #e49c16}Verbrauch wlan0: $color
Heute
${color lightgrey} Down: $color ${execi 300 vnstat -i wlan0 | grep "today" | sed 's/|//g' | awk '{print $4,$5}'} ${alignr} ${color lightgrey} Up: ${color} ${execi 300 vnstat -i wlan0 | grep "today" | sed 's/|//g' | awk '{print $6,$7}'}
Diese Woche:
${color lightgrey} Down: $color ${execi 300 vnstat -i wlan0 -w | grep "current week" | sed 's/|//g' | awk '{print $3,$4}'} ${alignr} ${color lightgrey} Up: ${color} ${execi 300 vnstat -w -i wlan0  | grep "current week" | sed 's/|//g' | awk '{print $5,$6}'}
Traffic ${time %B}: 
${color lightgrey} Down: $color ${execi 300 vnstat -i wlan0 -m | grep "`date +"%b '%y"`" | sed 's/|//g'  | awk '{print $3,$4}'} ${alignr} ${color lightgrey} Up: ${color} ${execi 300 vnstat -i wlan0 -m | grep "`date +"%b '%y"`" | sed 's/|//g' | awk '{print $5,$6}'}
$hr
${color grey}Up: $color ${upspeed usb0} ${color grey} - Down:$color ${downspeed usb0}
${color #e49c16}Verbrauch usb0: $color
Heute
${color lightgrey} Down: $color ${execi 300 vnstat -i usb0 | grep "today" | sed 's/|//g' | awk '{print $4,$5}'} ${alignr} ${color lightgrey} Up: ${color} ${execi 300 vnstat -i usb0 | grep "today" | sed 's/|//g' | awk '{print $6,$7}'}
Diese Woche:
${color lightgrey} Down: $color ${execi 300 vnstat -i usb0 -w | grep "current week" | sed 's/|//g' | awk '{print $3,$4}'} ${alignr} ${color lightgrey} Up: ${color} ${execi 300 vnstat -w -i usb0  | grep "current week" | sed 's/|//g' | awk '{print $5,$6}'}
Traffic ${time %B}: 
${color lightgrey} Down: $color ${execi 300 vnstat -i usb0 -m | grep "`date +"%b '%y"`" | sed 's/|//g'  | awk '{print $3,$4}'} ${alignr} ${color lightgrey} Up: ${color} ${execi 300 vnstat -i usb0 -m | grep "`date +"%b '%y"`" | sed 's/|//g' | awk '{print $5,$6}'}
$hr
]]

alex@Taomon:~$