This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
leftside.conf
102 lines (80 loc) · 4.3 KB
/
leftside.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
conky.config = {
background = true,
own_window_argb_visual = true,
own_window_type = 'dock',
own_window = true,
own_window_transparent = false,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
double_buffer = true,
override_utf8_locale = true,
use_xft = true,
font = 'DejaVu Sans Mono:size=10',
xftalpha = 1.0,
update_interval = 0.5,
update_interval_on_battery = 2,
uppercase = false,
default_outline_color = 'black',
default_shade_color = 'black',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
temperature_unit = 'celsius',
text_buffer_size = 256,-- 256 is minimum
no_buffers = true,
short_units = true,
pad_percents = 2,
top_name_width = 26,
alignment = 'middle_left',
gap_x = 10,
gap_y = 0,
minimum_width = 230, minimum_height = 5,
maximum_width = 500,
color0 = 'BBBBBB', -- light_grey
color1 = '00B386', -- teal
color2 = 'F44336', -- red
color3 = 'FF9800', -- orange
color4 = 'FFEB3B', -- yellow
color5 = '8BC34A', -- light_green
color6 = '4CAF50', -- green
own_window_argb_value = 160,
own_window_colour = '000000',
lua_load = '~/.config/conky/luaFunc.lua'
};
conky.text = [[
${font Noto Sans Mono:size=12}${color0}SERVERS${font} ${color1}$hr
${if_match "${execi 10 cat ~/.config/conky/show_servers}"=="on"}
# Replace with your own servers
${color0}HTTP(S):
╠ example${alignr}${if_match "${texeci 60 curl --connect-timeout 3 -sL https://kescher.at/ -w '%{http_code}' -o /dev/null}"=="200"}${color1}Up${else}${alignr}${color2}Down?${endif}${color0}${font}
╠ example${alignr}${if_match "${texeci 60 curl --connect-timeout 3 -sL https://kescher.at/ -w '%{http_code}' -o /dev/null}"=="200"}${color1}Up${else}${alignr}${color2}Down?${endif}${color0}${font}
╠ example${alignr}${if_match "${texeci 60 curl --connect-timeout 3 -sL https://kescher.at/ -w '%{http_code}' -o /dev/null}"=="200"}${color1}Up${else}${alignr}${color2}Down?${endif}${color0}${font}
╠ example${alignr}${if_match "${texeci 60 curl --connect-timeout 3 -sL https://kescher.at/ -w '%{http_code}' -o /dev/null}"=="200"}${color1}Up${else}${alignr}${color2}Down?${endif}${color0}${font}
╠ example${alignr}${if_match "${texeci 60 curl --connect-timeout 3 -sL https://kescher.at/ -w '%{http_code}' -o /dev/null}"=="200"}${color1}Up${else}${alignr}${color2}Down?${endif}${color0}${font}
╚ example${alignr}${if_match "${texeci 60 curl --connect-timeout 3 -sL https://kescher.at/ -w '%{http_code}' -o /dev/null}"=="200"}${color1}Up${else}${alignr}${color2}Down?${endif}${color0}${font}
${color0}Ping:
╠ example${alignr}${if_match "${texeci 60 ~/.config/conky/pingtest kescher.at}" == "Up"}${color1}Up${else}${alignr}${color2}Down?${endif}${color0}${font}
╚ example${alignr}${if_match "${texeci 60 ~/.config/conky/pingtest kescher.at}" == "Up"}${color1}Up${else}${alignr}${color2}Down?${endif}${color0}${font}
${else}
# Adjust line count according to what you have above so it stays aligned when you hide the server list
${color2}${alignc}Server status disabled
${endif}
${font Noto Sans Mono:size=12}${color0}DISK USAGE${font} ${color1}$hr${color0}
# Adjust the below for your own disk id and mount points
/${color1}${alignr}${fs_used /}/${fs_size /}
${fs_bar 10 /}
# Adjust the value below to get your disk temperature.
# for non-NVMe SSDs and HDDs, you can use an hddtemp daemon.
# for NVMe SSDs, you will need Linux 5.5 and up in order to have a temperature reading exposed in hwmon.
${color0}Disk temperature:${alignr}${color1}${hwmon 1 temp 2}°C
${color0}Read: ${color1}${diskio_read /dev/disk/by-id/nvme-KBG30ZMV512G_TOSHIBA_Y89PD562PZYP}/s ${alignr}${color0}Write: ${color1}${diskio_write /dev/disk/by-id/nvme-KBG30ZMV512G_TOSHIBA_Y89PD562PZYP}/s
${color1}${diskiograph_read /dev/disk/by-id/nvme-KBG30ZMV512G_TOSHIBA_Y89PD562PZYP 50,100 00592f 00b386 -t -l} ${alignr}${diskiograph_write /dev/disk/by-id/nvme-KBG30ZMV512G_TOSHIBA_Y89PD562PZYP 50,100 00592f 00b386 -t -l}
${color0}${top_io name 1}
${top_io name 2}
${top_io name 3}
${top_io name 4}
${top_io name 5}
${font Noto Sans Mono:size=12}${color0}NETWORK INTERFACES${font} ${color1}$hr
# Number is maximum amount of interfaces to be shown
${lua_parse drawnetworks 2}\
]];