LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Conky + Lemonbar script not working (https://www.linuxquestions.org/questions/linux-software-2/conky-lemonbar-script-not-working-4175649641/)

HussarHussar 03-06-2019 10:35 AM

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.


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