From c018ee44fe8fcc6553589e47c5f925ee8f5af2bc Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Thu, 24 May 2018 18:18:12 +0200 Subject: Add Conky configuration file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not sure branches are the right way to handle multiple setups… We'll see how this goes. --- .conkyrc | 217 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 217 insertions(+) create mode 100644 .conkyrc diff --git a/.conkyrc b/.conkyrc new file mode 100644 index 0000000..67ba045 --- /dev/null +++ b/.conkyrc @@ -0,0 +1,217 @@ +--[[ conky configuration + ------------------------------ + For conky variables and commands use the terminal command: + + man conky + + ------------------------------ + BunsenLabs conky threads + + Index » Scripts, Tutorials & Tips » Conky - Calendars / Clocks / Time + https://forums.bunsenlabs.org/viewtopic.php?id=516 + + Open a thread and post conky questions in: Index » GUI & Applications + https://forums.bunsenlabs.org/viewforum.php?id=4 + + Display your completed conky and codes + Index » Scripts, Tutorials & Tips » Show us your conky + https://forums.bunsenlabs.org/viewtopic.php?id=512 + + ------------------------------ + BunsenLabs conky scripts help + Openbox Menu/Preferences/Conky/Conky Manager Help + + If there are one or more conkys running, it is possible to kill one conky with + the following command, IF you used what is between the quotes to start the conky, e.g.: + pkill -xf "conky -q -c $HOME/.config/conky/BL-Default.conkyrc" +]] + + +conky.config = { + +-- Window Settings + own_window = true, + own_window_type = 'desktop', + own_window_transparent = true, + own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky', + own_window_colour = '000000', + own_window_class = 'Conky', + own_window_title = 'BunsenLabs Default Conky', + +-- ARGB can be used for real transparency +--own_window_argb_visual = true, -- Options: true|false + +-- NOTE that a composite manager is required for real transparency and ARGB will not +-- work as desired (in most cases) in conjunction with 'own_window_type override'. +-- Use with: own_window_type = 'normal', +-- Use with: own_window_transparent = false, + +-- When ARGB visuals are enabled, use the following to modify the alpha value. Valid +-- range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity. +--own_window_argb_value = 150, + + minimum_width = 200, minimum_height = 0,-- width | height + maximum_width = 200, + + gap_x = 20,-- left | right + gap_y = 45,-- up | down + + alignment = 'top_right', +-- End Window Settings + + +-- Font Settings +-- Use Xft (anti-aliased font and stuff) + use_xft = true, + +--font = 'Liberation Mono:bold:size=10', +--font = 'Liberation Sans:size=10', + font = 'Sans-serif:size=10', + +-- Alpha of Xft font. Must be a value at or between 1 and 0 + xftalpha = 1, + +-- Force UTF8? requires XFT + override_utf8_locale = true, + + uppercase = false, +-- End Font Settings + + +-- Color Settings + draw_shades = false, + default_shade_color = '000000', + + draw_outline = false,-- amplifies text if true + default_outline_color = '000000', + + default_color = '678b8b', -- Beam green +--default_color = '656667', -- Waldorf original colour +--default_color = '7a7a7a', -- Flame & BunsenLabs Grey +--default_color = '929292', -- BunsenLabs Grey +--default_color = 'C0C0C0', -- BunsenLabs Silver + color0 = 'B0E0E6',-- PowderBlue + color1 = '778899',-- LightSlateGray + color2 = 'D8BFD8',-- Thistle + color3 = '9ACD32',-- YellowGreen + color4 = 'FFA07A',-- LightSalmon + color5 = 'FFDEAD',-- NavajoWhite + color6 = '00BFFF',-- DeepSkyBlue + color7 = '5F9EA0',-- CadetBlue + color8 = 'BDB76B',-- DarkKhaki + color9 = 'C0C0C0',-- Silver +-- End Color Settings + + +-- Borders Section + draw_borders = false, +-- Stippled borders? + stippled_borders = 5, +-- border margins + border_inner_margin = 5, + border_outer_margin = 0, +-- border width + border_width = 2, +-- graph borders + draw_graph_borders = true, +--default_graph_height = 15, +--default_graph_width = 40, +-- End Borders Section + + +-- Miscellaneous Section +-- Boolean value, if true, Conky will be forked to background when started. + background = true, + +-- Adds spaces around certain objects to stop them from moving other things +-- around, this only helps if you are using a mono font +-- Options: right, left or none + use_spacer = 'none', + +-- Default and Minimum size is 256 - needs more for single commands that +-- "call" a lot of text IE: bash scripts +--text_buffer_size = 6144, + +-- Subtract (file system) buffers from used memory? + no_buffers = true, + +-- change GiB to G and MiB to M + short_units = true, + +-- Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use +-- $image lots. Set to 0 to disable the image cache. + imlib_cache_size = 0, + +-- Use the Xdbe extension? (eliminates flicker) +-- It is highly recommended to use own window with this one +-- so double buffer won't be so big. + double_buffer = true, + +-- Maximum size of user text buffer, i.e. layout below TEXT line in config file +-- (default is 16384 bytes) +--max_user_text = 16384, + +-- Desired output unit of all objects displaying a temperature. Parameters are +-- either "fahrenheit" or "celsius". The default unit is degree Celsius. +--temperature_unit = 'Fahrenheit', + +-- Update interval in seconds + update_interval = 1, + +-- End Miscellaneous Section + + template0 = [[${downspeedf \1}KiB/s ↓↑ ${upspeedf \1}KiB/s\ +${goto 60}${downspeedgraph \1 11,70 678b8b ffffff -t}${goto 135}${upspeedgraph \1 11,70 678b8b ffffff -t}]], + show_graph_range = yes, + show_graph_scale = yes +}; + + +conky.text = [[ +S Y S T E M I N F O +${hr} +Host:${alignr}${nodename} +Uptime:${alignr}${uptime} +CPU:${goto 60}${freq_g 1}${goto 135}${freq_g 2} +${goto 60}${cpugraph cpu1 11,70 678b8b ffffff -t}\ +${goto 135}${cpugraph cpu2 11,70 678b8b ffffff -t} +RAM:${goto 60}${mem}${goto 130}/${alignr}${memmax} +${goto 60}${memgraph 12,0 678b8b ffffff -t} + Swap${goto 60}${swap}${goto 130}/${alignr}${swapmax} +Disk:${goto 60}${fs_used /}${goto 130}/${alignr}${fs_size /} + I/O${goto 60}${diskiograph 12,0 678b8b ffffff -t} +Net:${alignr}\ +${if_match "${gw_iface}" == "wlp2s0"}${template0 wlp2s0}${else}${template0 enp3s0}${endif} +Entropy:${alignr}${entropy_avail}b / ${entropy_poolsize}b +# Weather information from openweathermap.org can be displayed in conky by +# using the script $HOME/.config/conky/scripts/bunsenweather.sh. The openweathermap +# service requires registration in order to receive an API Key, which has to be +# added to bunsenweather.sh. For further info see this script and the following thread: +# https://forums.bunsenlabs.org/viewtopic.php?id=2060 +# +# Calling bunsenweather.sh from conky works by using +# ${execpi /path/to/bunsenweather.sh "yourlocation"} +# where is the update interval. If "yourlocation" is not defined, the script +# sets geolocation based on your IP adress using the website ipinfo.io. +# +#W E A T H E R +#${hr} +#${execpi 600 $HOME/.config/conky/scripts/bunsenweather.sh} + +S H O R T C U T K E Y S +${hr} +Alt + F2${alignr}Run Dialog +Alt + F3${alignr}Alt Menu +Super${alignr}Main Menu +Super + Tab${alignr}Client Menu +Super + t${alignr}Terminal +Super + f${alignr}File Manager +Super + e${alignr}Editor +Super + m${alignr}Media Player +Super + w${alignr}Web Browser +Super + h${alignr}Task Manager +Super + l${alignr}Lock Screen +Super + v${alignr}Volume Control +Super + x${alignr}Logout +PrtSc${alignr}Screenshot +]]; -- cgit v1.2.3 From 393333834ab5d9c9bc676f86c1e5eac514593ef2 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Thu, 24 May 2018 18:34:51 +0200 Subject: Update CPU display in .conkyrc This will make it easier to write a script to generate these graphs from nproc. --- .conkyrc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.conkyrc b/.conkyrc index 67ba045..c4acd15 100644 --- a/.conkyrc +++ b/.conkyrc @@ -160,8 +160,8 @@ conky.config = { -- End Miscellaneous Section - template0 = [[${downspeedf \1}KiB/s ↓↑ ${upspeedf \1}KiB/s\ -${goto 60}${downspeedgraph \1 11,70 678b8b ffffff -t}${goto 135}${upspeedgraph \1 11,70 678b8b ffffff -t}]], + template0 = [[${goto 60}\${upspeedf \1}KiB/s ↑${goto 120}${upspeedgraph \1 11,0 678b8b ffffff -t}\ +${goto 60}\${downspeedf \1}KiB/s ↓${goto 120}${downspeedgraph \1 11,0 678b8b ffffff -t}]], show_graph_range = yes, show_graph_scale = yes }; @@ -172,16 +172,15 @@ S Y S T E M I N F O ${hr} Host:${alignr}${nodename} Uptime:${alignr}${uptime} -CPU:${goto 60}${freq_g 1}${goto 135}${freq_g 2} -${goto 60}${cpugraph cpu1 11,70 678b8b ffffff -t}\ -${goto 135}${cpugraph cpu2 11,70 678b8b ffffff -t} +CPU:\ +${goto 60}${freq_g 1}${goto 100}${cpugraph cpu1 11,0 678b8b ffffff -t} +${goto 60}${freq_g 2}${goto 100}${cpugraph cpu2 11,0 678b8b ffffff -t} RAM:${goto 60}${mem}${goto 130}/${alignr}${memmax} -${goto 60}${memgraph 12,0 678b8b ffffff -t} +${goto 60}${memgraph 11,0 678b8b ffffff -t} Swap${goto 60}${swap}${goto 130}/${alignr}${swapmax} Disk:${goto 60}${fs_used /}${goto 130}/${alignr}${fs_size /} - I/O${goto 60}${diskiograph 12,0 678b8b ffffff -t} -Net:${alignr}\ -${if_match "${gw_iface}" == "wlp2s0"}${template0 wlp2s0}${else}${template0 enp3s0}${endif} + I/O${goto 60}${diskiograph 11,0 678b8b ffffff -t} +Net:${if_match "${gw_iface}" == "wlp2s0"}${template0 wlp2s0}${else}${template0 enp3s0}${endif} Entropy:${alignr}${entropy_avail}b / ${entropy_poolsize}b # Weather information from openweathermap.org can be displayed in conky by # using the script $HOME/.config/conky/scripts/bunsenweather.sh. The openweathermap -- cgit v1.2.3 From 4cd13670ec14dfcd1054ff763e18ff5694e45145 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Fri, 25 May 2018 18:55:21 +0200 Subject: Touch up .conkyrc - reduce font size to save lines - increase graph height - use only 2 tab stops (30 and 100) --- .conkyrc | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.conkyrc b/.conkyrc index c4acd15..a9b67ea 100644 --- a/.conkyrc +++ b/.conkyrc @@ -66,7 +66,7 @@ conky.config = { --font = 'Liberation Mono:bold:size=10', --font = 'Liberation Sans:size=10', - font = 'Sans-serif:size=10', + font = 'Sans-serif:size=9', -- Alpha of Xft font. Must be a value at or between 1 and 0 xftalpha = 1, @@ -160,8 +160,8 @@ conky.config = { -- End Miscellaneous Section - template0 = [[${goto 60}\${upspeedf \1}KiB/s ↑${goto 120}${upspeedgraph \1 11,0 678b8b ffffff -t}\ -${goto 60}\${downspeedf \1}KiB/s ↓${goto 120}${downspeedgraph \1 11,0 678b8b ffffff -t}]], + template0 = [[${goto 30}\${upspeedf \1}KiB/s ↑${goto 100}${upspeedgraph \1 12,0 678b8b ffffff -t}\ +${goto 30}\${downspeedf \1}KiB/s ↓${goto 100}${downspeedgraph \1 12,0 678b8b ffffff -t}]], show_graph_range = yes, show_graph_scale = yes }; @@ -172,15 +172,16 @@ S Y S T E M I N F O ${hr} Host:${alignr}${nodename} Uptime:${alignr}${uptime} -CPU:\ -${goto 60}${freq_g 1}${goto 100}${cpugraph cpu1 11,0 678b8b ffffff -t} -${goto 60}${freq_g 2}${goto 100}${cpugraph cpu2 11,0 678b8b ffffff -t} -RAM:${goto 60}${mem}${goto 130}/${alignr}${memmax} -${goto 60}${memgraph 11,0 678b8b ffffff -t} - Swap${goto 60}${swap}${goto 130}/${alignr}${swapmax} -Disk:${goto 60}${fs_used /}${goto 130}/${alignr}${fs_size /} - I/O${goto 60}${diskiograph 11,0 678b8b ffffff -t} -Net:${if_match "${gw_iface}" == "wlp2s0"}${template0 wlp2s0}${else}${template0 enp3s0}${endif} +CPU: +${goto 30}${freq_g 1}${goto 100}${cpugraph cpu1 12,0 678b8b ffffff -t} +${goto 30}${freq_g 2}${goto 100}${cpugraph cpu2 12,0 678b8b ffffff -t} +RAM:${goto 100}${mem}${goto 150}/${alignr}${memmax} +${goto 100}${memgraph 12,0 678b8b ffffff -t} +${goto 30}Swap${goto 100}${swap}${goto 150}/${alignr}${swapmax} +Disk:${goto 100}${fs_used /}${goto 150}/${alignr}${fs_size /} +${goto 30}I/O${goto 100}${diskiograph 12,0 678b8b ffffff -t} +Net: +${if_match "${gw_iface}" == "wlp2s0"}${template0 wlp2s0}${else}${template0 enp3s0}${endif} Entropy:${alignr}${entropy_avail}b / ${entropy_poolsize}b # Weather information from openweathermap.org can be displayed in conky by # using the script $HOME/.config/conky/scripts/bunsenweather.sh. The openweathermap -- cgit v1.2.3 From 1d48c2add354d348cc08b5ad7ba66bc81bd3e035 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Thu, 7 Jun 2018 17:58:51 +0200 Subject: Cleanup some stuff - why the hell did I put those backslashes? - align entropy stuff with the rest --- .conkyrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.conkyrc b/.conkyrc index a9b67ea..35687d1 100644 --- a/.conkyrc +++ b/.conkyrc @@ -160,8 +160,8 @@ conky.config = { -- End Miscellaneous Section - template0 = [[${goto 30}\${upspeedf \1}KiB/s ↑${goto 100}${upspeedgraph \1 12,0 678b8b ffffff -t}\ -${goto 30}\${downspeedf \1}KiB/s ↓${goto 100}${downspeedgraph \1 12,0 678b8b ffffff -t}]], + template0 = [[${goto 30}${upspeedf \1}KiB/s ↑${goto 100}${upspeedgraph \1 12,0 678b8b ffffff -t}\ +${goto 30}${downspeedf \1}KiB/s ↓${goto 100}${downspeedgraph \1 12,0 678b8b ffffff -t}]], show_graph_range = yes, show_graph_scale = yes }; @@ -182,7 +182,7 @@ Disk:${goto 100}${fs_used /}${goto 150}/${alignr}${fs_size /} ${goto 30}I/O${goto 100}${diskiograph 12,0 678b8b ffffff -t} Net: ${if_match "${gw_iface}" == "wlp2s0"}${template0 wlp2s0}${else}${template0 enp3s0}${endif} -Entropy:${alignr}${entropy_avail}b / ${entropy_poolsize}b +Entropy:${goto 100}${entropy_avail}b${goto 150}/${alignr}${entropy_poolsize}b # Weather information from openweathermap.org can be displayed in conky by # using the script $HOME/.config/conky/scripts/bunsenweather.sh. The openweathermap # service requires registration in order to receive an API Key, which has to be -- cgit v1.2.3 From a44d7e7880f9902494af069c18492d5dfbed8d06 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 20 Jun 2018 10:46:07 +0200 Subject: Change spacing for throughput counters Otherwise they start clipping into graphs when the throughput reaches megabytes. --- .conkyrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.conkyrc b/.conkyrc index 35687d1..7a0fafb 100644 --- a/.conkyrc +++ b/.conkyrc @@ -160,8 +160,8 @@ conky.config = { -- End Miscellaneous Section - template0 = [[${goto 30}${upspeedf \1}KiB/s ↑${goto 100}${upspeedgraph \1 12,0 678b8b ffffff -t}\ -${goto 30}${downspeedf \1}KiB/s ↓${goto 100}${downspeedgraph \1 12,0 678b8b ffffff -t}]], + template0 = [[${goto 20}${upspeedf \1}KiB/s${goto 90}↑${goto 100}${upspeedgraph \1 12,0 678b8b ffffff -t}\ +${goto 20}${downspeedf \1}KiB/s${goto 90}↓${goto 100}${downspeedgraph \1 12,0 678b8b ffffff -t}]], show_graph_range = yes, show_graph_scale = yes }; -- cgit v1.2.3