-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.lua
124 lines (100 loc) · 2.34 KB
/
common.lua
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
123
124
--[[
# **********************************************************************
# Conky Panels / Common Configuration
#
# Author: Vladislav Dmitrievich Turbanov
# Repository: https://github.com/vladipus/conky-panels
# License: BSD
#
# Some elements were based on this theme:
# http://www.teejeetech.in/2014/07/my-conky-themes-update-2.html
# **********************************************************************
]]
-- String interpolation for inserting variables into templates.
function interp(s, tab)
return (s:gsub('(&%b{})', function(w) return tab[w:sub(3, -2)] or w end))
end
getmetatable("").__mod = interp
-- Main window size in pixels. Changing this is not recommended.
width=400
-- The reference position for conkies.
ref_alignment="top_left"
ref_pos_x=(70)
ref_pos_y=(50)
-- My multi-monitor settings
--[[
ref_pos_x=(-width - 20)
ref_pos_y=(-110)
]]
-- Named color definitions in the form of RRGGBB.
-- The main Icy theme.
main_color='FFFFFF'
brand_color='2DACD4'
dimmed_color='A0A0A0'
background_color='000000'
--[[
-- Hot theme. Uncomment to use.
main_color='FF8A00'
brand_color='FF2600'
dimmed_color='B1133B'
background_color='000000'
]]
--[[
-- Vitamin theme. Uncomment to use.
main_color='A6FF00'
brand_color='00DC40'
dimmed_color='009C84'
background_color='000000'
]]
-- The main font.
font='Droid Sans'
-- Conky configuration data.
common_config = {
-- Presentation
own_window=true,
own_window_type="desktop",
own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager",
-- Don't use a background process.
background=false,
-- Graphics
double_buffer=true,
-- Sampling
net_avg_samples=2,
cpu_avg_samples=2,
-- Outlines, Shadows & Borders
draw_borders=false,
draw_graph_borders=true,
draw_outline=false,
draw_shades=false,
no_buffers=true,
out_to_console=false,
out_to_stderr=false,
extra_newline=false,
-- Background
own_window_colour=background_color,
own_window_argb_visual=true,
own_window_argb_value=128,
border_width=10,
-- Size
minimum_width=width,
maximum_width=width,
minimum_height=100,
stippled_borders=0,
update_interval=1.0,
uppercase=false,
use_spacer='none',
-- Graphs
show_graph_scale=false,
show_graph_range=false,
-- Fonts
use_xft=true,
xftalpha=0.1,
font=font .. ':size=12',
-- Colors
default_color='white',
default_outline_color="black",
default_shade_color="black",
color0=main_color,
color1=brand_color,
color2=dimmed_color
}