Conky Helps and Stuff

Message
Author
User avatar
richb
Administrator
Posts: 10323
Joined: Wed Jul 12, 2006 2:17 pm

Re: Conky Helps and Stuff

#331 Post by richb »

I screen capture with the default tools provided by MX and every time I'm told the size of my file is too large. So I then play with it to get it down to a size the forum will accept. Then they are too small for anyone to look at.
In these cases most people use an image service and post a link to that service. There are several free services such as Imgur. With a web search you can find others.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

User avatar
asqwerth
Developer
Posts: 7213
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#332 Post by asqwerth »

male wrote: Sat Apr 20, 2019 3:16 pm so for cpu0 in line 389, you have to

Code: Select all

hwmon 1 temp 2
and for the cpu1 in line 398

Code: Select all

hwmon 1 temp 3 
enter :happy:
Done!

It works now, thanks!
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

male

Re: Conky Helps and Stuff

#333 Post by male »

@asqwerth,

Gladly! :number1:



@smilliken,
I would like to understand what it means...
2019-04-21-09-13-02_scrot.png
You do not have the required permissions to view the files attached to this post.

User avatar
asqwerth
Developer
Posts: 7213
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#334 Post by asqwerth »

male wrote: Sun Apr 21, 2019 3:26 am @asqwerth,

Gladly! :number1:
....
So sorry, further developments!

It's not working all the time.

Originally when I was editing the "no-cpu1" lua script using your suggested changes, the (incomplete) conky was still running on the screen.

I uncommented all the cpu1 portions in the lua script and inserted the changes you recommended. Once I hit "save" on the Lua script, the cpu processes began to be displayed in the conky, and everything seemed to be working completely.

See screenshot here:

Image

https://i.imgur.com/2hGD5XF.jpg


But then I killed the conky and restarted it using my multi-conky-startup script, because I wanted to change the other conky. Once I did that, the conky no longer worked again. When I tried to run conky from terminal, I got the same message again that says I don't have that many cpus as listed. Even though it was just running nicely a few minutes ago.

So I reverted back to the no-cpu1 Lua script and restarted conky, and the no-cpu1 conky works again. From this working base if I yet again change the lua to add back the cpu1 stuff, it now works.

Very strange.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

male

Re: Conky Helps and Stuff

#335 Post by male »

asqwerth wrote:Very strange.

I already wrote that in the forum. In general:
1. First of all, when using hwmon you have to keep in mind that the device files under /sys/class/ can change when starting the computer, because this was not standardized.
In your case with hwmon0 and hwmon1 this is unlikely, but at the latest when hwmon2 is added this can happen. Then the cpu0 to 3 is e.g. listed in hwmon1 and the gpu in hwmon2. At the next start the gpu is in hwmon1 and the cpu's in hwmon2.

2. Your description often happens during testing:
-the "killed" process still ran in the background
-Conky "remembers" the "first setting" (especially casual e.g. in KDE)

remedies the situation:
-killall conky
-Log off / log on
-restart
-(in KDE) Conky to crash specifically

3. missing "sleeps" in the conky start-up script
A basic rule is still: Conky should not appear on the desktop until it is completely built up.

I use this command during testing to see how many Conky's are running:

Code: Select all

pgrep -a conky | cut -d ' ' -f2-

User avatar
smilliken
Posts: 206
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky Helps and Stuff

#336 Post by smilliken »

male wrote: Sun Apr 21, 2019 3:26 am
@smilliken,
I would like to understand what it means...

2019-04-21-09-13-02_scrot.png
The conky is suppose to show the standings in the American League of Major League Baseball. The names of the teams are showing up doubled and
there are no stats. It should look the website, basically.
There is no "Ctrl+Z" in life!
Asus X570, Rysen 3600, 32 GB RAM MX-21
Acer 7551G MX-21 & Win 10
Asus i5, 16 GB RAM MX-21 & Win 10
Brother DCP-7065DN/HL-L3270CDW
Linux User# 4523410

User avatar
manyroads
Posts: 2603
Joined: Sat Jun 30, 2018 6:33 pm

Re: Conky Helps and Stuff

#337 Post by manyroads »

For any who would like, here's a revised conky that I have cleaned up, skinny-ed down, made a little more informative. I'll be including it as the installed Conky on the OpenBox MX respin, I'm buiding. :bagoverhead:

The OpenBox respin thread is here: viewtopic.php?f=82&t=49858

This Conky is free for any use... inclusion in future MXLinux/antiX Conky file releases is also a-okay by me. :needcoffee:
ManyRoads-Multi-Conky.jpg
Here's a link to the download:
http://treemagic.org/MX%20Desktops/Many ... nky.tar.gz
You do not have the required permissions to view the files attached to this post.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

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

Re: Conky Helps and Stuff

#338 Post by Jerry3904 »

Nice!
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
manyroads
Posts: 2603
Joined: Sat Jun 30, 2018 6:33 pm

Re: Conky Helps and Stuff

#339 Post by manyroads »

I decided to try a more #! openbox style use of conky on my xfce desktop.

Here's the image of the short-cuts & keybindings I use most often:
https://ibb.co/RSzRFTk

Here's the conky code. I have attached the fonts & images I use as well. Remember you'll need to map whatever you choose in xfce and/or make appropriate changes to the conky below:

First Column (Left)

Code: Select all

#---------------------------------------------------------------------
#
# This conky was built by Mark Rabideau (aka. ManyRoads)
# Feel free to use or modify this conky in anyway that suits your fancy.
# No Guarantees are offered, made, expressed or implied.
# Should this break, you may keep all the pieces.
#
#---------------------------------------------------------------------
double_buffer yes
update_interval 2
background yes

own_window yes
own_window_transparent yes
# own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 0
out_to_console no
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
stippled_borders 1
border_width 0
default_color white
default_shade_color white
default_outline_color white
alignment middle_right

use_spacer left
no_buffers yes
uppercase no

pad_percents 2
top_name_width 10
minimum_size 320 405

gap_x 365
gap_y 0

color1 white 
color2 E83328 #brick red
color3 5294E2 #soldierblue
color4 0EFF00 #chartreuse

double_buffer true

own_window_colour 000000

TEXT
${offset 35}${font Good Times:size=12}${color2}Xfce Keybindings${color}${hr 2}${font}
Super+M: Whisker Menu
Super+D: Show desktop
Super+L: Lock screen
Ctl+Alt+Del: SessionLogout
Ctl+Esc: Xfce Desktop Menu

${offset 35}${font Good Times:size=12}${color2}Application Short-cuts${color}${hr 2}${font}
Ctl+T: xfce4-terminal --drop-down
Alt+C: Calibre
Alt+W: Chromium
Alt+M: Thunderbird
Alt+G: Geany
Alt+F: FileZilla
Alt+K: Keepassx
Alt+O: VirtualBox
Alt+T: Thunar
Ctl+E: Mousepad
Alt+Z: Zimwiki
Right Ctl: Synapse

${offset 35}${font Good Times:size=12}${color2}MX Short-cuts${color}${hr 2}${font}
Super+T: MX Tools
Super+I: MXPI
Super+C: Conky Manager

${offset 35}${font Good Times:size=12}${color2}Windows Keybindings${color}${hr 2}${font}
Alt-F4: Close Window
Alt-Space: Client Menu
Alt-Esc: Drop Window Focus
Alt+Tab / Alt+Shift+Tab: Next / Previous window
PrtScr: Screenshooter
Second Column (Right)

Code: Select all

#---------------------------------------------------------------------
#
# This conky was built by Mark Rabideau (aka. ManyRoads)
# Feel free to use or modify this conky in anyway that suits your fancy.
# No Guarantees are offered, made, expressed or implied.
# Should this break, you may keep all the pieces.
#
#---------------------------------------------------------------------
double_buffer yes
update_interval 2
background yes

own_window yes
own_window_transparent no
# own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 0
out_to_console no
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
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

pad_percents 2
top_name_width 10
minimum_size 320 405

gap_x 15
gap_y 85

color1 white 
color2 E83328 #brick red
color3 5294E2 #soldierblue
color4 0EFF00 #chartreuse

double_buffer true

own_window_colour 000000

TEXT
#
#-----------------------Date-Clock-------------------------------
#
${color2}${font Infini:pixelsize=70}${if_match "pmfix${time %R}}${time %k:%M}${else}${time %l:%M}${endif}${font}${voffset -80}${offset 20}${color1}${font Infini:pixelsize=42}${time %d}${voffset -20}${font Infini:pixelsize=22}${time %b} ${time '%y}${font}${voffset 30}${font Infini:pixelsize=48}${offset -100}${time %a}${font}
#
#-----------------------System information-----------------------
#
${voffset -10}
${image img/information.png -p 0,115 -s 30x30}
${offset 35}${font Good Times:size=12}${color2}SYSTEM INFORMATION ${color}${hr 2}
${font}${color1}${offset 30}${execi 1000 cat /etc/mx-version}
${goto 80}User: mark@eirenicon.org
${goto 80}Kernel: $kernel $machine
${goto 80}Uptime: $uptime
#${font DJB Get Digital:size=30}${tab 90}${time %H:%M:%S}
${goto 80}${color}Battery: ${color4}${battery_bar 10,100 BAT0} ${color0}${battery_percent BAT0}%  ${image img/MX_big_logo.png -p 10,155 -s 64x64}
#
#------------------Processes & Load information-----------------------
#
${image img/gearwheels.png -p 0,225 -s 30x30}
${offset 35}${font Good Times:size=12}${color2}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}${color3}${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}
#
#----------------------CPU Section ---------------------------------
#
${image img/cpu2.png -p 0,395 -s 30x30}
${voffset 5}${offset 35}${font Good Times:size=12}${color2}CPU Use ${color}${hr 2}
${font}${color}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
${color lightgrey}Temperature:${hwmon 1 temp 1}°C
Core-0:${goto 64}${cpugraph 0 10,180 48FF1C FFFF14 -l} ${cpu 0}% in use
Core-1:${goto 64}${cpugraph 1 10,180 48FF1C FFFF14 -l} ${cpu 1}% in use
Core-2:${goto 64}${cpugraph 2 10,180 48FF1C FFFF14 -l} ${cpu 2}% in use
Core-3:${goto 64}${cpugraph 3 10,180 48FF1C FFFF14 -l} ${cpu 3}% in use
${color3}${font bold}CPU Core Guages${color}${font}
${goto 64}${cpugauge cpu0 20,40}${goto 114}${cpugauge cpu1 20,40}${goto 164}${cpugauge cpu2 20,40}${goto 214}${cpugauge cpu3 20,40}
${voffset -3}${color3}${goto 64}Core-0${goto 114}Core-1${goto 164}Core-2${goto 214}Core-3${color}
#
#----------------------Disk Use ------------------------------------
#
${image img/hard-disk.png -p 0,585 -s 30x30}
${offset 35}${font Good Times:size=12}${color2}DISK USE ${color}${hr 2}${font}
${voffset 15}${color}System SSD:
${color}Used: ${color}${fs_used /} of${color1}${fs_size /} ${color}~ Free: ${color0}${fs_free /} ${color}or${color0} ${fs_free_perc /}% ${color}
${color lightgrey}Read: $color${diskio_read}${alignr}${color lightgrey}Write: ${color}${diskio_write}
${diskiograph_read /dev/sda 10,160 FFFF14 FFFF14 -l}${diskiograph_write /dev/sda 10,160 48FF1C 48FF1C -l}
#
#------------------------Network ---------------------------------------
#
${image img/network.png -p 0,700 -s 30x30}
${offset 35}${font Good Times:size=12}${color2}NETWORK ${color}${hr 2}${font}
${voffset -1}
${offset 5}WAN IP Address: ${texeci 10000 wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}
${voffset -1}
${if_match "${addr wlp1s0}"}${goto 10}Wireless: ${color1}wlp1s0${color}${goto 160}     IP local: ${color1}${addr wlan0}
${hr 1}
${voffset -1}
${goto 14}${color1}Up: ${color1}${upspeed wlan0}${color1}${alignr}${goto 180}${color1}Down:${color1} ${color1}${downspeed wlan0}${color0}
${goto 14}${color1}Sent:${color1} ${color1}${totalup wlan0}${color1}${alignr}${goto 180}${color1}Received:${color}${color1}${totaldown wlan0}
${goto 14}${upspeedgraph wlan0  50,140 000000 FFBF00}${goto 180}${downspeedgraph wlan0 50,140 000000 00FF00}$
${voffset -1}${endif}

fonts.tar.gz
img.tar.gz
You do not have the required permissions to view the files attached to this post.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
manyroads
Posts: 2603
Joined: Sat Jun 30, 2018 6:33 pm

Re: Conky Helps and Stuff

#340 Post by manyroads »

This Conky was coded using the following sites as references. The base code from which it was built is the product of the efforts of both Erik DuBois & Addy.

Conky References:
http://www.ifxgroup.net/conky.htm#tips
https://www.mankier.com/1/conky
http://conky.sourceforge.net/variables.html

The Conky image follows:
antiX-conky.png

===========Conky Code Follows ==================

Code: Select all


#-- Informant Conky
#-- Date       : 26/10/2017
#-- Editor     : Erik Dubois
#-- Version    : v3.0.4
#-- revised by : Mark Rabideau (manyroads)
#-- revision on: 21-29 May 2019 

#-- By Addy
#-- https://plus.google.com/+AdhiPambudi
#-- http://addy-dclxvi.deviantart.com/
#-- https://github.com/addy-dclxvi

#-- For commands available check:
#-- http://conky.sourceforge.net/variables.html


##  Begin Window Settings  #####################

own_window yes
own_window_type normal
#--original own_window_type is desktop
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_transparent no

## ARGB can be used for real transparency
## NOTE that a composite manager is required for real transparency.
## This option will not work as desired (in most cases) in conjunction with
## own_window_type normal
own_window_argb_visual yes

## When ARGB visuals are enabled, use this to modify the alpha value
## Use: own_window_type normal
## Use: own_window_transparent no
## Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
own_window_argb_value 0
own_window_colour 000000

minimum_width 200 
minimum_height 200
maximum_width 400

gap_x 5
gap_y 0

alignment middle_right

##  End Window Settings  ###

##  Font Settings  ######################
#-- Use Xft (anti-aliased font and stuff)
use_xft yes
# Requires mono font for spacing reasons
# xftfont Liberation Mono:bold:size=9
xftfont Roboto: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 yes

uppercase no
##  End Font Settings  ###

##  Colour Settings  ###
draw_shades no ##yes
default_shade_color black

draw_outline no ## amplifies text if yes
default_outline_color black

## Color scheme ##

## fe4515 crimson-orange
default_color fe4515

## ffffff white
color1 ffffff

## Green
color2 0BFF00



########################

##  End Colour Settings  ###

##  Borders Section  ##
draw_borders no
#-- 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 yes  ##no
#--default_graph_size 15 40
##  End Borders Secton  ###

##  Miscellaneous Section  ##
#-- Boolean value, if true, Conky will be forked to background when started.
background yes

#-- 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 no

#-- 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 yes

#-- change GiB to G and MiB to M
short_units yes

#-- Like it says, ot pads the decimals on % values
#-- doesn't seem to work since v1.7.1
pad_percents 2

#-- 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 yes

#--   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
##  End Miscellaneous Section  ###

update_interval 1

minimum_size 0 0

TEXT
${font Good Times:size=72}$alignr${time %H}${color1}:${time %M}${font}${color}
${font Good Times:32}${voffset 12}$alignr${color1}${time %A},${color} ${time %d}${color0} ${time %B}  ${time %Y}${font}${voffset 2}
${hr}${color}${voffset 4}
${font Roboto:pixelsize=13}${alignr} USER: ${color1}${execi 5000 whoami}${color} ${color1}I${color} MACHINE: ${color1}$nodename${color} ${color1}I${color} UPTIME: ${color1}$uptime${color}
${font Roboto:pixelsize=13}${alignr} DISTRIBUTION: ${color1}${execi 6000 cat /etc/antix-version}${color}
${font Roboto:pixelsize=13}${alignr} ARCHITECTURE: ${color1}${machine}${color} ${color1}I${color} KERNEL: ${color1}${kernel}${color}
${font Roboto:pixelsize=13}${alignr} ROOT: ${color1}${fs_used /}${color} / ${color1}${fs_size /}${color} ${color1}I${color} HOME: ${color1}${fs_used /home}${color} / ${color1}${fs_size /home}${color}
${font Roboto:pixelsize=13}${alignr} SWAP: ${color1}${swap} / ${swapmax}${color} ${color1}I${color} SYS TEMP: ${color1}${hwmon temp 1}°C${color}
${alignr} ${color} RAM: ${color1}$mem / $memmax${color} HD: ${color1}${fs_used_perc}%${color}
# Shows Desktop Name
${font Roboto:pixelsize=13}${alignr} DESKTOP SESSION: ${color1}${execi 60000 env | grep '^DESKTOP_SESSION' | cut -d'=' -f2-}${color}
${color1}${font Good Times:12}CPU ${hr 2}${color}${font}
${goto 199} ${color3} CPU USE: ${color}  ${alignr}${cpu cpu0} % of Available
${alignr} ${color3} Core-0: ${color}${cpugraph 0 10,120 000000 0BFF00 -l}
${alignr} ${color3} Core-1: ${color}${cpugraph 1 10,120 000000 0BFF00 -l}
${alignr} ${color3} Core-2: ${color}${cpugraph 2 10,120 000000 0BFF00 -l}
${alignr} ${color3} Core-3: ${color}${cpugraph 3 10,120 000000 0BFF00 -l}

${color1}${font Good Times:12}Network (${addr eth0})${font} ${hr 2}
   Down:${color} ${downspeedf eth0}kB/s ${alignr}${color1}Up:${color} ${upspeedf eth0}kB/s
   ${downspeedgraph eth0 30,120 000000 0BFF00} $alignr${upspeedgraph eth0 30,120 000000 0BFF00}
########## Wireless Network #### Uncomment this section for use with wireless
#${color1}${font Good Times:12}Network (${addr wlan0}) #[${wireless_link_qual_perc wlan0}%]${font} ${hr 2}
#   Down:${color} ${downspeedf wlan0}kB/s ${alignr}${color1}Up:${color} #${upspeedf wlan0}kB/s#

You do not have the required permissions to view the files attached to this post.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

Post Reply

Return to “Software / Configuration”