aboutsummaryrefslogtreecommitdiff
path: root/settings.lua
blob: b0f84ed6d58b3687d67ead7ff4de320814c6d93d (plain)
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
require("colors")

--[[
possible values of THEME
    blue dark         blue light
    deepblue dark     deepblue light
    green dark        green light
    emerald dark      emerald light
    yellow  dark      yellow light
    purple dark       purple light
    violet dark       violet light
    crimson dark      crimson light
    maroon dark       maroon light
    pink dark         pink light
    cyan  dark        cyan light
    aquamarine dark   aquamarine light
    monochrome dark   monochrome light
    gruvbox  dark     gruvbox light
    contrast dark     contrast light
]]
THEME = "monochrome dark"     -- choose one of the above

--[[
waiting time before starting conky
this prevents issues when conky is launched at startup
]]
startup_delay = 5           -- secondes

--[[
change colors when a value exceeds defined thresholds
]]
change_color_on_threshold = true

--[[
CPU Cores (threads really)
valid values are: 0, 2, 4, 6, 8, 10, 12
]]
cpu_cores = 16

--[[
EDIT THIS to match your network interface.
You can find out by executing `ifconfig` or `ip link`.
It might be "wlan0", "eth0", "wlp3s0" or something else
]]
net_interface = "enp6s0"

--[[
this depends on your own internet speed
]]
download_rate_maximum = 1000     -- kb
upload_rate_maximum   = 1000     -- kb

--[[
Default font used by the convinient functions like write() and write_bold()
You can use _write() to choose another font
]]
main_font = "Mono"

--[[
the public ip is fetched from the internet.
There is no need to refresh it every second like the other values
advice: use the variable public_ip instead of the function public_ip()
which is called every `public_ip_refresh_rate` secondes

WARNING: this feature exploits third party services,
therefore we cannot garantee your privacy if you turn it on
]]
use_public_ip = false
public_ip_refresh_rate = 60     -- secondes

----------------------------------------------

colors = get_color_table(THEME)

if change_color_on_threshold == false then
    colors.warn  = colors.fg
    colors.critic = colors.fg
end

-- threshold variables are used to change the colors of the indicators
-- by using the functions color_frompercent(perc) and color_frompercent_reverse(perc)
threshold_warning          = 60
threshold_critical         = 80
battery_threshold_warning  = 30
battery_threshold_critical = 18