· 5 years ago · Jun 19, 2020, 04:36 AM
1--[[ conky configuration
2 ------------------------------
3 For conky variables and commands use the terminal command:
4
5 man conky
6
7 ------------------------------
8 BunsenLabs conky threads
9
10 Index » Scripts, Tutorials & Tips » Conky - Calendars / Clocks / Time
11 https://forums.bunsenlabs.org/viewtopic.php?id=516
12
13 Open a thread and post conky questions in: Index » GUI & Applications
14 https://forums.bunsenlabs.org/viewforum.php?id=4
15
16 Display your completed conky and codes
17 Index » Scripts, Tutorials & Tips » Show us your conky
18 https://forums.bunsenlabs.org/viewtopic.php?id=512
19
20 ------------------------------
21 BunsenLabs conky scripts help
22 Openbox Menu/Preferences/Conky/Conky Manager Help
23
24 If there are one or more conkys running, it is possible to kill one conky with
25 the following command, IF you used what is between the quotes to start the conky, e.g.:
26 pkill -xf "conky -q -c $HOME/.config/conky/BL-Default.conkyrc"
27]]
28
29
30conky.config = {
31
32-- Window Settings
33 own_window = true,
34 own_window_type = 'desktop',
35 own_window_transparent = true,
36 own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
37 own_window_colour = '000000',
38 own_window_class = 'Conky',
39 own_window_title = 'BunsenLabs Default Conky',
40
41-- ARGB can be used for real transparency
42--own_window_argb_visual = true, -- Options: true|false
43
44-- NOTE that a composite manager is required for real transparency and ARGB will not
45-- work as desired (in most cases) in conjunction with 'own_window_type override'.
46-- Use with: own_window_type = 'normal',
47-- Use with: own_window_transparent = false,
48
49-- When ARGB visuals are enabled, use the following to modify the alpha value. Valid
50-- range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
51--own_window_argb_value = 150,
52
53 minimum_width = 200, minimum_height = 0,-- width | height
54 maximum_width = 200,
55
56 gap_x = 20,-- left | right
57 gap_y = 45,-- up | down
58
59 alignment = 'top_right',
60-- End Window Settings
61
62
63-- Font Settings
64-- Use Xft (anti-aliased font and stuff)
65 use_xft = true,
66
67--font = 'Liberation Mono:bold:size=10',
68--font = 'Liberation Sans:size=10',
69 font = 'Sans-serif:size=10',
70
71-- Alpha of Xft font. Must be a value at or between 1 and 0
72 xftalpha = 1,
73
74-- Force UTF8? requires XFT
75 override_utf8_locale = true,
76
77 uppercase = false,
78-- End Font Settings
79
80
81-- Color Settings
82 draw_shades = false,
83 default_shade_color = '000000',
84
85 draw_outline = false,-- amplifies text if true
86 default_outline_color = '000000',
87
88 default_color = '678b8b', -- Beam green
89--default_color = '656667', -- Waldorf original colour
90--default_color = '7a7a7a', -- Flame & BunsenLabs Grey
91--default_color = '929292', -- BunsenLabs Grey
92--default_color = 'C0C0C0', -- BunsenLabs Silver
93 color0 = 'B0E0E6',-- PowderBlue
94 color1 = '778899',-- LightSlateGray
95 color2 = 'D8BFD8',-- Thistle
96 color3 = '9ACD32',-- YellowGreen
97 color4 = 'FFA07A',-- LightSalmon
98 color5 = 'FFDEAD',-- NavajoWhite
99 color6 = '00BFFF',-- DeepSkyBlue
100 color7 = '5F9EA0',-- CadetBlue
101 color8 = 'BDB76B',-- DarkKhaki
102 color9 = 'C0C0C0',-- Silver
103-- End Color Settings
104
105
106-- Borders Section
107 draw_borders = false,
108-- Stippled borders?
109 stippled_borders = 5,
110-- border margins
111 border_inner_margin = 5,
112 border_outer_margin = 0,
113-- border width
114 border_width = 2,
115-- graph borders
116 draw_graph_borders = false,
117--default_graph_height = 15,
118--default_graph_width = 40,
119-- End Borders Section
120
121
122-- Miscellaneous Section
123-- Boolean value, if true, Conky will be forked to background when started.
124 background = true,
125
126-- Adds spaces around certain objects to stop them from moving other things
127-- around, this only helps if you are using a mono font
128-- Options: right, left or none
129 use_spacer = 'none',
130
131-- Default and Minimum size is 256 - needs more for single commands that
132-- "call" a lot of text IE: bash scripts
133--text_buffer_size = 6144,
134
135-- Subtract (file system) buffers from used memory?
136 no_buffers = true,
137
138-- change GiB to G and MiB to M
139 short_units = true,
140
141-- Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
142-- $image lots. Set to 0 to disable the image cache.
143 imlib_cache_size = 0,
144
145-- Use the Xdbe extension? (eliminates flicker)
146-- It is highly recommended to use own window with this one
147-- so double buffer won't be so big.
148 double_buffer = true,
149
150-- Maximum size of user text buffer, i.e. layout below TEXT line in config file
151-- (default is 16384 bytes)
152--max_user_text = 16384,
153
154-- Desired output unit of all objects displaying a temperature. Parameters are
155-- either "fahrenheit" or "celsius". The default unit is degree Celsius.
156--temperature_unit = 'Fahrenheit',
157
158-- Update interval in seconds
159 update_interval = 1,
160
161-- End Miscellaneous Section
162};
163
164
165conky.text = [[
166S Y S T E M I N F O
167${hr}
168Host:${alignr}${nodename}
169Uptime:${alignr}${uptime}
170RAM:$alignr${mem} / ${memmax}
171Swap usage:${alignr}${swap} / ${swapmax}
172Disk usage:$alignr${fs_used /} / ${fs_size /}
173#Root usage:$alignr${fs_used /} / ${fs_size /}
174#Home usage:$alignr${fs_used /home} / ${fs_size /home}
175CPU Average:${alignr}${cpu cpu0}%
176#
177# Weather information from openweathermap.org can be displayed in conky by
178# using the script $HOME/.config/conky/scripts/bunsenweather.sh. The openweathermap
179# service requires registration in order to receive an API Key, which has to be
180# added to bunsenweather.sh. For further info see this script and the following thread:
181# https://forums.bunsenlabs.org/viewtopic.php?id=2060
182#
183# Calling bunsenweather.sh from conky works by using
184# ${execpi <t> /path/to/bunsenweather.sh "yourlocation"}
185# where <t> is the update interval. If "yourlocation" is not defined, the script
186# sets geolocation based on your IP adress using the website ipinfo.io.
187#
188#W E A T H E R
189#${hr}
190#${execpi 600 $HOME/.config/conky/scripts/bunsenweather.sh}
191
192S H O R T C U T K E Y S
193${hr}
194Alt + F2${alignr}Run Dialog
195Alt + F3${alignr}Alt Menu
196Super${alignr}Main Menu
197Super + Tab${alignr}Client Menu
198Super + t${alignr}Terminal
199Super + f${alignr}File Manager
200Super + e${alignr}Editor
201Super + m${alignr}Media Player
202Super + w${alignr}Web Browser
203Super + h${alignr}Task Manager
204Super + l${alignr}Lock Screen
205Super + v${alignr}Volume Control
206Super + x${alignr}Logout
207PrtSc${alignr}Screenshot
208]];