System Bar

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): https://github.com/debianmain1/System-Bar

3
Score 63.3%
Description:

Conky System Bar For conky 1.10 ONLY!!
===========

System Info widget for use with Conky
by debianmainuser (07/11/2015)

Based off of Basic V0.7 by Moob (20-10-2015)
This widget draws the Wired Conky interface to display system information

Used some mods from soundrolf (system tab)

Start conky with -q to get rid of conky statfs64 messages when a usb stick/disk is unmounted.-
Prerequisites : lm-sensors, Conky version 1.10.0

debianmainuser Modified function: conky_wired_tab_system for system info-- OS, Kernel, CPU Type & Speed.
07/11/2015 Added: conky_wired_tab_cpu_temp & gpu_temp for CPU temp & GPU temp. Locked CPU Load & Temp to 4 CPUs
(modify if you need less info)
Added: conky_wired_bar_temp to support temp bar functions. (replaces % with C. 100 = 100C)
Removed: Battery tab (for desktop use only)
Removed: Radio tab
Added: semi-transparent surrounding box to allow monitor to be seen with any wallpaper
Changed: Default font type - added new color purple
Sized for 1920x1080 window (change max height below for smaller monitors-designed for Gnome3 top panel use)
More notes are in the System_Bar.lua
debianmainuser Clean up code--added 'blue' theme color--set for 6 CPU.
05/24/2019

INSTALLING:

Just drop the .conky & .fonts into your /home & then start with the conky-startup.sh
You can startup everytime by adding the startup script to your Startup Applications..

chmod 755 ~/.conky/conky-startup.sh if you need to.

And modify this to whatever you want...PLEASE CREDIT the authors (Moob, soundrolf & debianmainuser) if you mod & repost this.

ENJOY!!!!

b1tl0rd

1 month ago

9 9 excellent

Report

erikdubois

2 months ago

We would like to use your conky on ArcoLinux - https://github.com/arcolinux/arcolinux-conky-collection/blob/master/etc/skel/.config/conky/lua/system-bar.lua
We have changed it to our need (Arch Linux) and liking.
We are stuck at line 1019 where we get a message
"attempt to call a nil value (field 'gfind')"

A few lines earlier we fill the variable fs with this script

fs=conky_ownpreexec("df -h | grep ^/dev/s | sort |grep -o '[^ ]*$' ")

With just one partition our output is just a "/".

What is the output supposed to be on your linux distribution and what distribution do you develop on?

Report

C

autocrosser1

2 months ago

Hello Erik....
With only 1 partition the output should be root (/)...Normally I would have 2 partitions ( / & home). Was developed for/on Debian. If this answers your question---great--if not I will be available this weekend to look into it more.

Report

erikdubois

1 month ago

Hi,

we have launched your conky on our Linux distribution. We were not able to solve it (yet) on Arch Linux.
I have installed it on Debian and your luacode works there flawlessly but not on Arch Linux.

I can make educated guesses but I am not nearer to a solution.

Assistance is appreciated

Launch article : https://arcolinux.com/conky-ac1-system-bar-lua-explained/

Thanks

Erik

Report

C

autocrosser1

1 month ago

I will be able to take some time this weekend to look at the problem...Is it just the file display or is there a larger problem?

Report

erikdubois

1 month ago

It points on Arch Linux to a nil value - fs is just empty but it contains a "/". I am wondering different lua versions since yesterday's investigation. On debian Lua is not even installed but there are lua packages. Here we have lua 5.3.

Report

C

autocrosser1

1 month ago

Hmmm.. As this was written several years ago I included a way to define if conky was 1.10 or not.. The detection is towards the bottom of the script change the line:

if info.conkyversiondetection == "1.10" then
df=conky_ownpreexec("df -h | grep ^/dev/s | sort | grep -v 'efi' | grep -o 'sd[^ ]'")

To:

if info.conkyversiondetection > "1.10" then
df=conky_ownpreexec("df -h | grep ^/dev/s | sort | grep -v 'efi' | grep -o 'sd[^ ]'")

And see if that makes a difference. Also, I watched your presentation & saw that I forgot the RGB value for purple.... In the global variables section add:

themes.purple={148,0,211}

To fix that problem.

I will look in more detail this weekend....It is possible that the conky_ownpreexec may be needed to be rewritten--can you verify that this runs correctly?

df -h | grep ^/dev/s | sort |grep -o '[^ ]*$' | grep -v 'efi'

Report

C

autocrosser1

1 month ago

And yes, I am running Lua 5.3 also.

Report

erikdubois

1 month ago

can we communicate via mail. Mine is erik dot dubois adsign gmail dot com

Report

C

autocrosser1

1 month ago

Yes--that would be much easier.

Report

Bloodybeast

3 months ago

9 I give this 9 only for few issues colors seem wacky to me how you have it setup and the nvidia-settings i think should auto be commented out for people with AMD cards now it wont run if its not commented out on AMD card get nvidie-settings error which is normal of not using nvidia card. sure its an easy fix once figured out with autocrosser1 i will give you more 10 likes You have awesome stuff keep it up

Report

C

autocrosser1

3 months ago

I understand the Nvidia vs AMD card thing--I've only used Nvidia for the last 10 years or so & have not explored the temp checking for AMD....That being said, I only create manual config Conkys----I believe that people need to "get under the hood" of the code to see how it works...gives a better understanding of what you are using. Glad you like what you see & good that you have delved into the code to see what you don't need. As you can tell, this Conky type was a collaboration between Moob, Soundrolf & myself......took a couple of months to iron out the bugs to the point it is...I tend to code a few times a month & create whatever I'm "liking" at that time.....feel free to try some of the others--I have a varied collection.

Report

Bloodybeast

3 months ago

Glad to see you still active.. most active conky devs die now from 6 or 10 years ago :) How can i change the color to Blue in this conky?

Report

C

autocrosser1

3 months ago

OK--its a bit more complex as we never included a blue variant. Goto the System_Bar.lua--read thru the top section & just below it you will see a user parameters section....first line is user theme color....keep that in mind & goto "nothing exciting beyond here, trust me" --just below that is the --global variables line. Find what exact color of blue you want in an RGB format, then add it into the "themes" group---format as--"themes.blue={ R,G,B}--look at the way other colors are formatted for example (make sure to add the . before the value). Make sure to leave the "themes.tblue as it is. After you have created your blue theme, go back to the user area & add "blue" as a useable theme color--lastly, modify the use_theme = "blue" & save the lua. You should then be able to reload the Conky & have it in Blue. As you can see, we were thinking about automating the lua....look at the options & change to your liking.

Report

C

autocrosser1

3 months ago

Just so you know--my email is debianmainuser@gmail.com I do beta testing for Debian.

Report

C

autocrosser1

3 months ago

Forgot..there is a lower section that needs mod also....look for the line:

updates=tonumber(conky_parse('${updates}'))

-- default theme colors
themes.tred=.61
themes.tgreen=.81
themes.tblue=1

-- theme colors

And add:
if string.lower(use_theme) == "blue" then
themes.tred=themes.blue[1]
themes.tgreen=themes.blue[2]
themes.tblue=themes.blue[3]

Report

C

autocrosser1

3 months ago

Make VERY sure to follow format: each section is an if---end group.

Report

C

autocrosser1

3 months ago

OK--I played around with it.....This is the revised top segment:

-- user parameters, change them if you want.
use_theme = "blue" -- can be 'red','green','silver','gold','black','maroon','sienna', 'purple', 'white', 'blue' or 'default'
squash_cpu_cores = "no" -- display overall cpu speed, not per core
battery_low_alert = 10 -- low battery level alert, for laptops.
show_cpu = "yes" -- yes, detect CPU's presence and show CPU load
show_cpu_temp = "yes" -- yes, show cpu temp
show_gpu_temp = "yes" -- yes, show gpu temp
show_storage = "yes" -- yes, detect and show attached storage devices
show_memory = "yes" -- yes, show internal and swap memory
show_network = "yes" -- yes, detect and show network information
show_system = "yes" -- yes, show system info's such as cpu + gpu temp, fan speed cpu + chassis, uptime
show_processes = "no" -- yes, show running processes

------------------------------------------------------------------------
-- nothing exciting beyond here, trust me.. (see notes for moding use)
------------------------------------------------------------------------

require 'cairo'

-- global variables
themes={}
themes.red={.65,0,0}
themes.white={256,256,256}
themes.green={0,.65,0}
themes.silver={.752,.752,.752}
themes.gold={.831,.686,.215}
themes.black={.031,.031,.031}
themes.maroon={.501,0,0}
themes.sienna={.627,.321,.176}
themes.blue={0,0,256}
themes.tred=0
themes.tgreen=0
themes.tblue=0

And the lower area:
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)

-- detect hardware
conky_detect_hardware()

updates=tonumber(conky_parse('${updates}'))

-- default theme colors
themes.tred=.61
themes.tgreen=.81
themes.tblue=1

-- theme colors
if string.lower(use_theme) == "red" then
themes.tred=themes.red[1]
themes.tgreen=themes.red[2]
themes.tblue=themes.red[3]
end
if string.lower(use_theme) == "green" then
themes.tred=themes.green[1]
themes.tgreen=themes.green[2]
themes.tblue=themes.green[3]
end
if string.lower(use_theme) == "silver" then
themes.tred=themes.silver[1]
themes.tgreen=themes.silver[2]
themes.tblue=themes.silver[3]
end
if string.lower(use_theme) == "gold" then
themes.tred=themes.gold[1]
themes.tgreen=themes.gold[2]
themes.tblue=themes.gold[3]
end
if string.lower(use_theme) == "black" then
themes.tred=themes.black[1]
themes.tgreen=themes.black[2]
themes.tblue=themes.black[3]
end
if string.lower(use_theme) == "maroon" then
themes.tred=themes.maroon[1]
themes.tgreen=themes.maroon[2]
themes.tblue=themes.maroon[3]
end
if string.lower(use_theme) == "sienna" then
themes.tred=themes.sienna[1]
themes.tgreen=themes.sienna[2]
themes.tblue=themes.sienna[3]
end
if string.lower(use_theme) == "purple" then
themes.tred=themes.purple[1]
themes.tgreen=themes.purple[2]
themes.tblue=themes.purple[3]
end
if string.lower(use_theme) == "blue" then
themes.tred=themes.blue[1]
themes.tgreen=themes.blue[2]
themes.tblue=themes.blue[3]
end

Report back with the results..change the 3rd number to change the intensity of the blue.

Report

12345678910
2
product-maker b1tl0rd Aug 02 2019 9 excellent
9 excellent
product-maker Bloodybeast May 23 2019 9 excellent
I give this 9 only for few issues colors seem wacky to me how you have it setup and the nvidia-settings i think should auto be commented out for people with AMD cards now it wont run if its not commented out on AMD card get nvidie-settings error which is normal of not using nvidia card. sure its an easy fix once figured out with autocrosser1 i will give you more 10 likes You have awesome stuff keep it up
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
GPLv2 or later
version
updated May 25 2019
added Nov 07 2015
downloads 24h
3
page views 24h 13