Find the answer to your Linux question:
Results 1 to 2 of 2
i'm adding f@h to my conky read out. heres that part: Code: ${font sans-serif:bold:size=8}${color FF9900}FOLDING AT HOME ${hr 2}${font sans-serif:normal:size=8} ${color yellow}${execi 15 cat /var/lib/fahclient/log.txt | tr '(' '\n' |tr ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2012
    Location
    Halifax Nova Scotia Canada
    Posts
    72

    conky


    i'm adding f@h to my conky read out. heres that part:

    Code:
    ${font sans-serif:bold:size=8}${color FF9900}FOLDING AT HOME ${hr 2}${font sans-serif:normal:size=8}
    ${color yellow}${execi 15 cat /var/lib/fahclient/log.txt | tr '(' '\n' |tr ')' '\n' | grep -E "(%|percent)"|tail -n 1 | tr -d 'percent' | tr -d '%'} % ${execbar echo "scale=2; $(cat /var/lib/fahclient/log.txt | tr '(' '\n' |tr ')' '\n' | grep -E "(%|percent)"|tail -n 1 | tr -d 'percent' | tr -d '%')/100" | bc -q}
    this is what happens:

    conky.jpg

    as you can see I have the percentage read out but not the progress bar. any one care to help?

  2. #2
    Just Joined!
    Join Date
    Mar 2012
    Location
    Halifax Nova Scotia Canada
    Posts
    72
    it is this part:

    ${execbar echo "scale=2; $(cat /var/lib/fahclient/log.txt | tr '(' '\n' |tr ')' '\n' | grep -E "(%|percent)"|tail -n 1 | tr -d 'percent' | tr -d '%')/100" | bc -q}

    that is failing. how can I make the percentage I get from this:

    ${color yellow}${execi 15 cat /var/lib/fahclient/log.txt | tr '(' '\n' |tr ')' '\n' | grep -E "(%|percent)"|tail -n 1 | tr -d 'percent' | tr -d '%'} %

    into a progress bar I can mount below?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •