[Solved] Lua with Conky gives unwanted background color

Hi,
I've Googled and ransacked the forum looking for an answer. I have Conky with lua on KDE4 and I cannot run both together without creating an unwanted background. After getting sidetracked with KDE4 transparency considerations, I discovered that if I start Conky without Lua, I can get proper transparency. If I start Conky with Lua enabled I get a background color. The Lua script doesn't seem to have any background settings. I'm not sure what files are relevant to post, the conkyrc and or the Lua script, which is quite large. I'm reasonably au fait with Conky but this is the first Conky I cannot get to function correctly. My basic question is how to use Lua without starting a background color. Here is where I got the original files http://www.linuxandlife.com/2012/06/get … -your.html . Of course, I can post the relevant Lua file if necessary but, as I  mentioned, it is quite large and I'm not clear on forum rules regarding posting large files of this type. Here's how Conky starts Lua:
lua_load ~/.conky/avi9526_conky.lua
lua_draw_hook_pre Widgets
Thanks for your time.
In case anyone is interested, changing line 1236 of the Lua script to cairo_set_source_rgba(CairoContext, 0.6, 0.61, 0.62, 0.0) did the trick.
Last edited by Foxblood (2013-04-28 14:07:15)

If you set your minimum_size and maximum_width variables you can make it any size that you want.
So, lets say that you are using a 1280x1024 screensize.
You can set your minimum_size to be 1200.  If you don't provide a second option, you are specifying the width.
Then, if you set your maximum_width to be 1280,  or, if you want a 1 pixel gap on either side 1278,  then your conky will not go off the sides of the screen, and if you use any align option, then it will stay within that specified width.
P.S.  The reason that it doesn't go all the way across your screen right now, is because there is not enough information being displayed to warrant anything larger.
HTH
Last edited by Knute (2010-08-09 21:22:17)

Similar Messages

  • How can I give White background Color to a TreeNode?

    How can I give White background Color to a TreeNode?
    Class
    kMyTreeViewNodeWidgetBoss,
    kTreeNodeWidgetBoss,
    // IID_ICONTROLVIEW, kMyCustomTreeNodeControlViewImpl,
    IID_IMPSTRVSHADOWEVENTHANDLER, kTreeNodeEventHandlerImpl,
    IID_IEVENTHANDLER, kMPSTreeViewNodeEHImpl,
    IID_IDRAGDROPSOURCE, kMPSTreeViewDragDropSourceImpl,
    type MPSTreeViewNodeWidget(kViewRsrcType) : PrimaryResourcePanelWidget (ClassID = kMyTreeViewNodeWidgetBoss) {};
    resource MPSTreeViewNodeWidget (kMPSEditScrapNodeWidgetRsrcID + index_enUS)
    __FILE__, __LINE__,
    kMPSEditScrapTreeViewNodeWidgetId, kPMRsrcID_None, // WidgetId, RsrcId
    kBindLeft | kBindRight, // Frame binding
    Frame(0, 0, 300, 150), // Frame
    kTrue, kTrue, // Visible, Enabled
    "", // Panel name

    T Schneider, "White background an a TreeNode?" #1, 10 Feb 2009 3:16 am

  • [SOLVED] Gnome notification area has wrong background color

    I'm using the Shiki-Brave theme on Gnome and all (yes, all) of the tray icons have the wrong background color.  The color changes slighty if I select another Shiki theme, but is pretty close to the default gray.  Strangely, I only have this issue on my desktop at home -- none of my other machines (two laptops and a desktop at work) exhibit the problem.  I have ensured that the theme is exactly the same on all machines.  Another oddity is that other themes (e.g. high contrast inverse) have the right background color!
    The only thing I have managed to find via Google is a bug report against Gnome.  Here is what I have tried:
    * Removing and readding the applet to the panel.
    * Blowing away all my settings (rm -rf .gnome2 .gconf .gconfd .local) and setting things up again.  To be sure I did not miss anything, I also tried creating a new user with a clean home.  Still the same issue.
    * Removing and reinstalling all of the gnome and gnome_extra groups.  I even cleared the pacman cache to force a redownload.
    Any ideas?  I'm at a loss on what to try next.
    Thanks!
    Last edited by kdorf (2011-04-09 06:29:51)

    I figured out the problem.
    I have an NVIDIA card and I recently modified my X server to use Xinerama instead of TwinView.  Xinerama was responsible for all this nastiness.  Reverting to TwinView fixed the problem (and some other weird ones that started popping up).
    Those of you with NVIDIA cards, avoid Xinerama!

  • How to give Common Background color for all JPanels in My Swing application

    Hi All,
    I am developing a swing application using The Swing Application Framework(SAF)(JSR 296). I this application i have multiple JPanel's embedded in a JTabbedPane. In this way i have three JTabbedPane embedded in a JFrame.
    Now is there any way to set a common background color for the all the JPanel's available in the application??
    I have tried using UIManager.put("Panel.background",new Color.PINK);. But it did not work.
    Also let me know if SAF has some inbuilt method or way to do this.
    Your inputs are valuable.
    Thanks in Advance,
    Nishanth.C

    It is not the fault of NetBeans' GUI builder, JPanels are opaque by default, I mean whether you use Netbeans or not.Thank you!
    I stand corrected (which is short for +"I jumped red-eyed on my feet and rushed to create an SSCCE to demonstrate that JPanels are... mmm... oh well, they are opaque by default... ;-[]"+)
    NetBeans's definitely innocent then, and indeed using it would be an advantage (ctrl-click all JPanels in a form and edit the common opaque property to false) over manually coding
    To handle this it would be better idea to make a subclass of JPanel and override isOpaque() to return false. Then use this 'Trasparent Panel' for all the panels where ever transparency is required.I beg to differ. From a design standpoint, I'd find it terrible (in the pejorative sense of the word) to design a subclass to inconsistently override a getter whereas the standard API already exposes the property (both get and set) for what it's meant: specify whether the panel is opaque.
    Leveraging this subclass would mean changing all lines where a would-be-transparent JPanel is currently instantiated, and instantiate the subclass instead.
    If you're editing all such lines anyway, you might as well change the explicit new JPanel() for a call to a factory method createTransparentJPanel(); this latter could, at the programmer's discretion, implement transparency whichever way makes the programmer's life easier (subclass if he pleases, although that makes me shudder, or simply call thePanel.setOpaque(false) before returning the panel). That way the "transparency" code is centralized in a single easy to maintain location.
    I had to read the code for that latter's UI classes to find out the keys to use (+Panel.background+, Label.foreground, etc.), as I happened to not find this info in an authoritative document - I see that you seem to know thoses keys, may I ask you where you got them from?
    One of best utilities I got from this forum, written by camickr makes getting these keys and their values very easy. You can get it from his blog [(->link)|http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/]
    Definitely. I bit a pair of knucles off when discovered it monthes after cumbersomely traversing the BasicL&F code...
    Still, it is a matter-of-fact approach (and this time I don't mean that to sound pejorative), that works if you can test the result for a given JDK version and L&F, but doesn't guarantee that these keys are there to stand - an observation, but not a specification.
    Thanks TBM for highlighting this blog entry, that's the best keys list device I have found so far, but the questions still holds as to what specifies the keys.
    Edited by: jduprez on Feb 15, 2010 10:07 AM

  • [solved] Issue with conky and Kde 4

    I have a small issue with conky and KDE 4.2. I start conky with a script which I stored under ~/.kde/Autostart. The script is simple and looks like this..
    conky -c ~/.conkyrc_kde4
    This works fine. But when I restart the first KDE and check with ps, I have 2 instances of conky running. The instances keep on growing with the number of restarts.
    I think kde tries to restart all the apps which were running when the session was terminated. Is there a way to change this behavior in general or all the programs or for only a specific program like conky ?
    Last edited by rangalo (2009-07-28 19:02:17)

    I did
    Systemsettings > Advanced > Session Manager > Start with an empty session
    and put everything you want in Autostart

  • Links with unwanted background color

    In certain browsers, my Dreamweaver MX site has bluish grey
    backgrounds on al of the link boxes. Does anyone have info on
    removing these? You can view my site at lacymetals.com. Maybe
    you'll see them, maybe you won't.:confused
    ~jessica

    (_seb_) wrote:
    > scrabbled wrote:
    >> In certain browsers, my Dreamweaver MX site has
    bluish grey
    >> backgrounds on al of the link boxes. Does anyone
    have info on removing
    >> these? You can view my site at lacymetals.com. Maybe
    you'll see them,
    >> maybe you won't.:confused
    >> ~jessica
    >>
    >
    > your html is a mess, clean it:
    >
    > <td height="19" colspan="3"
    background="images/background.png"
    > class="unnamed1 style6"><span
    class="style6"><font face="Bickley Script"
    > size="+3"><span class="unnamed1"><font
    face="Bickley Script"
    > size="4"><b><b><font
    size="+3"><font face="Bickley Script"><a
    > href="alphabet%20pendants.htm"
    onMouseOut="MM_swapImgRestore()"
    >
    onMouseOver="MM_swapImage('ap','','library/ap.png',1)"><img
    > src="library/apover.png" name="ap" width="400"
    height="50"
    >
    border="0"></a></font></font></b></b></font></span></font></span></td>
    >
    > this code contains lots of duplicate and unecessary
    tags. The link is an
    > image so you don't need any of the (duplicate and
    deprecated) font
    > formatting tags, and can simply replace the above code
    with this:
    >
    > <a href="alphabet%20pendants.htm"
    onMouseOut="MM_swapImgRestore()"
    >
    onMouseOver="MM_swapImage('ap','','library/ap.png',1)"><img
    > src="library/apover.png" name="ap" width="400"
    height="50" border="0"></a>
    >
    > Same goes for all your image links...
    >
    > Then, you link to this page:
    >
    > alphabet%20pendants.htm
    >
    > The "%20" is the html code for an empty space in a link,
    which means
    > your page name is:
    > "alphabet pendants.htm"
    >
    > I'd better not use empty spaces in your page names, this
    will bring
    > problems. Use underscore instead:
    >
    > "alphabet_pendants.htm"
    >
    >
    >
    >
    OOPS! sorry, I meant:
    replace this:
    <td height="19" colspan="3"
    background="images/background.png" class="unnamed1
    style6"><span
    class="style6"><font face="Bickley Script"
    size="+3"><span class="unnamed1"><font face="Bickley
    Script" size="4"><b><b><font
    size="+3"><font face="Bickley Script"><a
    href="alphabet%20pendants.htm"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('ap','','library/ap.png',1)"><img
    src="library/apover.png" name="ap" width="400" height="50"
    border="0"></a></font></font></b></b></font></span></font></span></td>
    with this:
    <td height="19" colspan="3"
    background="images/background.png" class="unnamed1 style6"><a
    href="alphabet%20pendants.htm"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('ap','','library/ap.png',1)"><img
    src="library/apover.png" name="ap"
    width="400" height="50" border="0"></a></td>
    (you need to keep the td tag!)
    This goes for all your image links
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • [SOLVED] Problem With conky and or xcompmgr

    So I tried to search for this issue but i don't know quite how to explain through words on what is going on. basically i got corky installed. and so when i login my screen all around corky doesn't refresh. and i believe this to be because of xcompmgr. because thats when I installed it that is when my problem started. so here is a screenshot
    Last edited by Sicariuxs (2012-11-14 21:13:45)

    no i don't have the problem when xcompmgr is running (lol didn't mean corky!! kept thinking about league of legends xD) but the problem is that if i don't have xcompmgr running that i don't have true trnasparancy on guake or any of my other applications. what i believe it to be is that maybe conky doesn't do so well with compositing. because this also has happened to me with compiz. but i know it has to be possible to combine the two! i've seen it done all over youtube. but i keep getting this problem. any suggestions? and thanks for the quick response

  • Unwanted background color creating PDf from Word 2010

    I'm creating a PDF from Word 2010 using the built-in "Save as Adobe PDF" distiller. All of a sudden the created PDF has a pale yellow background, except for text boxes and images. I have no ide where the background tint came from. How do I get rid of it?

    It's probably related to a transparency issue. Try selecting the background and deleting it using the editing tools - depending on what version of Acrobat you're using, you may find it easier to do this using the Content Navigation pane.

  • Problem with cfdocument and background colors with table borders

    i am having a great deal of difficulty with cfdocument
    rendering my tables with cells that have background colors. the
    background colors seem to bleed through the table border. a picture
    at 100% magnification can be seen at
    http://www.vitad.com/cfdoc.jpg
    and at 1600% magnification at:
    http://www.vitad.com/cfdoc2.jpg.
    i am attaching sample code of the what generated the pdf in the
    pictures. btw, i am running cfmx 7 with hot fix 2.

    Hi fresher4flex,
    Since you are using the item Renderer for the DataGrid Column try to apply the styles dynamically to the background of your itemRenderer by making using of the rollOver and rollOut events.
    Thanks,
    Bhasker

  • Problem in setting the background color of jtable with Nimbus

    Hi
    I have created a java swing application. In which I am using JTable.
    When creating a simple JTable and displaying with Nimbus, the row background color alternates between white and a light blue-grey.
    I want the table with single colour. Only the first column should be grey colour and other should be white.
    I used this code to set the background and foreground colour.
    public Component prepareRenderer
        (TableCellRenderer renderer, int index_row, int index_col){      
                Component objComponent = super.prepareRenderer(renderer, index_row, index_col);         
                Color objGreyColour = new Color(240,240,240);
                Color objWhiteColour = new Color(255,255,255);
                if(index_col == 0){
                    objComponent.setBackground(objGreyColour);
                    objComponent.setFont(new java.awt.Font(CommonClass.getFontName(),java.awt.Font.BOLD, CommonClass.getFontSize()));
                    objComponent.setForeground(Color.BLACK);
                }else{               
                    setSelectionBackground(Color.BLUE);
                    objComponent.setBackground(objWhiteColour);
                    objComponent.setForeground(Color.BLACK);
                return objComponent;
            } Look wise it is fine but when i try to select the cell it is not highlighting the cell and also i m not able to select multiple cell with ctrl key.
    Any help would be appreciated
    Thanks
    Sonal

    Hello,
    1) if you want better help soone,r please post an SSCCE (http://sscce.org) instead of a code extract.
    2) selection highlighting is lost because your code... doesn't handle selection. To take selection into account, you can use <tt>if (super.isRowselected(index_row)) {...}</TT>.
    Regards,
    J.

  • Div background color

    hi:
    PHP, MySQL
    i have a master page where each row is displayed using an
    inline list
    with text pulled fron a DB and 2 of the <li> with
    background color/image
    specified in the CSS div
    what i need is filling the lower item background to the same
    height as
    the taller one. is it possible with lists and CSS or should i
    deal with
    a table?
    you can see what i mean here where the the first "column"
    should have
    the background color covering the row height:
    http://82.223.148.78/test/jdoe/images/activities_master.gif
    tia,
    jdoe

    Steve wrote:
    > If you post your URL or code, we can probably solve
    this.
    i moved from list to table, i need to see if i have a backup
    > I'm thinking that
    > you'll need to force the height attribute on the list
    item so that all of
    > the <li> sections are the same height. But I can't
    be sure without seeing
    > the code.
    i tried it and it works. but then every "row" has the same
    height no
    matter how long the content is. and what i need is them
    adjusting its
    height according to the content as it occurs in tables. or in
    lists
    without height (but with the problem that background colors
    only cover
    the area with content as in the screen capture in the link at
    the bottom
    >
    > Steve
    >
    > "John Doe" <[email protected]> wrote in message
    > news:[email protected]...
    >> hi Steve:
    >>
    >> i finally used a table, quit and easy. anyway, i'm
    curious how to do it
    >> with CSS and lists
    >>
    >> thanks for your advice,
    >>
    >> jdoe
    >>
    >> Steve wrote:
    >>> Hi JD
    >>>
    >>> IMHO, it's usually better to use a table for
    repeating database output,
    >>> but I'm sure that this can be done using CSS and
    <li> only if you want.
    >>> Could you post a URL to your page?
    >>>
    >>> If you decide to use a table, read this:
    >>>
    >>>
    http://www.web-max.ca/PHP/misc_14.php
    >>>
    >>> Steve
    >>>
    >>> "John Doe" <[email protected]> wrote in
    message
    >>> news:[email protected]...
    >>>> hi:
    >>>>
    >>>> PHP, MySQL
    >>>>
    >>>> i have a master page where each row is
    displayed using an inline list
    >>>> with text pulled fron a DB and 2 of the
    <li> with background color/image
    >>>> specified in the CSS div
    >>>>
    >>>> what i need is filling the lower item
    background to the same height as
    >>>> the taller one. is it possible with lists
    and CSS or should i deal with
    >>>> a table?
    >>>>
    >>>> you can see what i mean here where the the
    first "column" should have
    >>>> the background color covering the row
    height:
    >>>>
    >>>>
    http://82.223.148.78/test/jdoe/images/activities_master.gif
    >>>>
    >>>>
    >>>> tia,
    >>>>
    >>>> jdoe
    >>>>
    >>>>
    >

  • Rules and background color inaccuracy.

    I set up a simple rule that will give a background color to all senders that are in my address book. strangely, some of the sender messages are of that color and other ones, same address, not colored at all.
    Anyone have an idea why this is not consistent?

    Rules are normally applied to messages as they arrive in a inbox. However, you can reapply rules to messages you select in a mailbox's list with Mail's Messages -> Apple Rules menu item.
    In either case, Mail works through the rules, starting with the first rule in the "Rules" pane of Mail's preferences & working down the list until either an action stops the process or the last rule is reached. Since some rules may affect a rule farther down the list, you need to be aware of how the order of rules in the list can change the outcome.
    For more help with this, click the purple circle with a "?" in it in the Rules pane of Mail's preferences.
    Note also that rules perform actions based on conditions & those actions are not "undone" if the rule is removed. (IOW, actions are permanent changes.) So your previously color-changed messages will remain that color until some other action (yours or a rule's) changes them to some other one. Unfortunately, there is no rule condition to test for the color of a message, so you can't just create a new rule to selectively change your colored ones back to the default.

  • How do I ge tthe background color of a browser window.

    How do I get the default backgound color of a browser. I made my Applet with white as the background color. My supervisor's IE settings makes his IE background color tan. Is there any way I can read that "tan" from somewhere and use that as my Applet background color?

    I am trying that, but it doesn't look like it is taking the parameters...
    I display the text on the html page as well, it seems to display ok, but the applet is not taking the parameter.
    <applet
      codebase = "."
      code     = "graphapplet.GraphApplet.class"
      name     = "TestApplet"
      width    = "400"
      height   = "300"
      hspace   = "0"
      vspace   = "0"
      align    = "middle"
    >
    <SCRIPT LANGUAGE="JavaScript">
    document.write("<param name = \"bgColor\" value = \"" + document.bgColor + "\">");
    </SCRIPT>
    <param name = "Filename" value = "data.txt">
    </applet>
    <SCRIPT LANGUAGE="JavaScript">
    document.write("param name = \"bgcolor\" value = \"" + document.bgColor + "\"");
    </SCRIPT>

  • How to set JTable row background color

    Hello,
    I have seen JTable with rows having alternate background color (mostly white and light blue). How can i set the same.
    Thanks,
    Deepak

    Well, i am new user to forum and so have no idea if this question has been asked previously "countless" times.Which is why you "search first" and "ask later". How to you expect to find out what valuable information is in the forum without learning how to do a simple search. This goes for any forum on the web you might use, so don't use the "I'm a new user" excuse.

  • Background Color to a Window

    A right click on a window such as, say, Documents or any subwindow within that window such as Pictures will reveal a menu that includes "Show View Options". Among other things the view options allow one to change the background appearance. One may choose from white, color or picture. I like to select "color" and choose from the palette a very light gray and then click "OK" This cuts down on the glare of a pure white background. The problem is that the color selection does not hold. The next time I return to that window the background is of another color, sometimes so dark as to be near black. I can reset the color back to the light gray, and as often as not the next time I open that window the color is back to a much darker color again. Help would be appreciated.

    OK, a further look seems to indicate that the unwanted background color change occurs only in a window containing thumbnail picture images (is that redundant?) For instance in Documents - Pictures - and then,say, Church Renovation, the background color in the Church Renovation window is not stable. It's different every time I open that window. Still need help.

Maybe you are looking for

  • NFS-e Município de Salvador-BA (Certificado IMBUI)

    Pessoal, Temos atualmente uma customização da solução de NF-e para NFS-e Município de Salvador-BA. Recentemente eles fizeram um ajuste no sistema deles, pois pelo que eles falaram antigamente não havia validação alguma, mensagem, assinatura, etc. A a

  • OIM-OID Provisioning - OID Group PrePopulate Approach :

    Hi, I am working on OID Connector 9.0.1.14 with OIM 11.1.1.5. I have reconciled all the Roles and Groups from OID to OIM and can successfully provision users to the OID along with membership to these specific Roles and Groups. I want to prepopulate t

  • Oracle Developer 6.0 installation problem..

    While in the process of installing Oracle Developer 6.0, using Oracle Installer 3.3.1.0c, the installer indicates that the intsallation can not go on since there are Oracle services running and that I have to stop all Oracle services or applications

  • 5800 GPS Not receving anymore

    The gps on my 5800 started to connect to my telephone operator to receive his location (over the internet) and after this he couldn't connect connect to the satellite any suggestions to solve this problem? What are the consequences of a reset

  • BI system copy without the Java :consequences ?

    Hello, We have a SAP BI.7 environnement that we are going to sopy from PRD to QAS. Actually, our SAP BI.7 includes two different systems the BI-ABAP and the BI-JAVA hosted by two different hosts. We have been asked to copy only the BI-ABAP system, no