How to get Specific Conky scripts to work?

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
TinMan1325
Level 3
Level 3
Posts: 114
Joined: Mon Apr 18, 2022 4:08 pm

Re: How to get Specific Conky scripts to work?

Post by TinMan1325 »

Koentje wrote: Sat May 28, 2022 4:09 pm Looks like more is working already.. if i'm correct the info is now shown in the conky window, is that correct?

What i gather from the log is that the blurred background does not work.
conky: Unable to load image '/home/tinman1325/.conky/conky_blurred_background/gpu-info.png'

And what is not clear to me is this message..
sh: 1: 4: not found

Do you have convert installed?
Nothing opens up when I select it in the conky manager

I'm not sure what convert is. Do you mean "convertall"?
Attachments
new.png
User avatar
Koentje
Level 7
Level 7
Posts: 1577
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to get Specific Conky scripts to work?

Post by Koentje »

No i believe it is part of Imagemagick.

if you give this command on the terminal, what does it say?
convert
Last edited by Koentje on Sat May 28, 2022 4:28 pm, edited 2 times in total.
TinMan1325
Level 3
Level 3
Posts: 114
Joined: Mon Apr 18, 2022 4:08 pm

Re: How to get Specific Conky scripts to work?

Post by TinMan1325 »

Koentje wrote: Sat May 28, 2022 4:25 pm No i believe it is part of Imagemagick.

if you give this command on the terminal, what does it say?
convert
Oh I think I have it

Code: Select all

Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib
Usage: convert-im6.q16 [options ...] file [ [options ...] file ...] [options ...] file

Image Settings:
  -adjoin              join images into a single multi-image file
  -affine matrix       affine transform matrix
  -alpha option        activate, deactivate, reset, or set the alpha channel
  -antialias           remove pixel-aliasing
  -authenticate password
                       decipher image with this password
  -attenuate value     lessen (or intensify) when adding noise to an image
  -background color    background color
  -bias value          add bias when convolving an image
  -black-point-compensation
                       use black point compensation
  -blue-primary point  chromaticity blue primary point
  -bordercolor color   border color
  -caption string      assign a caption to an image
  -channel type        apply option to select image channels
  -clip-mask filename  associate a clip mask with the image
  -colors value        preferred number of colors in the image
  -colorspace type     alternate image colorspace
  -comment string      annotate image with comment
  -compose operator    set image composite operator
  -compress type       type of pixel compression when writing the image
  -define format:option
                       define one or more image format options
  -delay value         display the next image after pausing
  -density geometry    horizontal and vertical density of the image
  -depth value         image depth
  -direction type      render text right-to-left or left-to-right
  -display server      get image or font from this X server
  -dispose method      layer disposal method
  -dither method       apply error diffusion to image
  -encoding type       text encoding type
  -endian type         endianness (MSB or LSB) of the image
  -family name         render text with this font family
  -fill color          color to use when filling a graphic primitive
  -filter type         use this filter when resizing an image
  -font name           render text with this font
  -format "string"     output formatted image characteristics
  -fuzz distance       colors within this distance are considered equal
  -gravity type        horizontal and vertical text placement
  -green-primary point chromaticity green primary point
  -intensity method    method to generate intensity value from pixel
  -intent type         type of rendering intent when managing the image color
  -interlace type      type of image interlacing scheme
  -interline-spacing value
                       set the space between two text lines
  -interpolate method  pixel color interpolation method
  -interword-spacing value
                       set the space between two words
  -kerning value       set the space between two letters
  -label string        assign a label to an image
  -limit type value    pixel cache resource limit
  -loop iterations     add Netscape loop extension to your GIF animation
  -mask filename       associate a mask with the image
  -matte               store matte channel if the image has one
  -mattecolor color    frame color
  -moments             report image moments
  -monitor             monitor progress
  -orient type         image orientation
  -page geometry       size and location of an image canvas (setting)
  -ping                efficiently determine image attributes
  -pointsize value     font point size
  -precision value     maximum number of significant digits to print
  -preview type        image preview type
  -quality value       JPEG/MIFF/PNG compression level
  -quiet               suppress all warning messages
  -red-primary point   chromaticity red primary point
  -regard-warnings     pay attention to warning messages
  -remap filename      transform image colors to match this set of colors
  -repage geometry     size and location of an image canvas
  -respect-parentheses settings remain in effect until parenthesis boundary
  -sampling-factor geometry
                       horizontal and vertical sampling factor
  -scene value         image scene number
  -seed value          seed a new sequence of pseudo-random numbers
  -size geometry       width and height of image
  -stretch type        render text with this font stretch
  -stroke color        graphic primitive stroke color
  -strokewidth value   graphic primitive stroke width
  -style type          render text with this font style
  -support factor      resize support: > 1.0 is blurry, < 1.0 is sharp
  -synchronize         synchronize image to storage device
  -taint               declare the image as modified
  -texture filename    name of texture to tile onto the image background
  -tile-offset geometry
                       tile offset
  -treedepth value     color tree depth
  -transparent-color color
                       transparent color
  -undercolor color    annotation bounding box color
  -units type          the units of image resolution
  -verbose             print detailed information about the image
  -view                FlashPix viewing transforms
  -virtual-pixel method
                       virtual pixel access method
  -weight type         render text with this font weight
  -white-point point   chromaticity white point

Image Operators:
  -adaptive-blur geometry
                       adaptively blur pixels; decrease effect near edges
  -adaptive-resize geometry
                       adaptively resize image using 'mesh' interpolation
  -adaptive-sharpen geometry
                       adaptively sharpen pixels; increase effect near edges
  -alpha option        on, activate, off, deactivate, set, opaque, copy
                       transparent, extract, background, or shape
  -annotate geometry text
                       annotate the image with text
  -auto-gamma          automagically adjust gamma level of image
  -auto-level          automagically adjust color levels of image
  -auto-orient         automagically orient (rotate) image
  -bench iterations    measure performance
  -black-threshold value
                       force all pixels below the threshold into black
  -blue-shift factor   simulate a scene at nighttime in the moonlight
  -blur geometry       reduce image noise and reduce detail levels
  -border geometry     surround image with a border of color
  -bordercolor color   border color
  -brightness-contrast geometry
                       improve brightness / contrast of the image
  -canny geometry      detect edges in the image
  -cdl filename        color correct with a color decision list
  -charcoal radius     simulate a charcoal drawing
  -chop geometry       remove pixels from the image interior
  -clamp               keep pixel values in range (0-QuantumRange)
  -clip                clip along the first path from the 8BIM profile
  -clip-path id        clip along a named path from the 8BIM profile
  -colorize value      colorize the image with the fill color
  -color-matrix matrix apply color correction to the image
  -connected-components connectivity
                       connected-components uniquely labeled
  -contrast            enhance or reduce the image contrast
  -contrast-stretch geometry
                       improve contrast by `stretching' the intensity range
  -convolve coefficients
                       apply a convolution kernel to the image
  -cycle amount        cycle the image colormap
  -decipher filename   convert cipher pixels to plain pixels
  -deskew threshold    straighten an image
  -despeckle           reduce the speckles within an image
  -distort method args
                       distort images according to given method ad args
  -draw string         annotate the image with a graphic primitive
  -edge radius         apply a filter to detect edges in the image
  -encipher filename   convert plain pixels to cipher pixels
  -emboss radius       emboss an image
  -enhance             apply a digital filter to enhance a noisy image
  -equalize            perform histogram equalization to an image
  -evaluate operator value
                       evaluate an arithmetic, relational, or logical expression
  -extent geometry     set the image size
  -extract geometry    extract area from image
  -features distance   analyze image features (e.g. contrast, correlation)
  -fft                 implements the discrete Fourier transform (DFT)
  -flip                flip image vertically
  -floodfill geometry color
                       floodfill the image with color
  -flop                flop image horizontally
  -frame geometry      surround image with an ornamental border
  -function name parameters
                       apply function over image values
  -gamma value         level of gamma correction
  -gaussian-blur geometry
                       reduce image noise and reduce detail levels
  -geometry geometry   preferred size or location of the image
  -grayscale method    convert image to grayscale
  -hough-lines geometry
                       identify lines in the image
  -identify            identify the format and characteristics of the image
  -ift                 implements the inverse discrete Fourier transform (DFT)
  -implode amount      implode image pixels about the center
  -interpolative-resize geometry
                       resize image using 'point sampled' interpolation
  -kuwahara geometry   edge preserving noise reduction filter
  -lat geometry        local adaptive thresholding
  -level value         adjust the level of image contrast
  -level-colors color,color
                       level image with the given colors
  -linear-stretch geometry
                       improve contrast by `stretching with saturation'
  -liquid-rescale geometry
                       rescale image with seam-carving
  -local-contrast geometry
                       enhance local contrast
  -magnify             double the size of the image with pixel art scaling
  -mean-shift geometry delineate arbitrarily shaped clusters in the image
  -median geometry     apply a median filter to the image
  -mode geometry       make each pixel the 'predominant color' of the
                       neighborhood
  -modulate value      vary the brightness, saturation, and hue
  -monochrome          transform image to black and white
  -morphology method kernel
                       apply a morphology method to the image
  -motion-blur geometry
                       simulate motion blur
  -negate              replace every pixel with its complementary color 
  -noise geometry      add or reduce noise in an image
  -normalize           transform image to span the full range of colors
  -opaque color        change this color to the fill color
  -ordered-dither NxN
                       add a noise pattern to the image with specific
                       amplitudes
  -paint radius        simulate an oil painting
  -perceptible epsilon
                       pixel value less than |epsilon| become epsilon or
                       -epsilon
  -polaroid angle      simulate a Polaroid picture
  -posterize levels    reduce the image to a limited number of color levels
  -profile filename    add, delete, or apply an image profile
  -quantize colorspace reduce colors in this colorspace
  -radial-blur angle   radial blur the image (deprecated use -rotational-blur
  -raise value         lighten/darken image edges to create a 3-D effect
  -random-threshold low,high
                       random threshold the image
  -region geometry     apply options to a portion of the image
  -render              render vector graphics
  -resample geometry   change the resolution of an image
  -resize geometry     resize the image
  -roll geometry       roll an image vertically or horizontally
  -rotate degrees      apply Paeth rotation to the image
  -rotational-blur angle
                       rotational blur the image
  -sample geometry     scale image with pixel sampling
  -scale geometry      scale the image
  -segment values      segment an image
  -selective-blur geometry
                       selectively blur pixels within a contrast threshold
  -sepia-tone threshold
                       simulate a sepia-toned photo
  -set property value  set an image property
  -shade degrees       shade the image using a distant light source
  -shadow geometry     simulate an image shadow
  -sharpen geometry    sharpen the image
  -shave geometry      shave pixels from the image edges
  -shear geometry      slide one edge of the image along the X or Y axis
  -sigmoidal-contrast geometry
                       increase the contrast without saturating highlights or
                       shadows
  -sketch geometry     simulate a pencil sketch
  -solarize threshold  negate all pixels above the threshold level
  -sparse-color method args
                       fill in a image based on a few color points
  -splice geometry     splice the background color into the image
  -spread radius       displace image pixels by a random amount
  -statistic type geometry
                       replace each pixel with corresponding statistic from the
                       neighborhood
  -strip               strip image of all profiles and comments
  -swirl degrees       swirl image pixels about the center
  -threshold value     threshold the image
  -thumbnail geometry  create a thumbnail of the image
  -tile filename       tile image when filling a graphic primitive
  -tint value          tint the image with the fill color
  -transform           affine transform image
  -transparent color   make this color transparent within the image
  -transpose           flip image vertically and rotate 90 degrees
  -transverse          flop image horizontally and rotate 270 degrees
  -trim                trim image edges
  -type type           image type
  -unique-colors       discard all but one of any pixel color
  -unsharp geometry    sharpen the image
  -vignette geometry   soften the edges of the image in vignette style
  -wave geometry       alter an image along a sine wave
  -wavelet-denoise threshold
                       removes noise from the image using a wavelet transform
  -white-threshold value
                       force all pixels above the threshold into white

Image Sequence Operators:
  -append              append an image sequence
  -clut                apply a color lookup table to the image
  -coalesce            merge a sequence of images
  -combine             combine a sequence of images
  -compare             mathematically and visually annotate the difference between an image and its reconstruction
  -complex operator    perform complex mathematics on an image sequence
  -composite           composite image
  -copy geometry offset
                       copy pixels from one area of an image to another
  -crop geometry       cut out a rectangular region of the image
  -deconstruct         break down an image sequence into constituent parts
  -evaluate-sequence operator
                       evaluate an arithmetic, relational, or logical expression
  -flatten             flatten a sequence of images
  -fx expression       apply mathematical expression to an image channel(s)
  -hald-clut           apply a Hald color lookup table to the image
  -layers method       optimize, merge, or compare image layers
  -morph value         morph an image sequence
  -mosaic              create a mosaic from an image sequence
  -poly terms          build a polynomial from the image sequence and the corresponding
                       terms (coefficients and degree pairs).
  -print string        interpret string and print to console
  -process arguments   process the image with a custom image filter
  -separate            separate an image channel into a grayscale image
  -smush geometry      smush an image sequence together
  -write filename      write images to this file

Image Stack Operators:
  -clone indexes       clone an image
  -delete indexes      delete the image from the image sequence
  -duplicate count,indexes
                       duplicate an image one or more times
  -insert index        insert last image into the image sequence
  -reverse             reverse image sequence
  -swap indexes        swap two images in the image sequence

Miscellaneous Options:
  -debug events        display copious debugging information
  -distribute-cache port
                       distributed pixel cache spanning one or more servers
  -help                print program options
  -list type           print a list of supported option arguments
  -log format          format of debugging information
  -version             print version information

By default, the image format of `file' is determined by its magic
number.  To specify a particular image format, precede the filename
with an image format name and a colon (i.e. ps:image) or specify the
image type as the filename suffix (i.e. image.ps).  Specify 'file' as
'-' for standard input or output.
User avatar
Koentje
Level 7
Level 7
Posts: 1577
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to get Specific Conky scripts to work?

Post by Koentje »

Ok, then blurred background does not work for some reason. But i see you don't use a background, so it is pointless then!
I can change the script and pull that one out if you wish.

And i think i know why nothings shows... have you set the correct placement on the screen? I have a widescreen with a high resolution and had it placed on the right side.. maybe it is outside of your resolution?
User avatar
Koentje
Level 7
Level 7
Posts: 1577
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to get Specific Conky scripts to work?

Post by Koentje »

Shit, i have to edit all the paths again or else it won't work on my system. :mrgreen:
TinMan1325
Level 3
Level 3
Posts: 114
Joined: Mon Apr 18, 2022 4:08 pm

Re: How to get Specific Conky scripts to work?

Post by TinMan1325 »

Koentje wrote: Sat May 28, 2022 4:29 pm Ok, then blurred background does not work for some reason. But i see you don't use a background, so it is pointless then!
I can change the script and pull that one out if you wish.

And i think i know why nothings shows... have you set the correct placement on the screen? I have a widescreen with a high resolution and had it placed on the right side.. maybe it is outside of your resolution?
Yeah I guess blurred background is kind of pointless

Sweet! It's working. It was outside lol. Good catch, I never would have figured that out

Edit: the bar graphs and numbers aren't moving up or down at all though
Attachments
new1.png
User avatar
Koentje
Level 7
Level 7
Posts: 1577
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to get Specific Conky scripts to work?

Post by Koentje »

Dammn... i wanted to post something and suddenly my IP was blocked by Sucuri Firewall of this website. Could not post anymore!? :?

But ok, we have a window.. can you go into the conky script and comment out the line that has the conky-blurred-background in it..
User avatar
Koentje
Level 7
Level 7
Posts: 1577
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to get Specific Conky scripts to work?

Post by Koentje »

And i know why nothing is moving.. i see that all the values are from the gpuinfo.tmp i created myself. So the script gpuinfo.sh does not start. I made a booboo.. ;)

Go into the conky script and find the first line:
${exec 4 /home/tinman1325/.conky/gpuinfo/gpuinfo.sh}\

Change the word exec into execi

That also explains the error that i couldn't understand!
User avatar
Koentje
Level 7
Level 7
Posts: 1577
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to get Specific Conky scripts to work?

Post by Koentje »

And i just found another small error in the lua script! That is why the gpuload bar does not show.
You have to go into the lua script. There you see 4 blocks in the beginning.. labeled
-- bar for Frequency
-- bar for RAM
-- bar for Temperature
-- bar for GPU load

Go to the block GPU load and the second line under that:
arg="cat $HOME/.conky/gpuinfo/tempfiles/gpuinfo.tmp | head -n17 | tail -n1",

Change that into:
arg="cat /home/tinman1325/.conky/gpuinfo/tempfiles/gpuinfo.tmp | head -n17 | tail -n1",

Now the gpu load bar will also show!
User avatar
Koentje
Level 7
Level 7
Posts: 1577
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to get Specific Conky scripts to work?

Post by Koentje »

The only thing i don't understand is why the colors of the lua bars are off?!
They should be blue at the start and getting orange at the end... for some reason that's the other way around??
TinMan1325
Level 3
Level 3
Posts: 114
Joined: Mon Apr 18, 2022 4:08 pm

Re: How to get Specific Conky scripts to work?

Post by TinMan1325 »

Koentje wrote: Sat May 28, 2022 5:12 pm Dammn... i wanted to post something and suddenly my IP was blocked by Sucuri Firewall of this website. Could not post anymore!? :?

But ok, we have a window.. can you go into the conky script and comment out the line that has the conky-blurred-background in it..
It doesn't show that, it says "conky_blurred_background" though, but it has it in there about 16 times. Do I just delete them all?
TinMan1325
Level 3
Level 3
Posts: 114
Joined: Mon Apr 18, 2022 4:08 pm

Re: How to get Specific Conky scripts to work?

Post by TinMan1325 »

Koentje wrote: Sat May 28, 2022 5:30 pm The only thing i don't understand is why the colors of the lua bars are off?!
They should be blue at the start and getting orange at the end... for some reason that's the other way around??
I'm not sure. Not all of them are working/moving either, the numbers seem to be though

This is what it looks like now
Attachments
new2.png
TinMan1325
Level 3
Level 3
Posts: 114
Joined: Mon Apr 18, 2022 4:08 pm

Re: How to get Specific Conky scripts to work?

Post by TinMan1325 »

So I figured out how to comment out the blurred background, I was looking in the wrong one, and it seems to have fixed things even more. Everything seems lined up now :)

Core Clock bar and numbers aren't moving
RAM numbers and bar is working
Temperature numbers and bar is working
Fan Speed numbers are working but bar isn't
GPU load numbers are working but bar isn't
Attachments
new3.png
User avatar
Koentje
Level 7
Level 7
Posts: 1577
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to get Specific Conky scripts to work?

Post by Koentje »

Post the ./tempfiles/gpuinfo.tmp file here as you wil..
User avatar
Koentje
Level 7
Level 7
Posts: 1577
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to get Specific Conky scripts to work?

Post by Koentje »

To correct a few placements find this line in gpuinfo.conky:
${image ./images/graphic_card.png -p 10, 3 -s 27x26}
and change the 10 (horizontal alignment of pci card picture) and lower this to 4
change the 3 (vertical alignment) into 0

Find this line:
${image ./images/nvidia2.png -p 5, 56 -s 78x78}
and change the 5 (horizontal) into 0
and change the 56 (vertical) to 51

This should align the graphics a little better! Of course you can adjust it to your own taste..
For the workings of your bars i'll have to wait for you to post the gpuinfo.tmp.
TinMan1325
Level 3
Level 3
Posts: 114
Joined: Mon Apr 18, 2022 4:08 pm

Re: How to get Specific Conky scripts to work?

Post by TinMan1325 »

Koentje wrote: Sun May 29, 2022 6:12 am Post the ./tempfiles/gpuinfo.tmp file here as you wil..
I think this is what you're looking for, it was in /home/tinman1325/.conky/gpuinfo/tempfiles

Code: Select all

GP106 [GeForce GTX 1060 6GB]
1280
nvidia
510.73.05
41
1556
4006
38
1547
50
382
6070
1920x1080-60 Hz
HDMI-0
8.0 GT/s
PCIe x16
4
1
3
TinMan1325
Level 3
Level 3
Posts: 114
Joined: Mon Apr 18, 2022 4:08 pm

Re: How to get Specific Conky scripts to work?

Post by TinMan1325 »

Koentje wrote: Sun May 29, 2022 6:37 am To correct a few placements find this line in gpuinfo.conky:
${image ./images/graphic_card.png -p 10, 3 -s 27x26}
and change the 10 (horizontal alignment of pci card picture) and lower this to 4
change the 3 (vertical alignment) into 0

Find this line:
${image ./images/nvidia2.png -p 5, 56 -s 78x78}
and change the 5 (horizontal) into 0
and change the 56 (vertical) to 51

This should align the graphics a little better! Of course you can adjust it to your own taste..
For the workings of your bars i'll have to wait for you to post the gpuinfo.tmp.
I didn't see any difference with the first one but the second one made it nicer
User avatar
Koentje
Level 7
Level 7
Posts: 1577
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to get Specific Conky scripts to work?

Post by Koentje »

The first one is that little white pci-card icon.. its moved a little to the left and up.

But it seems that the script does output.. maybe watch it?
Go into the ./tempfiles folder and start this command on the terminal: watch -d cat gpuinfo.tmp
This command keeps an eye on the file and shows the changes. Now do something that is heavy on the graphic card and watch if the values change.
TinMan1325
Level 3
Level 3
Posts: 114
Joined: Mon Apr 18, 2022 4:08 pm

Re: How to get Specific Conky scripts to work?

Post by TinMan1325 »

Koentje wrote: Mon May 30, 2022 12:16 am The first one is that little white pci-card icon.. its moved a little to the left and up.

But it seems that the script does output.. maybe watch it?
Go into the ./tempfiles folder and start this command on the terminal: watch -d cat gpuinfo.tmp
This command keeps an eye on the file and shows the changes. Now do something that is heavy on the graphic card and watch if the values change.
Oh wow you're right. The bar graph for GPU load does not work though, everything else does

Is there a way to change the colours of the bar graphs? I'd like them to have the same colours as the bar graphs on CPU and RAM

This thing is awesome by the way, thanks a lot for setting it up
User avatar
Koentje
Level 7
Level 7
Posts: 1577
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to get Specific Conky scripts to work?

Post by Koentje »

Lets fix things first before we do cosmetics..
When you watched the values.. did the 3th last one also change value?
If you go into gpuinfo.sh at the bottom you can see which value is what. I numberd them, shown after each value.
$gpuload is number 17.
Locked

Return to “Compiz, Conky, Docks & Widgets”