One line, one bar conky...

Can anyone help me? Have a look at this screen:
The bottom bar of the three is conky. I want it to show the time, gmail status and rhythmbox status all in one line across the screen, but it keeps trying to seperate it into lines.
Here's my .conkyrc:
# conky configuration
# edited by kaivalagi
# set to yes if you want Conky to be forked in the background
background no
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont Terminus:size=9
# Text alpha when using Xft
xftalpha 0.8
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 1680 0
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
draw_graph_borders yes
# Stippled borders?
stippled_borders 0
# border margins
border_margin 0
# border width
border_width 0
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# own window options
own_window yes
own_window_transparent no
own_window_type widget
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 0
gap_y 80
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no
# colours
color1 white
# light blue
color2 6892C6
# orange
color3 E77320
# green
color4 78BF39
# red
color5 CC0000
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# stuff after 'TEXT' will be formatted on screen
TEXT
${font Droid Sans:size=8}${color1}${execpi 300 python ~/.scripts/gmail_parser.py <edited email and password> 3}{font Droid Sans:size=8}${color1}${time %H}:${time %M}${time %A}${color1}${font Droid Sans:size=10}${exec conkyRhythmbox --datatype=TI}${color1}${font Droid Sans:size=8} // ${color1}${font Droid Sans:size=8}${exec conkyRhythmbox --datatype=AR}${color1}${font Droid Sans:size=8} // ${color1}${font Droid Sans:Italic:size=8}${exec conkyRhythmbox --datatype=AL}${color1}${font Droid Sans:size=8} // ${color1}${font Droid Sans:size=7 com}${exec conkyRhythmbox --datatype=PT}/${exec conkyRhythmbox --datatype=LE}
What am I doing wrong, O' Wise Ones?
/izo\
Last edited by Izobalax (2009-06-18 20:14:31)

brisbin33 wrote:
Izobalax wrote:For some reason the gmail checker forces a new line. Any ideas?
i think we'd have to see gmailparser.py to help on that.
## check-gmail.py -- A command line util to check GMail -*- Python -*-
## modified to display mailbox summary for conky
# ======================================================================
# Copyright (C) 2006 Baishampayan Ghose <[email protected]>
# Modified 2008 Hunter Loftis <[email protected]>
# Time-stamp: Mon Jul 31, 2006 20:45+0530
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
# ======================================================================
import sys
import urllib # For BasicHTTPAuthentication
import feedparser # For parsing the feed
from textwrap import wrap
_URL = "https://mail.google.com/gmail/feed/atom"
uname = sys.argv[1]
password = sys.argv[2]
maxlen = sys.argv[3]
urllib.FancyURLopener.prompt_user_passwd = lambda self, host, realm: (uname, password)
def auth():
'''The method to do HTTPBasicAuthentication'''
opener = urllib.FancyURLopener()
f = opener.open(_URL)
feed = f.read()
return feed
def readmail(feed, maxlen):
'''Parse the Atom feed and print a summary'''
atom = feedparser.parse(feed)
print '${color1} %s new email(s)\n' % (len(atom.entries))
# for i in range(min(len(atom.entries), maxlen)):
# print ' ${color2}%s' % atom.entries[i].title
#uncomment the following line if you want to show the name of the sender
# print ' ${color2}%s' % atom.entries[i].author
# if len(atom.entries) > maxlen:
# print ' ${color}more...'
if __name__ == "__main__":
f = auth() # Do auth and then get the feed
readmail(f, int(maxlen)) # Let the feed be chewed by feedparser
/izo\

Similar Messages

  • More than one line on bar chart

    I am creating a Line chart from a table.  The table includes a code column, date column, and several statistic columns. The dates are end of month dates only. There are about 10 different codes for each month.  The statisic columns are the totals for the month for each code.
    PeriodEndDate  Code  Statistic1 Statistic2 Statistic3 Statistic4
    XX/XX/XXXX     XX      999        999        999        999
    On my line chart I want to show one or more statistics for one year for a given code. (A line for each statistic)
    On a different report I want to show one or more codes for one year for a given statistic.  (A line for each code)
    The report has parameters for the code and the statistic. I have figured out how to create the chart for one code for one year for a given statistic.  Can any one help me out?
    Thanks,
    Fred

    Hello Fred,
    If you work with a multi-value parameter you could pass in a collection of x of 10 of your codes. I assume you have played with this idea?
    Perhaps you are stuck because there are no design-time options in the chart design wizards to base your line chart off the numerous values that could be passed into a single multi-value "code" parameter?
    If it is a limitation of the chart design options available to you then your only recourse may be to use one of the SDKs to massage data into a datatable which could be pushed to a report on the fly.
    Cheers, Dylan
    <p><strong>Dylan Lopez - </strong>604.628.4467 </p><p>Previously: Microsoft .NET Resource in Developer Support @ Business Objects</p><p>Currently: Principal @ Inno Software Inc / Independent Contractor Group</p>

  • Screen painter space between two element in one line

    Hi Experts,
    i am developing a RF program with screens of size 16linesX20columns. limited space should be used . But when i create more than one element in one line , one space is always present between two elements,and the space can not be deleted or overlaped. because of this, elements can not get enought columns.
    i am sure that elements can be adjacent without space in the past time. i am not sure space appear after what changes was done by me...
    can you please give some suggestion if you also have the same issue.
    Yimeng

    Hi,
    Can you elaborate which screen elements are you using.
    You can place screen elements one after another in a single line without any spaces.
    Danish.
    Edited by: Danish2285 on Sep 21, 2011 12:38 PM

  • Desktop, One line of icons frozen, and a window frozen on the side, top bar shadows of icons frozen.

    So on my desktop, one line of icons is frozen, although the same icons are also on my desktop and actually working. Also the edge of a window is frozen. Lastly, on the right of the top bar, the little icons like battery, wifi, etc. are frozen as shadows underneath all the working icons... Basically everything is working right, just "copies" of the others are frozen...

    Check in System Preferences>Universal Access and see if Zoom is on. If you have toddlers or cats this can accidentally turned on by hitting a group of keys that include Option + Command + 8.
    To prevent this being accidentally activated in the future go to System Preferences>Keyboard>Keyboard Shortcuts>Universal Access and uncheck all the boxes.

  • How to plot line and bar chart in one graph

    i have one graph, but in this graph i want to plot line or bar chart using radio button selection.
    can i do that...

    You must have 2 data arrays or plots to get this. Make sure your plot legend is visible. Drag the plot legend vertical borders to view both plots. Select one of the plot to be bar plot (See the attachment)
    Attachments:
    BarPlots.PNG ‏14 KB

  • Setting Acrobat Pro tool bars in one line

    Hi gents,
    Could anybody advise how I can set Acrobat XI Pro tool bars in one line? Whatever I do, Create, Cloud, customize and Read mode buttons appear on the first line and other buttons, e.g. navigation and zoom ones appear on the second line (see screenshot attached). It eats up vertical space of my wide screen display, which is annoying, especially since I do not care at all about those four buttons on the first line.. I can have only one line of tool bars with quick buttons in Acrobat Reader XI without problems.

    Hi,
    Kindly post this query in Acrobat forum:Acrobat
    Regards,
    Florence

  • How do I scroll one line at a time in Lion?

    I want to upgrade to Lion but need the functionality of the scroll bar arrows. I have learned that the functionality of the arrows is part of the core operating system and is not being replaced. Any suggestions as to any add-on devices that would allow this function?
    Thanks,
    Rich

    If the program/window is not a text-based one (such as a word processor), you can usually use the up and down arrow keys to scroll up or down one line at a time.
    There are often mods to this behavior, but exactly what depends on the program. Test with the up and down arrow keys in conjunction with the usual modifier keys - Shift, Command, Option, etc.

  • How can I enable spell checking for a text box that is just one line, e.g. subject in e-mail?

    In a prior version of Firefox I found a website somewhere that told me what to do to enable spell checking for text boxes that are just one line. I got used to being able to send an e-mail with a Subject Line that didn't have a misspelling. Now it doesn't work. Please tell me how I can enable that again. I am on a Mac using Firefox 6.0.2. Thanks!

    See:
    *http://kb.mozillazine.org/Spell_checking
    *http://kb.mozillazine.org/layout.spellcheckDefault
    You can set the pref <b>layout.spellcheckDefault</b> to <i>2</i> on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • How do I stop the cursor from spontaneously going to Line one space one in Notes?

    How do I stop the cursor from spontaneously going to Line one Space one in Notes?
    I am currently working on a MacBook Pro connected by Wi-Fi or Blue Tooth to my 16GB iPhone 4S; and supposedly to iCloud.  I install every upgrade on each computer till the computer can take no more.  My current MacBook Pro continues to accept upgrades.
    I have been dealing with Address Book foibles since it first came out and the problems seem to get worse rather than resolved.
    Problem #1: When a Company Name is checked to take precedence over a personal name the record/file does not surface during searches.  This has happened for years on all my Macs, including most recently my MacBook Pro and its predecessor PowerBook G4.  How do I fix this?
    Problem #2: The Printing Defaults for Address Book Files are not useful and I can find no way to change them to my own preferences once and for all.  I must reset them for every file every time I choose to print a file.  Is there some way to set the defaults to MY preferences and only occasionally reset them according to my needs?
    Problem #3:  When entering information in "Notes" the cursor randomly and spontaneously goes to line one space one as I am entering information.  How do I stop this?  Then when I cut and paste the misplaced text to where it belongs it may or may not return to once again begin at line one space one and following.
    Problem #4:  When Printing a Record/File from Address Book I would like to use the whole 8.5" x 11" page.  Instead it prints on an 8.5" x 11" page in three columns.  Is there a way to format the output?  I have not found one and the Mac 'Geniuses' do not know of any.
    Problem #5:  Subsequent to one of the upgrades in the last year or so, the search feature does not work.  (I have had this computer since May 2011).  No matter what I type in the search line I am stuck in the 'All' Directory.  To find anyone or anything I must scroll through the address book manually.  Is there a fix to this?
    Problem #6:  Sometimes, when I try to sync my MacBook Pro and my iPhone, the records simply duplicate.  How d I undo this without manually deleting the duplicates?
    Problem #7:  Does anyone know of a third party Address-Book-type App that is better than the Apple version and can easily import over 3000 contacts information?

    '''I had the same problem when I updated to firefox 4. This is how i fixed it:'''
    The problem seems to be caused by the 'New Tab Homepage' add on. So:
    # Disable or remove the 'New Tab Homepage' add on and restart firefox.
    # Download and install the firefox add on called 'NewTabURL' and restart firefox.
    # Click on the Options button for NewTabURL and uncheck 'Select location bar after loading new tab'
    # Under the 'Default URL for new tabs' heading, choose 'Home Page'
    # Click on the Save button.
    Hopefully, problem solved!

  • How to Print Multiple Barcode in one line

    Hi All,
    I am printing barcode using <c1>&lwa_itab-matnr</>. now i have a query i want to print in the same line one more bar code with the values. but i m not able to print it. will any one pls help me out in this how i will print more than one barcode in one line.
    i have tried this syntax also
    <c1>&lwa_itab-matnr&      &lwa_itab-matnr&</>.
    But it is not giving gap between two barcode. it is considering space and converting space also in barcode which i don't want. I want to print two barcodes separately with some space. How will i do this.
    Pls answer it. it is very urgent.
    I am doing this in smartforms.
    Thanks
    Garima
    Edited by: Garima Mittal on Jun 18, 2008 12:34 PM

    hi,
    try like this.
    <c1>field1_</c1>_      <c1>field2_</c1>_
    give the two fields in the same line.
    so this will help u in printing the barcodes in the same line
    please reward me if helpful.
    regards,
    Reddy.

  • In Mail, my preview of incoming emails changed to one line only.  How can I get the bigger view?

    My view of emails has changed suddenly to only one line.  It used to be a bigger window, allowing me to read part of the body of the email, while viewing all new emails....how can I get that view back?  Is that a long header?  I try to click on long header but it is greyed out and unavailable even though I added the long header icon to my task bar.  Help??

    Hello Macdaddy and thanks for your prompt response.  Unfortunately for some reason, when I go to View, from Preferences, there is no PREVIEW, nor option for desired number of lines, option there at all?  Not sure why?  Any other ideas?  Thanks SO much for your attention to this issue of mine.

  • Spry Menu text cannot in one line?

    Hi all,
    Need your help!
    I always have this problem which is when i put the text on the spry menu, then the text like about bonvo / business division tab is on 2 lines in IE and firefox. But in safari, the text is layout so well in one line.
    Please refer to this link http://bonvo.com/corporate/index291009.html
    I try to change the width in css as in auto, 100% and inherit but no diffence and the best is i use 100%.
    Anyone know how to make it nicely fit one line whithout making the font size smaller?
    Thanks

    First off, I have not seen Spry Menu Bars implemented in quite the way you have done it. Typically, all my menu items are in one set of nested lists. No harm in your method, but it seems a little laborious!
    That said, I think the reason your menu items are stacking up on two lines is having to do with the padding. If you change the padding on the list items from 5px all around to 0 5px, zero top and bottom and 5px left and right, you will have given each of them just a little more elbow room and they should not break lines.
    Beth

  • Need a one line conkyrc

    It just makes more sense to have all the conky info on one line at the bottom or top of the screen. 
    can people post their one line conkyrcs pleaze?  Attach any scripts (I need a gmail checking one)
    my res is 1680x1050

    Screenshot:
    I don't display the gmail inbox. I use Terminus font without XFT, but with XFT Vera Sans mono looks great
    # Conky sample configuration
    # the list of variables has been removed from this file in favour
    # of keeping the documentation more maintainable.
    # Check http://conky.sf.net for an up-to-date-list.
    # set to yes if you want Conky to be forked in the background
    background no
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    font -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-1
    # Use Xft?
    #use_xft yes
    use_xft no
    # Xft font when Xft is enabled
    xftfont Bitstream Vera Sans Mono:size=8
    #xftfont Liberation Mono:size=8
    # Text alpha when using Xft
    xftalpha 0.8
    # Print everything to stdout?
    # out_to_console no
    # MPD host/port
    # mpd_host localhost
    # mpd_port 6600
    # mpd_password tinker_bell
    # Print everything to console?
    # out_to_console no
    # mail spool
    mail_spool $MAIL
    # Update interval in seconds
    update_interval 1.0
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    # Create own window instead of using desktop (required in nautilus)
    #own_window yes
    own_window no
    # If own_window is yes, you may use type normal, desktop or override
    own_window_type normal
    # Use pseudo transparency with own_window?
    own_window_transparent yes
    # If own_window_transparent is set to no, you can set the background colour here
    own_window_colour hotpink
    # If own_window is yes, these window manager hints may be used
    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    # Minimum size of text area
    #minimum_size 280 5
    # Draw shades?
    draw_shades yes
    # Draw outlines?
    draw_outline no
    #draw_outline yes
    # Draw borders around text
    #draw_borders yes
    draw_borders no
    # Draw borders around graphs
    draw_graph_borders yes
    # Stippled borders?
    stippled_borders 8
    # border margins
    border_margin 4
    # border width
    border_width 1
    # Default colors and also border colors
    default_color white
    default_shade_color black
    default_outline_color black
    # Text alignment, other possible values are commented
    #alignment top_left
    #alignment top_right
    alignment bottom_left
    #alignment bottom_right
    #alignment none
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    #gap_x 12
    gap_x 0
    gap_y 0
    #gap_y 12
    #gap_y 40
    # Subtract file system buffers from used memory?
    no_buffers yes
    # set to yes if you want all text to be in uppercase
    uppercase no
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    # Force UTF8? note that UTF8 support required XFT
    #override_utf8_locale no
    override_utf8_locale yes
    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer no
    # Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
    #max_port_monitor_connections 256
    # Maximum number of special things, e.g. fonts, offsets, aligns, etc.
    #max_specials 512
    # Maximum size of buffer for user text, i.e. below TEXT line.
    #max_user_text 16384
    # Timing interval for music player thread, e.g. mpd, audacious
    #music_player_interval (update_interval is default)
    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    #para que la cancion no descuadre
    maximum_width 1280
    minimum_size 1280
    # stuff after 'TEXT' will be formatted on screen
    TEXT
    ${color lightgrey}CPU: ${color #cc4444}$cpu% ${cpubar 7,50} ${color lightgrey}RAM: ${color}$memperc% ${membar 7,50} ${color lightgrey}Swap: ${color}$swapperc% ${swapbar 7,50} ${tab 10}${color lightgrey}DL: ${color #15F600}${downspeed eth0}k/s ${color #379902}${downspeedgraph eth0 7,50 379902 379902 768} ${color lightgrey}UL: ${color #FF2CAE}${upspeed eth0}k/s ${upspeedgraph eth0 7,50 FF2CAE FF2CAE 64} ${tab 32}${color lightgrey}MPD: ${color #88aadd}$mpd_status ${color #88aadd}$mpd_smart ${color lightgrey} Vol: ${mpd_vol}% ${alignr} ${color lightgrey} ${time %X}
    Last edited by noalwin (2008-05-05 19:50:14)

  • Why does my BIS email appear on one line regardless of punctuation?

    Can anyone help?
    I am using a BB Storm 9500 and wanting to use BIS email to receive and send my work emails.
    Unfortunately, when I reply (to one or all) or forward emails the text appears in one continuous line regardless of the punctuation I use.
    The signature also appears on one line despite having put paragraphs in.
    PLEASE HELP THIS IS DRIVING ME MADE.
    TJE

    tje1976 wrote:
    It appears as one line on both my device screen (only when non-HTML view is selected)
    It appears as one line on your device screen as you are composing a message? Or when you receive that same message?
    The BlackBerry ONLY sends email messages using text format, since and easy, with HTML.
    Different email readers, like Outlook, can designate to view it's recevied email in plain text only. I am guessing your email reader in Lotus might treating the received messages as having soft returns in the body, or something like that.
    I really don't know, I have seen something like you indicate, but rarely and it never bothered me.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to enter invoice with two different tax codes in one line?

    Dear friends,
    I have this PO for which I enter the invoice.
    I recieve later a subsequent debit for this PO from the transporter. This subsequent invoice has got extra debits, one with 21% VAT and one with 19% VAT, which means two items with two different tax codes.
    I want to enter this subsequent debit for each item of the PO, and I want to enter both debits in every item of the PO.
    How can I enter in one row in MIRO a debit with two different tax codes.
    Thank you.

    I want in the same line item to enter two tax codes.
    Do you Know if there is any way to do this?
    It is a subsequent debit and it has two items with two different tax codes. I want to enter the subsequent debit for a PO with many items and enter the value of the whole subsequent invoice. So there is the need to enter one line item with two tax codes.
    How can this be done?
    Thank you?

Maybe you are looking for