My Conky ... feel free to adapt/change and use it

Message
Author
User avatar
jeanpaulberes
Posts: 36
Joined: Wed Dec 19, 2018 11:56 am

My Conky ... feel free to adapt/change and use it

#1 Post by jeanpaulberes »

My Conky .. feel free to use it ...
------

Code: Select all

# By Jean Paul BERES
# My adapted/changed Conky
# 18 Dec. 2018

double_buffer yes
update_interval 2
background yes

own_window yes

# own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_type override
own_window_argb_visual yes
own_window_argb_value 75
out_to_console no
own_window_transparent no
own_window_class conky-semi
use_xft yes
xftfont cure:size=10

#use_xft yes
#xftfont Sansation:size=9
xftfont Rounded Elegance:size=10
xftalpha 0
update_interval 2
cpu_avg_samples 2
net_avg_samples 2
double_buffer yes
maximum_width 320
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 1
border_width 0
default_color white
default_shade_color white
default_outline_color white
alignment top_right

use_spacer left
no_buffers yes
uppercase no

color0 white

color2 white
color3 1793d0


pad_percents 2
top_name_width 7
minimum_size 320 700

gap_x 10
gap_y 30

lua_load allcombined.lua

own_window_colour 000000
TEXT
#-----------------------System information-----------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM INFORMATION ${color}${hr 2}${font}
${font}${color1}${offset 9}${execi 3600 cat /etc/mx-version}
#${goto 80}${color #34BE5B}${font Ubuntu-Title:size=11}Manjaro${font}${color} | xfce 4.13
${goto 10}Kernel: $kernel $machine
${goto 10}${time %a %d %b %Y - %H:%M}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${font}${color}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
${color lightgrey}Temperature:${hwmon 1 temp 1}°C
# CPU0
Avg.${goto 50} : ${cpu cpu0}% ${lua gradbar {100, 135, "${cpu cpu0}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 1} MHz
# CPU1
CPU-1${goto 50} : ${cpu cpu1}% ${lua gradbar {100, 150, "${cpu cpu1}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 2} MHz
# CPU2
CPU-2${goto 50} : ${cpu cpu2}% ${lua gradbar {100, 165, "${cpu cpu2}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 3} MHz
# CPU3
CPU-3${goto 50} : ${cpu cpu3}% ${lua gradbar {100, 180, "${cpu cpu3}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 4} MHz
# CPU4
CPU-4${goto 50} : ${cpu cpu4}% ${lua gradbar {100, 195, "${cpu cpu4}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 5} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax 
${voffset -6}
${lua gradbar {6, 310, "${memperc}", 200, 310, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used

#-----------------------Processes & Load information-----------------------
${voffset +1}
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES & LOAD ${color}${hr 2}${font}
${offset 5}${voffset 5}${color}Avg. Load: ${loadavg 1}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up wlan0}${goto 10}Wireless: ${color3} wlan0${color}${goto 160}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed wlan0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed wlan0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup wlan0}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown wlan0}
${goto 14}${upspeedgraph wlan0  50,140 000000 FFBF00}${goto 180}${downspeedgraph wlan0 50,140 000000 00FF00}$
${voffset -1}${endif}${if_up eth0}${goto 10}Ethernet: ${color3} eth0${color}${goto 160}     IP local:${color3}${addr eth0}
${hr 1}# By Jean Paul BERES
# My adapted/changed Conky
# 18 Dec. 2018

double_buffer yes
update_interval 2
background yes

own_window yes

# own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_type override
own_window_argb_visual yes
own_window_argb_value 75
out_to_console no
own_window_transparent no
own_window_class conky-semi
use_xft yes
xftfont cure:size=10

#use_xft yes
#xftfont Sansation:size=9
xftfont Rounded Elegance:size=10
xftalpha 0
update_interval 2
cpu_avg_samples 2
net_avg_samples 2
double_buffer yes
maximum_width 320
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 1
border_width 0
default_color white
default_shade_color white
default_outline_color white
alignment top_right

use_spacer left
no_buffers yes
uppercase no

color0 white

color2 white
color3 1793d0


pad_percents 2
top_name_width 7
minimum_size 320 700

gap_x 10
gap_y 30

lua_load allcombined.lua

own_window_colour 000000
TEXT
#-----------------------System information-----------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM INFORMATION ${color}${hr 2}${font}
${font}${color1}${offset 9}${execi 3600 cat /etc/mx-version}
#${goto 80}${color #34BE5B}${font Ubuntu-Title:size=11}Manjaro${font}${color} | xfce 4.13
${goto 10}Kernel: $kernel $machine
${goto 10}${time %a %d %b %Y - %H:%M}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${font}${color}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
${color lightgrey}Temperature:${hwmon 1 temp 1}°C
# CPU0
Avg.${goto 50} : ${cpu cpu0}% ${lua gradbar {100, 135, "${cpu cpu0}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 1} MHz
# CPU1
CPU-1${goto 50} : ${cpu cpu1}% ${lua gradbar {100, 150, "${cpu cpu1}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 2} MHz
# CPU2
CPU-2${goto 50} : ${cpu cpu2}% ${lua gradbar {100, 165, "${cpu cpu2}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 3} MHz
# CPU3
CPU-3${goto 50} : ${cpu cpu3}% ${lua gradbar {100, 180, "${cpu cpu3}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 4} MHz
# CPU4
CPU-4${goto 50} : ${cpu cpu4}% ${lua gradbar {100, 195, "${cpu cpu4}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 5} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax 
${voffset -6}
${lua gradbar {6, 310, "${memperc}", 200, 310, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used

#-----------------------Processes & Load information-----------------------
${voffset +1}
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES & LOAD ${color}${hr 2}${font}
${offset 5}${voffset 5}${color}Avg. Load: ${loadavg 1}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up wlan0}${goto 10}Wireless: ${color3} wlan0${color}${goto 160}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed wlan0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed wlan0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup wlan0}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown wlan0}
${goto 14}${upspeedgraph wlan0  50,140 000000 FFBF00}${goto 180}${downspeedgraph wlan0 50,140 000000 00FF00}$
${voffset -1}${endif}${if_up eth0}${goto 10}Ethernet: ${color3} eth0${color}${goto 160}     IP local:${color3}${addr eth0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed eth0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed eth0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup eth0}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown eth0}
${goto 14}${upspeedgraph eth0  50,140 000000 FFBF00}${goto 180}${downspeedgraph eth0 50,140 000000 00FF00}$
${voffset -1}${endif}
-------
Transparent Background ;-)
Screenshot.png
You do not have the required permissions to view the files attached to this post.

User avatar
Eadwine Rose
Administrator
Posts: 11972
Joined: Wed Jul 12, 2006 2:10 am

Re: My Conky ... feel free to adapt/change and use it

#2 Post by Eadwine Rose »

You can put those lines between the code /code (with [ and ] around each code) to make the lines show up nicely :)

It is the button next to the quote one, the </>
MX-23.2_x64 July 31 2023 * 6.1.0-20-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
MAYBL8
MX Packager
Posts: 599
Joined: Thu Dec 31, 2009 2:48 pm

Re: My Conky ... feel free to adapt/change and use it

#3 Post by MAYBL8 »

I have a question.
Is three instructions on how to apply these kinds of files to my conky on mx. I guess specific MX instructions?
I will look at the MX help files.
Thanks for dealing with my ignorance.

User avatar
svx_biker
Posts: 31
Joined: Thu Dec 20, 2018 5:34 pm

Re: My Conky ... feel free to adapt/change and use it

#4 Post by svx_biker »

Just put the lines into a directoy in ~/.conky and the MX tweaks will give you access to it the same way as the other ones.
Machine: Acer Aspire S5-371
CPU: Intel Core i3-7100U with 8GB RAM
MX-19 Beta-2 with Kernel 4.19.0-6

User avatar
MAYBL8
MX Packager
Posts: 599
Joined: Thu Dec 31, 2009 2:48 pm

Re: My Conky ... feel free to adapt/change and use it

#5 Post by MAYBL8 »

Great. Thanks
That gives me a good start.
Now I just have to learn how to make it look like yours with all the info in it you have.

User avatar
Jerry3904
Administrator
Posts: 21962
Joined: Wed Jul 19, 2006 6:13 am

Re: My Conky ... feel free to adapt/change and use it

#6 Post by Jerry3904 »

svx_biker wrote: Fri Dec 21, 2018 7:13 am Just put the lines into a directoy in ~/.conky and the MX tweaks will give you access to it the same way as the other ones.
You mean MX-Conky, I assume. Conky Manager does it too, and offers other easy options.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
svx_biker
Posts: 31
Joined: Thu Dec 20, 2018 5:34 pm

Re: My Conky ... feel free to adapt/change and use it

#7 Post by svx_biker »

Yes Conky which is started from MX Tools - so MX-Conky :)

PS: Sorry, my installation is in German language and sometimes I don't have the exact english terms.
Machine: Acer Aspire S5-371
CPU: Intel Core i3-7100U with 8GB RAM
MX-19 Beta-2 with Kernel 4.19.0-6

User avatar
jeanpaulberes
Posts: 36
Joined: Wed Dec 19, 2018 11:56 am

Re: My Conky ... feel free to adapt/change and use it

#8 Post by jeanpaulberes »

Don't forget within this Conky LUA functions are called, so the LUA-function have also to be provided
I did therefor also adapt LUA quiet a bit, some 'obsolete' functions I left, this is case for updating the Conky ...
Don't forget to remove the .txt at the end for usage ;-)
You do not have the required permissions to view the files attached to this post.
:needcoffee:

User avatar
jeanpaulberes
Posts: 36
Joined: Wed Dec 19, 2018 11:56 am

Re: My Conky ... feel free to adapt/change and use it

#9 Post by jeanpaulberes »

svx_biker wrote: Fri Dec 21, 2018 8:11 am Yes Conky which is started from MX Tools - so MX-Conky :)

PS: Sorry, my installation is in German language and sometimes I don't have the exact english terms.
No you should use Conky Manager ... it will provide you a list of conkys where you can choose from ...
If you want to adapt or change or upload a conky, this has always to be done in the .conky directory from your home directory ... so ~/.conky

Kind regards,
Jean Paul
:needcoffee:

User avatar
Jerry3904
Administrator
Posts: 21962
Joined: Wed Jul 19, 2006 6:13 am

Re: My Conky ... feel free to adapt/change and use it

#10 Post by Jerry3904 »

jeanpaulberes wrote: Fri Dec 21, 2018 9:52 am Don't forget within this Conky LUA functions are called, so the LUA-function have also to be provided
I did therefor also adapt LUA quiet a bit, some 'obsolete' functions I left, this is case for updating the Conky ...
Don't forget to remove the .txt at the end for usage ;-)
It will be a certain while until we return to mx-conky development, but this will help a lot when we do. Thanks.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

Post Reply

Return to “XFCE Desktop Environment”