LinuxQuestions.org
Help answer threads with 0 replies.
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 03-06-2019, 10:35 AM   #1
HussarHussar
LQ Newbie
 
Registered: Feb 2019
Posts: 1

Rep: Reputation: Disabled
Unhappy Conky + Lemonbar script not working


I'm writing a script for a statusline using lemonbar and conky I built a basic script first with just the default package of conky, then later installed conky-all. This script was working fine before but I made some small changes to the config file for conky, installed conky-all, and started used compton as my window compositor, then tried the script again and the bar closes immediately after starting the script. I'm not sure if one of these changes is causing it or maybe I'm not properly using conky. The wrapper uses the line:
Code:
 conky -c /home/hussar/custom-commands/lemon-conky | lemonbar\
	-f -*-rissole-* \
	-f -*-waffle-* \
	-g x28 \
	-B "#FF1D1F21" \
	-F "#FFC5C8C6"
I think it is likely something in the config file. The config file is:

Code:
conky.config = {
	background = false,
	update_interval = 2,
	--total_run_times = 0,
	override_utf8_locale = true,
	short_units = true,
	uppercase = false,
	out_to_console = true,
	out_to_x = false,
	if_up_strictness = 'address'
	--format_human_readable = true,
}

conky.text = [[
	%{l}%{B\#FF1D1F21}%{F\#FFC5C8C6}  %{B-}%{F-}\
	%{B\#263640} ${mpd_smart 40} %{B-}\
	%{c}%{B\#263640}\
	${time %a %-d %b at %H:%M}\
	${cpu} \
	${mem} \
	${fs_used_perc /} \
	${fs_used_perc /home} \
	--${if_up wlan0}${downspeedf wlan0} ${upspeedf wlan0} \
	--${else}down down${endif} \
	--${if_up eth0}${downspeedf eth0} ${upspeedf eth0} \
	--${else}down down${endif}\
	%{r}\
	%{B\#263640}  ${wireless_essid} %{B-}\
	%{B\#2587cc}%{F\#141c21}  ${pa_sink_volume}% %{B-}%{F-}\
	]]
calling just conky with the config file from the terminal with
Code:
conky -c /home/hussar/custom-commands/lemon-conky
gives no output and closes immediately. Calling conky with my config in ~/.config/.conkyrc file for a desktop applet also doesn't work but piping it to lemonbar causes it to display fine even though it's nothing like a status line.
 
  


Reply

Tags
bash scripting, conky



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
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
LXer: Conky Ubuntu Lucid Theme - Among The Easiest to Install Conky Theme in Ubuntu LXer Syndicated Linux News 0 07-05-2010 04:11 PM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM

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

All times are GMT -5. The time now is 08:18 AM.

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