
System Bar
Source (link to git-repo or to original if based on someone elses unmodified work): https://github.com/debianmain1/System-Bar
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 year ago
Report
erikdubois
1 year ago
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
autocrosser1
1 year ago
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 year ago
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
autocrosser1
1 year ago
Report
erikdubois
1 year ago
Report
autocrosser1
1 year ago
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
autocrosser1
1 year ago
Report
erikdubois
1 year ago
Report
autocrosser1
1 year ago
Report
Bloodybeast
1 year ago
Report
autocrosser1
1 year ago
Report
Bloodybeast
1 year ago
Report
autocrosser1
1 year ago
Report
autocrosser1
1 year ago
Report
autocrosser1
1 year ago
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
autocrosser1
1 year ago
Report
autocrosser1
1 year ago
-- 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