-
Notifications
You must be signed in to change notification settings - Fork 1
/
.conkyrc
109 lines (103 loc) · 5.41 KB
/
.conkyrc
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
conky.config = {
use_xft = true,
xftalpha = 0.8,
update_interval = 1.0,
total_run_times = 0,
own_window = true,
own_window_transparent = true,
own_window_argb_visual = true,
own_window_type = 'normal',
own_window_class = 'conky-semi',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
background = true,
double_buffer = true,
imlib_cache_size = 0,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
override_utf8_locale = true,
temperature_unit = 'fahrenheit',
maximum_width = 350,
minimum_width = 350,
-- placement
alignment = 'top_left',
gap_x = 3485,
gap_y = 5,
-- default drawing
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
default_bar_width = 150, default_bar_height = 5,
default_graph_width = 150, default_graph_height = 12,
default_gauge_width = 20, default_gauge_height = 20,
-- colors
font = 'Liberation Mono:size=10',
default_color = 'EEEEEE',
color1 = 'AABBFF',
color2 = 'FF993D',
color3 = 'AAAAAA',
-- layouting
template0 = [[${font Liberation Sans:bold:size=11}${color2}\1 ${color3}${hr 2}${font}]],
template1 = [[${color1}\1]],
template2 = [[${goto 100}${color}]],
template3 = [[${goto 180}${color}${alignr}]],
};
conky.text = [[
${template0 Info}
${template1 Date} ${template3}${color3}${time %a,}${color}${time %e %B %G}
${template1 Time} ${template3}${time %T}
${template0 System}
${template1 Hostname} ${template3}${nodename}
${template1 ${sysname}} ${template3}${kernel}-${machine}
${template1 Uptime} ${template3}${uptime_short}
${template1 CPU} ${template3}${freq_g}GHz
${template1 CPU\ Temperature} ${template3}${acpitemp}°C
${template0 Processors}
${template1 Load} ${template2}${loadavg 1} ${template3}${loadgraph}
${template1 Core\ 1} ${template2}${cpu cpu1}% ${template3}${cpubar cpu1}
${template1 Core\ 2} ${template2}${cpu cpu2}% ${template3}${cpubar cpu2}
${template1 Core\ 3} ${template2}${cpu cpu3}% ${template3}${cpubar cpu3}
${template1 Core\ 4} ${template2}${cpu cpu4}% ${template3}${cpubar cpu4}
${template1 Top} ${template2}${top name 1} ${template3}${top cpu 1}
${template0 Memory}
${template1 Memory} ${template2}${memperc}% used ${template3}${mem} / ${memmax}
${template1 Top} ${template2}${top_mem name 1} ${template3}${top_mem mem_vsize 1}
${template0 Filesystem}
${template1 /} ${template2}${fs_free /} free ${template3}${fs_used /} / ${fs_size /}
${template1 IO\ Read} ${template2}${diskio_read} ${template3}${diskiograph_read}
${template1 IO\ Write} ${template2}$diskio_write ${template3}$diskiograph_write
${template1 Top} ${template2}${top_io name 1} ${template3}${top_io io_perc 1}%
${template0 Networking}
${if_existing /proc/net/route wlan0}\
${template1 IP} ${template3}${addr wlan0}
${template1 AP} ${template3}${wireless_essid wlan0}
${template1 Signal} ${template2}${wireless_link_qual_perc wlan0} ${template3}${wireless_link_bar wlan0}
${template1 Download} ${template2}${downspeed wlan0} ${template3}${downspeedgraph wlan0}
${template1 Upload} ${template2}${upspeed wlan0} ${template3}${upspeedgraph wlan0}
${template1 Total Down/Up} ${template3}${totaldown wlan0}↓ / {totalup wlan0}↑
${else}${if_existing /proc/net/route enp0s31f6}\
${template1 Ip} ${template3}${addr enp0s31f6}
${template1 Download} ${template2}${downspeed eth0} ${template3}${downspeedgraph enp0s31f6}
${template1 Upload} ${template2}${upspeed eth0} ${template3}${upspeedgraph enp0s31f6}
${template1 Total Down/Up} ${template3}${totaldown enp0s31f6}↓ / ${totalup enp0s31f6}${endif}${endif}
${template0 Bash\ Shortcuts}\
${template1}
Ctrl-L - Clear screen
Ctrl-A - Go to beginning of line
Ctrl-E - Go to end of line
Alt-B - Go left one word
Ctrl-B - Go left one letter
Alt-F - Go right one word
Ctrl-F - Go right one letter
Ctrl-Shift-X - Hop to beginning & back
Alt-D - Delete all chars after cursor
Alt-T - Swap current and previous word
Ctrl-W - Cut the word before cursor
Ctrl-K - Cut part of the line after cursor
Ctrl-U - Cut part of the line before cursor
Ctrl-Y - Paste clipboard contents
${template0 Listening\ Ports}\
${template1}
${exec sudo netstat -lupnt | grep LISTEN | grep tcp | grep -v tcp6 | grep -v "127.0.0.1\|::1" | awk '{split($4,a,":"); split($7,b,"/"); print b[2]":"a[2]" - PID:"b[1]}'}
]];