-
Notifications
You must be signed in to change notification settings - Fork 4
/
.conkyrc
106 lines (85 loc) · 3.96 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
conky.config = {
-- -- Conky settings -- #
background = false,
update_interval = 1,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
imlib_cache_size = 0,
-- -- Colors
color0 = '3b31b6',
color1 = '5b31b6',
color2 = '7b31b6',
color3 = '9b31b6',
-- -- Window specifications -- #
own_window = true,
own_window_type = 'dock',
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_title = 'clicky',
border_inner_margin = 50,
border_outer_margin = 0,
--minimum_size 1100 700
maximum_width = 700,
alignment = 'top_right',
gap_x = 0,
gap_y = 90,
-- -- Graphics settings -- #
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
-- -- Text settings -- #
use_xft = true,
font = 'Ubuntu Mono:size=10',
xftalpha = 0.8,
top_name_width = 10,
--Ícones: ${font Conky Icons by Carelli:size=14}
uppercase = false,
default_color = '#FFFFFF',
--own_window_transparent yes
own_window_colour = '#000000',
minimum_width = 400, minimum_height = 700,
--CORRECT THIS PATH
lua_load = '~/.config/conky/rings.lua',
lua_draw_hook_pre = 'conky_rings',
};
conky.text = [[${font ubuntu Mono:size=12}
${downspeedgraph wlp62s0 30,100 FFFFFF FFFFFF}${color #FFFFFF} Dw ${color0}${downspeed wlp62s0}
${upspeedgraph wlp62s0 30,100 FFFFFF FFFFFF}${color #FFFFFF} Up ${color3}${upspeed wlp62s0}
${offset 110}${voffset 0}${font Ubuntu Mono:size=8}${color #FFFFFF}TDown ${color0}${totaldown wlp62s0}
${offset 5}${voffset 45}${font Ubuntu Mono:size=12}${color #FFFFFF}CPU
${font Ubuntu Mono:size=8}
${offset 125}${voffset 10}${color0}${exec sensors | grep -o 'Core 0: +[0-9].' | sed -r 's/0:|[^0-9]//g'}°
${offset 160}${voffset -20}${color1}${exec sensors | grep -o 'Core 1: +[0-9].' | sed -r 's/1:|[^0-9]//g'}°
${offset 195}${voffset -20}${color2}${exec sensors | grep -o 'Core 2: +[0-9].' | sed -r 's/2:|[^0-9]//g'}°
${offset 230}${voffset -20}${color3}${exec sensors | grep -o 'Core 3: +[0-9].' | sed -r 's/3:|[^0-9]//g'}°
${font Ubuntu Mono:size=10}
${offset 220}${voffset 25}${color}GPU
${offset 195}${voffset 05}${color #1b31b6}${font Ubuntu Mono:size=8}${exec nvidia-settings -t -q [gpu:0]/GPUCoreTemp}°
${goto 20}${font Ubuntu Mono:size=10}${color0}RAM
${goto 20}${color #FFFFFF}$mem/$memmax${font Ubuntu Mono:size=8}${color cccccc}($memperc%)
${font Ubuntu Mono:size=10}
${goto 20}${color0}STORAGE${color #FFFFFF}
${font Ubuntu Mono:size=8}
${goto 20}${exec df -h | grep "/dev/nvme0n1p5" | awk '{ printf "%s of %s \t %s\n", $5, $2, $6 }' }
${goto 20}${exec df -h | grep "/dev/nvme0n1p3" | awk '{ printf "%s of %s \t %s\n", $5, $2, $6 }' }
${goto 20}${exec df -h | grep "/dev/sda1" | awk '{ printf "%s of %s \t %s\n", $5, $2, $6 }' }
${color0}${font Ubuntu Mono:size=10}
${goto 20}Name ${goto 200}Pid${goto 280}Cpu%${goto 360}Mem%${color}
${goto 20}${top name 1} ${goto 185}${top pid 1}${goto 255}${top cpu 1}${goto 335}${top mem 1}
${goto 20}${top name 2} ${goto 185}${top pid 2}${goto 255}${top cpu 2}${goto 335}${top mem 2}
${goto 20}${top name 3} ${goto 185}${top pid 3}${goto 255}${top cpu 3}${goto 335}${top mem 3}
${goto 20}${top name 4} ${goto 185}${top pid 4}${goto 255}${top cpu 4}${goto 335}${top mem 4}
${goto 20}${top name 5} ${goto 185}${top pid 5}${goto 255}${top cpu 5}${goto 335}${top mem 5}
${color0}
${goto 50}Crypto${color}
${goto 50}${execi 60 curl -s https://api.coinmarketcap.com/v1/ticker/ |
jq '.[]|select((.rank|tonumber)<6)|{id,price_usd}|.id+" "+.price_usd'|
awk '{gsub(/"/, "", $0);print substr($1,0,10) "/usd\t" $2}'
}
]];