[SOLVED]Conky Align Text Center

I am trying to align my conky so
that the middle of the text is in the middle of the top of the screen. My screen is 1200x800. Any suggestions?
use_xft yes
xftfont cure:size=8
update_interval 1
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type desktop
own_window yes
double_buffer yes
maximum_width 1680
draw_shades no
draw_outline no
draw_borders no
stippled_borders 0
border_margin 5
border_width 1
default_color 42c4d3
alignment top_right
gap_x 430
gap_y 5
no_buffers yes
uppercase no
override_utf8_locale yes
use_spacer none
TEXT
${time %A}, ${color ffffff}${time %B}${color} ${time %d}${color ffffff} // ${color}CPU0:${color ffffff} ${cpu cpu0}% ${color}CPU1:${color ffffff} ${cpu cpu1}% // ${color}RAM:${color ffffff} ${mem} // ${color}Root: ${color ffffff}${fs_free_perc /}% // ${color}Mac: ${color ffffff}${fs_free_perc /mnt/mac}% // ${color}Email:${color ffffff} ${execi 300 perl ~/.scripts/imap.pl n} // ${color}Arch:${color ffffff} ${texeci 300 perl ~/.scripts/updates2.pl}${color}
${color}External IP: ${color ffffff}${execi 3600 wget -O - http://ip.tupeux.com | tail} // ${color}Time:${color ffffff} ${time %R} // ${color}Battery:${color ffffff} ${battery BAT0} // ${color}Network: DOWN ${color ffffff}${downspeed wlan0} // ${color}UP${color ffffff} ${upspeed wlan0} // ${color}Uptime ${color ffffff} $uptime
${color}Title: ${color ffffff}$mpd_title // ${color}Artist: ${color ffffff}${mpd_artist 30} // ${color}Music Stats:${color ffffff} $mpd_elapsed/$mpd_length//$mpd_percent%
Thanks
Last edited by duke11235 (2010-10-25 00:16:54)

Interestingly enough, instead of fixing the problem, It aligns it with the middle left corner. So half is now off the screen.
use_xft yes
xftfont cure:size=8
update_interval 1
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type desktop
own_window yes
double_buffer yes
maximum_width 1680
draw_shades no
draw_outline no
draw_borders no
stippled_borders 0
#border_margin 5
border_width 1
default_color 42c4d3
alignment top_middle
gap_x 430
gap_y 5
no_buffers yes
uppercase no
override_utf8_locale yes
use_spacer none
TEXT
${alignc}${time %A}, ${color ffffff}${time %B}${color} ${time %d}${color ffffff} // ${color}CPU0:${color ffffff} ${cpu cpu0}% ${color}CPU1:${color ffffff} ${cpu cpu1}% // ${color}RAM:${color ffffff} ${mem} // ${color}Root: ${color ffffff}${fs_free_perc /}% // ${color}Mac: ${color ffffff}${fs_free_perc /mnt/mac}% // ${color}Email:${color ffffff} ${execi 300 perl ~/.scripts/imap.pl n} // ${color}Arch:${color ffffff} ${texeci 300 perl ~/.scripts/updates2.pl}${color}
${alignc}${color}External IP: ${color ffffff}${execi 3600 wget -O - http://ip.tupeux.com | tail} // ${color}Time:${color ffffff} ${time %R} // ${color}Battery:${color ffffff} ${battery BAT0} // ${color}Network: DOWN ${color ffffff}${downspeed wlan0} // ${color}UP${color ffffff} ${upspeed wlan0} // ${color}Uptime ${color ffffff} $uptime
${align_c} ${color}Title: ${color ffffff}$mpd_title // ${color}Artist: ${color ffffff}${mpd_artist 30} // ${color}Music Stats:${color ffffff} $mpd_elapsed/$mpd_length//$mpd_percent%
-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code --

Similar Messages

  • How to align text {center/left/right} in  the column of ALV grid

    Hai all,
    I am displaying one check box in the ALV grid, but default it is coming left align in the column,
    how can i assign it to the center of the column.
    Thanks,
    SREEVATHSAVA.G
    Edited by: SREE on Aug 14, 2009 7:53 AM

    Hi,
    DATA:
      lr_model type ref to cl_salv_wd_config_table,
      lr_col type ref to cl_salv_wd_column.
    lr_col = lr_model->if_salv_wd_column_settings->get_column( 'EMPID' ).
    lr_col->SET_H_ALIGN(value = CL_WD_TABLE_COLUMN=>E_H_ALIGN- CENTER).
          AUTO TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '00', " TableColumnHAlign.auto
          CENTER TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '01', " TableColumnHAlign.center
          FORCED_LEFT TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '04', " TableColumnHAlign.forcedLeft
          END_OF_LINE TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '05', " TableColumnHAlign.endOfLine
          FORCED_RIGHT TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '06', " TableColumnHAlign.forcedRight
          BEGIN_OF_LINE TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '07', " TableColumnHAlign.beginOfLine
    Regards,
    Lekha.

  • How to align text(left, right or center) on a button?

    I can not figure out how to align text on a button,
    could someone help me out?
    Thanks in advance

    JButton btn=new JButton("hi");
    btn.setHorizontalAlignment(int i)
    i=0 center
    i=2 left
    i=4 right

  • Aligning Text in Center of JOptionPane

    Hi,
    I am trying to display messages using JOptionPane and a JDialog.
        JOptionPane pane = new JOptionPane(message,
                                           message_type,
                                           option_type,
                                           icon,
                                           options,
                                           initial_value){
          public int getMaxCharactersPerLineCount() { return    default_characters_per_line; }
        JDialog dialog = pane.createDialog(parent_component, title);
        dialog.setVisible(true);I want to be able to control the number of characters per line which I have found how to do, and to control the alignment of the text. I have not being able to work out how to control the alignment of the text. I would like to be able have the text centered so a long line followed by a short line is displayed nicely.
    I have tried using <html><center>My Text</center></html>, however, 1stly the html tags are counted as character therefore shortening the 1st line and secondly is the message is over several line then the tag are broken up and not interpreted properly.
    Any assistance greatly appreciated.
    Leon

    //Create the dialog.
                        final JDialog dialog = new JDialog(frame,
                                                           "A Non-Modal Dialog");
                        //Add contents to it. It must have a close button,
                        //since some L&Fs (notably Java/Metal) don't provide one
                        //in the window decorations for dialogs.
                        JLabel label = new JLabel("<html><p align=center>"
                            + "This is a non-modal dialog.<br>"
                            + "You can have one or more of these up<br>"
                            + "and still use the main window.");
                        label.setHorizontalAlignment(JLabel.CENTER);
                        Font font = label.getFont();
                        label.setFont(label.getFont().deriveFont(font.PLAIN,
                                                                 14.0f));extract from
    http://java.sun.com/docs/books/tutorial/uiswing/examples/components/DialogDemoProject/src/components/CustomDialog.java

  • Aligning Text in Center of JTextArea

    This is a part of my previous question.
    Is there a way of aligning text, left-center-right in the JTextArea.
    Someone had mentioned JTextPane for aligning Text in the center. What is the code for this?
    Thanks again for your help.

    I'm sorry. I am new at Java so some of these concepts that may be clear to you aren't as obvious to me.
    I inserted the code as you instructed. However, I am not sure if I have to include something else.
    Please advise:
    import javax.swing.*;
    public class HelloClassTwoLine
    public static void main(String args[])
    JTextArea outputTextArea = new JTextArea(); //Create listbox object
    JScrollPane scroll= new JScrollPane(outputTextArea); //create vertical scroll object
    ===> added to original code JTextField textField=new JTextField();
    ===> added to original code textField.setHorizontalAlignment(textField.CENTER);
    outputTextArea.setText("Hello, This is Java 374\n" + //set text in list box
    "This is Java 374 with Ravi");
    JOptionPane.showMessageDialog(null, scroll, //text is argument in JScrollPane object
    "Java Program #2", JOptionPane.INFORMATION_MESSAGE);
    System.exit(0);
    thank you again for your help
    }

  • Problems Aligning Text in Headers and Footers

    I have tried to add headers and footers to documents and the  alignment is wrong.  The center footer/header should be center-aligned  and the right header/footer should be right-aligned.  Unfortunately,  they are both left-aligned.
    The preview shows the headers and footers aligned correctly, but when  the headers/footers are inserted in the document, the alignment reverts  to left aligned, although it is centered and on the right side of the  page, as appropriate.
    This is not a problem in Acrobat 7.
    Please advise if this is a bug and is awaiting an update, or if there is  something that I need to do to fix this problem.
    This is a screen shot of the preview windowindicating the proper alignment as indicated in the ovals:
    Here is the actual document once the header and footer are added.  Notice how the alignment switches to flush left:
    Any guidance is appreciated.
    Thanks.
    - James

    Nope.  The good folks at Adobe have neither addressed this issue (and I have
    heard from others that it is a problem for them as well) nor have they been
    very good about maintaining my account to be able to log in and follow up on
    it.
    The truth of the matter is that it appears to be a glitch in some, but not
    all, versions of this product and clearly it is not a big enough problem for
    them to want to fix it.
    I wind up using Acrobat 7 when I need properly formatted headers and footers
    or ‹ and this ought to get the attention of the folks at Adobe and maybe
    prompt someone (anyone!) to take a look and fix this glitch ‹ you should
    check out PDFPen.  It does much of what Adobe can do including headers and
    footers.
    If I didn't already have Acrobat 7 (and 8 and now 9), I would ditch Acrobat
    and just use Preview or PDFPen.
    - James
    From:  superfluities1 <[email protected]>
    Reply-To:  <[email protected]>
    Date:  Tue, 04 Jan 2011 12:11:19 -0700
    To:  "James A. Sarna, Esq." <[email protected]>
    Subject:  Problems Aligning Text in Headers and Footers
    Anybody ever solve this problem? I just started using(trying too, that is)
    Acrobat Pro for writing letters and starting at the top I ran right into
    this problem. Seems like a deal killer.

  • Photo grid alignment - cannot align or center vertically

    I'm adding photos into a photo grid and cannot center them vertically within the blue box of the grid. I'm using 1 column so that each photo appears as large as possible. I've cropped and edited the photos in iPhoto, so some are horizontally shaped while most are portrait shaped. They automatically want to position themselves in the blue photo box, not allowing me to center them vertically so that their spacing on the photo page appears more even. Adjusting spacing on the photo grid pop-up does not help this problem.
    Is there a way to center vertically a photo within a single column photo grid?

    Thank you, but the problem has not been solved. When I click on the narrow line blue box and go to Arrange-Align Objects-Center, only the first photo in the group moves position. All other photos, relative to each other, have uneven spacing, especially vertically. Either there is lots of space between them, or they are jammed together - all depends on their shape. When I try to Command Click each photo to then Arrange-Distribute Objects-Vertically, these menu options are not available (gray). It works on text blocks, and individually placed photos in other areas, but not on photos brought into a photo grid. Unless each photo is exactly the same shape and size, spacing and aligning in the grid is very uneven. Any more ideas?

  • Vertically align text

    Hi
    Is it possible to vertically align text within a frame?
    Thanks

    Wade_Zimmerman wrote:
    I really do not think there is a reason to do this but if the OP has a good reason or wants to tell us why they need this we might be abe tooffer them a better way.
    I searched for a solution to this myself and missed this thread before i posted my own thread. but I find it odd how when this is asked for people are asked to give a good reason to use the bounding box, or like here told that there is no reason to need this. Well here is my current situation.
    I have a project that has 500+ peices. I am using data sets and variables.xml  to create them all quickly.
    Each one consists of a 1 of  three logos and 1 of 500+ lines of text and all the lines of text are  different lengths
    Now the problem I am having is getting the  text to wrap properly instead of running off the art board. This was easilly solved by using a text box. Now I am faced with a new issue, One line texts are all sitting really high on the artwork.
    So I would like to center all text vertically inside the box

  • How to align text in drawstring method

    hai,
    i'm using drawString method in my application. i'm using it to draw certain data in a editorpane. in that i have to align the text content but i don't know how to align the text in it such as right alignment,left alignment and center alignment...

    JEditorPanes render text on their own, there shouldn't be any reason to call Graphics.drawString() on your own, unless perhaps you are creating custom Views.
    In any case, we cannot help you unless you post an SSCCE .

  • Cannot Align text in cell

    Greetings,
    I am having issues when trying to format my spreadsheet.  First of all, I have "Wrap Text in Cell" option turned on.  So when I have text that can fit into the cell, its fine.  But when I have long text in the cell, it wraps the text in the cell so it can fit inside, which I'm fine with.... but for some reason, it is not aligning it in the cell properly, so now part of the text it cut off.  I try to center align the text, but no use. I hit the button for "Align text in the middle of the table cell", and still does not align the text so that its centered, not cut off. I have included an image of what im talking about. Help please?

    Hello
    Here is what I get with Times New Roman under 10.6.8
    May you try to
    quit Pages
    trash the preferences file :
    <startupVolume>:Users:<yourAccount>:Library:Preferences:com.apple.iWork.Pages.pl ist
    restart Pages
    It it changes nothing, try to :
    quit Pages
    trash the preferences file :
    <startupVolume>:Users:<yourAccount>:Library:Caches:com.apple.iWork.fonts
    restart Pages
    Yvan KOENIG (VALLAURIS, France) mercredi 24 août 2011 21:24:52
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Align Text in Textbox

    Just upgraded to CS4 when I'm used to working with CS2. I'm trying to align the text in the center of a textbox in InDesign. Now in CS2 the option shows up on the top when you select the textbox. Now that I'm trying to do it in CS4 I can't find the option to "align top", "align center", or "align bottom". Can someone tell me where in the program they moved this option?

    Select the text frame with the Selection tool. The frame alignment options should be in the Control Panel, at the right, between the column fields and the Align icons.
    Also, are you using the Advanced Workspace... or the default Essentials (which lacks many essentials)?
    -mt
    PS: You can also access the control via the
    Object > Text Frame Options...
    CMD+B menu. The Vertical Justification drop down menu gives you the Align Top/Center/bottom/justified that I believe you are seeking.

  • How to vertically align text in a table in Pages09

    Why cant I do a vertical text alignment to center text in a table cell that has been resized

    Hi tundra,
    In Pages '09, use the Text Tab in Inspector. Select the cell(s) and
    Or
    Regards,
    Ian.

  • Aligning text in JLabel

    Hi all,
    I'm simply trying to align text in a JLabel.
    I've been trying to use HTML formatting inside the JLabel, e.g:
    label = new JLabel (" <HTML><CENTER><P>Line one</P> <P>Line two</P></CENTER> </HTML>" );but when I try to use the <CENTER> tag it seems to be ignored?
    Why?
    How do I get around this?
    Many thanks.

    You can use the following code segment:
    JLabel ab = new JLabel("GG" ,  SwingConstants.CENTER);Hope it helps.
    --DM                                                                                                                                                                                                                                                                       

  • How to right align text in JTextArea

    Can u plz tell me how to right align text in JTextArea

    what do you mean by align text in java you mean you have a default text that align in the center is it?
    can you please explain ur question clearly
    Thanks

  • Left-aligning text in Final Cut 7

    I am using Final Cut Pro Version 7.0.3, doing mostly subtitles for TV series.
    Because of the amount of titles done daily, and because we left-align around 30% of all our subtitle text, I would save a lot of time if there was a keyboard shortcut to left-align text in the subtitle clips.
    Text Settings under the Control tab in the Viewer, automatically chooses Center Alignment, which is fine, but how can I left-align text without having to choose from the Alignment options? I could not find this option in the keyboard layout, so I could not assign a key for left-alignment.
    Does anyone know how to do this?

    This is not a direct answer to your question, but in my experience most FCP-7 users don't use the Text option in text intensive projects. As you have discovered, the Text options are limited.
    Instead they use Boris Title 3D which is bundled in FCP-7:
    Boris Title 3D gives you much more control over your text, and defaults to left justification:
    You might take a look and see if using this tool (which Apple provided to address the shortcomings of the Text generator) can help you.
    MtD

Maybe you are looking for

  • 6th Gen sorting issues

    iPod software: 2.0.1 iTunes software:.10.5.1.42 Windows 7 Pro 64 bit SP 1 I'm a strong supporter of proper sorting. So much so that I add the year of release to the Sorting > Sort Album field to bypass the alphabetical sorting iTunes seems to prefer.

  • Things to be considered before AD - domain and forest functional level upgrade (win 2003 to 2008 R2)

    Hi Recently we introduced Windows 2008 R2 DCs and decommissioned old Windows 2003 domain controllers. Since we are not sure about the application compatibility (both MS and 3rd party) many times we postponed the plan to upgrade the DFL and FFLs. We f

  • Unable to open  jar files in Fedora

    Unable to open jar files in Fedora core 5 and getting an error messege java -jar ezim.jar Exception in thread "main" java.lang.ClassFormatError: org.ezim.core.Ezim (unrecognized class file version) at java.lang.VMClassLoader.defineClass (libgcj.so.7)

  • Premiere CC rendering delay at 100% (Multiplexing)

    When i've tried to export a huge H264 MP4 file, multiplexing happens when rendering hits 100% following with file renaming to "_00_" extension and rewriting from scratch. And if the file size is big, it takes a lot of extra time resulting in unnecess

  • Valid pdfs crashing Reader when linked

    If anyone could shed any light on this I'd be grateful. http://www.dvbny.com/05_special/pricing.htm The linked price sheet pdfs open in the browser on my machines - I have warned people how big they are but the customers want them. Haven't discovered