LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-29-2013, 05:37 PM   #1
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
images in conky


I'm having trouble displaying images in conky. I'm pretty sure I've compiled in everything I need. possibly even too much. I have verified that the path is correct but the error message insists that it is NULL.

Here is the line causing the problem
Code:
${image /usr/share/icons/gnome/16x16/devices/battery.png}  \
The error message
Code:
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_image_clear();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_image_set_has_alpha();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_blend_image_onto_image();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_render_image_part_on_drawable_at_size();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_free_image();

	With the parameter:

	image

	being NULL. Please fix your program.
Code:
Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib64/conky

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual

 Music detection:
  * Audacious

 General:
  * portmon
  * wireless
  * nvidia
  * config-output
  * Imlib2
  * ncurses
  * Lua

  Lua bindings:
   * Cairo
   * Imlib2
 
Old 09-30-2013, 01:34 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
You may need to add a position like so:
Code:
${image /usr/share/icons/gnome/16x16/devices/battery.png -p 0,0}
Why the continuation (\)? post your whole conky not just one line as it helps to know context.
 
Old 09-30-2013, 07:09 PM   #3
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Original Poster
Rep: Reputation: Disabled
The continuation is because my entire conky script will be on one line. To keep things readable i'm making each command on its own line.

here is my code so far. As you can see there is no images. The line I displayed in the previous post was just a line I was trying out to see if it would work.

Code:
 out_to_console yes
 out_to_x no
 update_interval 1.0
 total_run_times 0
 use_spacer none
 
 TEXT
^fg(\#ff0000)network: [^fg()$gw_iface / ${addr wlp4s0}^fg(\#ff0000)]    \
^fg(\#ff0000)batt:^fg()$battery    \
^fg(\#ff0000)Temp: ^fg()${acpitemp} C    \
^fg(\#ff0000)mem: [^fg()$mem / $memmax^fg(\#ff0000)]    \
^fg()${time %a %b %d %I:%M%P}
 
Old 10-01-2013, 04:39 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Well now you've posted your whole conkyrc I can see what you are trying to do, you can't usually display images on the console you need to use some special techniques/applications, the conky command "image" can only be used in an X display ( as far as I know ) so you are on to a loser straight away!

Why are you putting the commands on a single line? the usual way of doing this is to create a text file called ~/.conkyrc and put the commands in that then just use the command "conky" you can if you like supply a path to a different config file with the -c option.
 
Old 10-01-2013, 05:12 PM   #5
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Original Poster
Rep: Reputation: Disabled
I am porting conky to dzen2. A fairly simple status bar. I'm using this in i3 which is a tiling window manager. It doesn't make sense to have anything other than a statusbar display of conky in a twm since the entire screen is always used.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Conky Manager – Simple GUI for managing Conky config files LXer Syndicated Linux News 0 07-19-2013 11:01 AM
[SOLVED] conky and images arizonagroovejet Linux - General 4 04-16-2013 05:03 AM
conky question: passing conky-variable to shell-script zlin50 Linux - Software 2 12-29-2012 06:47 PM
LXer: Configure conky-Lua in Ubuntu (11.10 & 12.04), Fedora, debian and LinuxMint | Howto Conky LXer Syndicated Linux News 0 03-06-2012 12:40 PM
LXer: Conky Colors Makes Your Conky Beautiful In Seconds (Version 3.20 Released) LXer Syndicated Linux News 0 08-01-2010 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration