-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconky.conf
executable file
·122 lines (119 loc) · 3.98 KB
/
conky.conf
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
110
111
112
113
114
115
116
117
118
119
120
121
122
conky.config = {
background = true,
double_buffer = true,
alignment = 'top_right',
border_width = 0,
cpu_avg_samples = 2,
default_color = '#e6e6e6',
default_outline_color = '#ffffff',
default_shade_color = '#ffffff',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
font = 'Liberation Mono:pixelsize=16',
gap_x = 10,
gap_y = 0,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_stderr = false,
out_to_wayland = true,
out_to_x = false,
extra_newline = false,
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_colour = '000000',
own_window_argb_visual = true,
own_window_argb_value = 100,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
minimum_height = 5,
minimum_width = 5,
maximum_width = 500,
net_avg_samples = 2,
update_interval = 1.0,
use_xft = true,
times_in_seconds=true,
template0=[[${texeci 3 nmcli c show nl-170068 | grep GENERAL.STATE}]],
template1=[[${lua_parse divide ${cat /sys/class/thermal/thermal_zone3/temp}}]],
template2=[[${cat /tmp/time_switch2battery}]],
template3=[[${lua_parse battery $template2}]],
template4=[[${cpu cpu1}]],
template5=[[${cpu cpu2}]],
template6=[[${cpu cpu3}]],
template7=[[${cpu cpu4}]],
template8=[[]],
template9=[[${cat /sys/class/net/wlan0/carrier}]],
lua_load='/home/user/.config/conky/parser.lua'
}
conky.text = [[
# TIME DATE
${offset -6}${font Liberation Mono:style=Bold:pixelsize=107}${time %H:%M:%S}${font Liberation Mono:style=Bold:pixelsize=16}
${voffset 15}${time %a %-e %b}\
## WEATHER
${alignr}${texecpi 1800 python3 ~/.config/conky/weather.py}
## BATTERY
${if_match "${acpiacadapter ACAD}"=="off-line"}${voffset 10}\
${color red}BATTERY ${battery_percent BAT1}%${color}\
${alignc}${format_time $template3 "(\h:)(\m:)\s"}\
${alignr}${format_time ${battery_time BAT1} "(\h:)(\m)"}\
${else}${voffset -16}${endif}
#
$hr${voffset 5}
#
# CPU TEMP RAM
## CPU
${if_match $template4>90}${color red}${endif}\
${if_match $template5>90}${color red}${endif}\
${if_match $template6>90}${color red}${endif}\
${if_match $template7>90}${color red}${endif}\
CPU ${lua_parse pad $template4} ${lua_parse pad $template5} ${lua_parse pad $template6} ${lua_parse pad $template7}$color \
## CPU Temp
${if_match $template1>45}${color yellow}${endif}${if_match $template1>55}${color red}${endif}$template1°C$color \
## RAM
${if_match ${to_bytes $mem}>5000000000}${color red}${endif}RAM ${lua_parse removeUnits $mem}$color\
## SSD
${alignr}${if_match ${to_bytes ${fs_free /}}<80000000000}${color red}${endif}SSD ${lua_parse removeUnits ${fs_free /}}$color
#
# TRAFIC BAT PING SSD
## Wi-Fi
${voffset 5}\
${if_match "$template9" == "1"}${wireless_essid wlan0}\
${if_match ${wireless_link_qual_perc wlan0} < 40}${color red}$endif${wireless_link_qual_perc wlan0}%$color\
D${lua_parse nodecimal ${downspeedf wlan0}}k ${goto 235}U${lua_parse nodecimal ${upspeedf wlan0}}k\
${else}${if_match "$template9" == "0"}Wi-Fi disconnect ${else}Wi-Fi OFF ${endif}\
${endif}\
## Ping
${goto 300}\
${if_match "$template9" == "1"}Ping ${texecpi 10 python3 ~/.config/conky/ping.py} \
## VPN
$alignr${if_match "$template0" != ""}${texeci 10 python3 ~/.config/conky/vpn.py}${endif}\
${endif}
#
# LTE
#
${if_match "$template9" == "1"}${voffset 5}${alignc}\
${texecpi 10 python3 ~/.config/conky/lte.py}${endif}
#
${font}\
#
# FREECAD
#
${voffset 5}$hr${voffset 5}
${texeci 300 python3 ~/.config/conky/freecad.py}
# ${lua_parse halfLine ${rss https://blog.freecad.org/rss 600 item_titles 1}} ${rss https://ondsel.com/blog/rss 600 item_titles 1}
${texeci 600 python3 ~/.config/conky/freecad_blog.py}
#
# OPENNET
#
${texecpi 600 python3 ~/.config/conky/opennet.py}
#
# ARCHLINUX
#
${texecpi 300 python3 ~/.config/conky/arch_aur.py}
#
# phpBB Forum
#
${if_match "$template0" != ""}${texecpi 60 python3 ~/.config/conky/phpbb.py}${endif}
]]