LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Is there any way to get conky to only output to console (no X window)? (https://www.linuxquestions.org/questions/slackware-14/is-there-any-way-to-get-conky-to-only-output-to-console-no-x-window-777770/)

Allamgir 12-23-2009 07:16 PM

Is there any way to get conky to only output to console (no X window)?
 
I installed the conky package with sbopkg, but I would not like to have its own window. I am trying to figure out a way to get the ~/.conkyrc to command conky to only output as a one-liner to the console so I can pipe that information to my dwm status bar. I've done this before on Arch Linux, but I was using conky-cli. It was a long time ago, so I don't have any of my configuration files backed up for reference. These options in my conkyrc don't work:

Code:

background no
no_buffers yes
out_to_console yes
update_interval 1
uppercase no
use_spacer none
total_run_times 0

TEXT
${time %a %b %d %I:%M%P}

I still get a small window on my desktop showing the time. How can I prevent this so I only get the output in my terminal window when I run conky?

~sHyLoCk~ 12-23-2009 07:37 PM

Try:
Quote:

double_buffer yes
own_window yes
own_window_type override
own_window_transparent yes

Allamgir 12-24-2009 08:36 AM

I haven't been on my Slack box yet, but don't those lines just make the window transparent instead of preventing it from appearing? I guess I'm OK with that since it doesn't really make any visual difference. Hopefully I'll still be able to pipe that to a text status bar.

~sHyLoCk~ 12-24-2009 09:04 AM

I must have misunderstood your requirement as I only read:
Quote:

I still get a small window on my desktop showing the time. How can I prevent this
hmm well there is an out_to_console and out_to_x

Quote:

out_to_x
When set to no, there will be no output in X (useful when you also use things like out_to_console). If you set it to no, make sure that it's placed before all other X-related setting (take the first line of your configfile to be sure). Default value is yes

Allamgir 12-24-2009 10:20 AM

Well this is what I've got in my .conkyrc so far:

Code:

  1 out_to_x no 
  2 background no
  3 no_buffers yes
  4 out_to_console yes
  5 double_buffer yes
  6 own_window yes                                                                           
  7 own_window_type override
  8 own_window_transparent yes
  9 update_interval 1
 10 uppercase no 
 11 use_spacer none
 12 total_run_times 0
 13             
 14 TEXT         
 15 ${time %a %b %d %I:%M%P}

(The line numbers are just a result of my vim settings)

and I still get this little window near the bottom right of my screen displaying the date. It does appear in the terminal window, though. Here is the message that's displayed when I run conky in the terminal:

Code:

Conky: /home/agi/.conkyrc: 1: no such configuration: 'out_to_x'
Conky: desktop window (11b) is root window
Conky: drawing to desktop window
Conky: drawing to double buffer

I've been playing with some of these settings, like setting out_to_x to no and own_window to no, but nothing was changed.

I don't know why it's not recognizing 'out_to_x' (see the first line of the output), but that seems to be the command I need.

Allamgir 12-24-2009 12:19 PM

Yes!!! I got it! All I had to do was go into sbopkg and edit the slackbuild to disable all the X-related options (I think you can just pass options with sbopkg too)

Anyway, edit the slackbuild or pass the following options:

Code:

--disable-x11
--disable-xdamage
--disable-own-window
--disable-xft

Then remove all X-related options from your conkyrc (conky will let you know which ones are not found if you run it from the console) and enjoy your text-only conky!


All times are GMT -5. The time now is 04:50 PM.