-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_conkyrc.tmpl
More file actions
38 lines (36 loc) · 2.84 KB
/
dot_conkyrc.tmpl
File metadata and controls
38 lines (36 loc) · 2.84 KB
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
conky.config = {
out_to_x = false,
--own_window = false,
out_to_console = true,
--background = false,
--max_text_width = 0,
--double_buffer = true,
update_interval = 1.0,
total_run_times = 0,
short_units = true,
if_up_strictness = 'address',
--use_spacer = 'left',
--override_utf8_locale = false,
--cpu_avg_samples = 2
}
conky.text = [[
[
#${exec python ~/.config/i3/unread_mail.py}
${exec ~/.conky_player},
${exec ~/.conky_mic_status},
{{ if eq .chezmoi.hostname "intercepteur" }}${exec ~/.conky_bluetooth_status},{{ end }}
{"name":"disk_info","instance":"/","full_text":"/: ${fs_used_perc /}% U, ${fs_free /} F","color": ${if_match ${fs_used_perc /}<60}"\#ffffff"${else} ${if_match ${fs_used_perc /}>80}"\#ff0000"${else}"\#ffa500"${endif} ${endif} },
{"name":"disk_info","instance":"/var/lib/docker","full_text":"/v/l/docker: ${fs_used_perc /var/lib/docker}% U, ${fs_free /var/lib/docker} F","color": ${if_match ${fs_used_perc /var/lib/docker}<60}"\#ffffff"${else} ${if_match ${fs_used_perc /var/lib/docker}>80}"\#ff0000"${else}"\#ffa500"${endif} ${endif} },
{"name":"disk_info","instance":"/home","full_text":"/home: ${fs_used_perc /home}% U, ${fs_free /home} F", "color": ${if_match ${fs_used_perc /home}<60}"\#ffffff"${else} ${if_match ${fs_used_perc /home}>80}"\#ff0000"${else}"\#ffa500"${endif} ${endif} },
#{"name":"disk_info","instance":"/data","full_text":"/data: ${fs_used_perc /data}% U, ${fs_free /data} F", "color": ${if_match ${fs_used_perc /data}<60}"\#ffffff"${else} ${if_match ${fs_used_perc /data}>80}"\#ff0000"${else}"\#ffa500"${endif} ${endif} },
{"full_text":"Updates: ${lines /home/nrm/.conky_checkupdates}", "color": ${if_match ${lines /home/nrm/.conky_checkupdates}>0}"\#b9b9f5"${else}"\#ffffff"${endif}},
{"full_text":"RAM ${memperc}%", "color":${if_match ${memperc}<90}"\#ffffff"${else}"\#ff0000"${endif}},
{"full_text":"CPU ${cpu}%", "color":${if_match ${cpu}<50}"\#ffffff"${else}"\#ff0000"${endif}},
{"full_text":"${battery_short} ${battery_time}", "color":"${if_match ${battery_percent}<20}\#ff0000${else}${if_match ${battery_percent}<50}\#ffa500${else}\#00ff00${endif}${endif}"},
{"name":"ipaddress", "instance":"enp5s0u1u4", "full_text":"E: ${if_up enp5s0u1u4}${addr enp5s0u1u4}${else}down${endif}", "color":"${if_up enp5s0u1u4}\#00ff00${else}\#ff0000${endif}"},
{"name":"ipaddress", "instance":"wlan0", "full_text":"W: ${if_up wlan0}${addr wlan0}${else}down${endif}", "color":"${if_up wlan0}\#00ff00${else}\#ff0000${endif}"},
#{"name":"ipaddress", "instance":"wwp0s20u10c2i12", "full_text":"3G: ${if_up wwp0s20u10c2i12}${addr wwp0s20u10c2i12}${else}down${endif}", "color":"${if_up wwp0s20u10c2i12}\#00ff00${else}\#ff0000${endif}"},
{"name":"loadaverage", "instance":"one", "full_text":"${loadavg 1}", "color":"${if_match ${loadavg 1}<4.0}\#ffffff${else}\#ff0000${endif}"},
{"name":"date", "full_text":"${time %G-%m-%d %H:%M:%S}", "color":"\#ffffff"}
],
]]