[Solved] Simple Conky config to view in dzen2.

Hello.
Many peapole here use conky.
I want to start use it on my dzen2 bar.
But I have few problem's.
For now I need conky to viev info about mpd status, and clock nothing else.
I tried  many config's but no luck some viev only dzen2 bar some use default config form /etc/conky and I see it own big window.
Maybe someone use conky to viev it on dzen2 bar without problem's.
Please post your config or tell me what I doing wrong .
Thanks.
Last edited by SpeedVin (2009-08-25 17:45:58)

here's mine for reference: mpd, cpu, mem, clock:
background no
out_to_console yes
out_to_x no
update_interval 1
total_run_times 0
mpd_host 192.168.0.5
mpd_port 6600
TEXT
MPD: [ ${mpd_status}${if_mpd_playing}- ${mpd_elapsed}/${mpd_length}$endif ] ${mpd_title} by ${mpd_artist} from ${mpd_album} Cpu: ${cpu}% Mem: ${memperc}% Net: ${downspeedf eth0} / ${upspeedf eth0} ${time %a %b %d %H:%M}

Similar Messages

  • Simple xml config file

    I have created a simple config file using something like:
          XMLEncoder e = new XMLEncoder(
                                      new BufferedOutputStream(
                                          new FileOutputStream("Config.xml")));
          e.writeObject(base.toString());
          e.writeObject(numberFrom);
          e.writeObject(numberTo);
          e.writeObject(numberPad);
          e.writeObject(maxTasks);
          e.writeObject(maxSubTasks);
          e.writeObject(textFrom);
          e.writeObject(textTo);
          e.close();which produces a file like:
    <?xml version="1.0" encoding="UTF-8"?>
    <java version="1.4.2_05" class="java.beans.XMLDecoder">
    <string>C:\</string>
    <int>1</int>
    <int>20</int>
    <int>2</int>
    <int>0</int>
    <int>1</int>
    <string>a</string>
    <string>z</string>
    </java> I want to make it a bit more version proof so need to get something more like:
    <?xml version="1.0" encoding="UTF-8"?>
    <program name=myprog>
    <dir>C:\</dir>
    <version>1</version>
    <myval1>20</myval1>
    <myval2>2</myval2>
    </program>There's probably loads of errors in that bit;) but you get the idea. I'm a bit new to xml programming.
    Can anyone give me any urls of help or examples that might do this?
    Thanks,
    David.

    You could use a binding api such as JAXB or xmlbeans. In essence these apis abstract the xml as pure java objects. Alternatively you could use an xml parser such as dom4j and build the XML 'by hand'. This class will create an example config file and write it to the file system
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.apache.xml.serialize.OutputFormat;
    import org.apache.xml.serialize.XMLSerializer;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Text;
    * Class to create a simple xml config file using W3C api
    * @author wollnyj
    public class CreateConfig {
         * create the config file
         *?xml version="1.0" encoding="UTF-8"?>
         *<program name=myprog>
         *    <dir>C:\</dir>
         *    <version>1</version>
         *    <myval1>20</myval1>
         *    <myval2>2</myval2>
         *</program>
         * @param configFile
         * @throws ParserConfigurationException
         * @throws IOException
        public CreateConfig(String configFile) throws ParserConfigurationException, IOException {
            //Document doc = parseXml(configFile);
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            Document doc = factory.newDocumentBuilder().newDocument();
            Element program = doc.createElement("program");
            program.setAttribute("name","myprog");
            Element dir = createEle("dir","c:\\",doc);
            Element version = createEle("version","1",doc);
            Element val1 = createEle("myval1","20",doc);
            // etc...
            program.appendChild(dir);
            program.appendChild(version);
            program.appendChild(val1);
            doc.appendChild(program);
            write(doc,new File(configFile));
         * @param args
         * @throws Exception
        public static void main(String[]args) throws Exception {
            CreateConfig create = new CreateConfig("F:\\config.xml");
         * Write an xml document to the file system
         * @param document The document to be written
         * @param xmlFile The output file
         * @throws IOException The file does not exist or could not be created
        private void write(Document document, File xmlFile) throws IOException {
            OutputFormat format = new OutputFormat(document);
            format.setIndent(4);
            format.setLineSeparator(System.getProperty("line.separator"));
            format.setLineWidth(80);
            FileWriter writer = new FileWriter(xmlFile);
            XMLSerializer fileSerial = new XMLSerializer(new BufferedWriter(writer), format);
            fileSerial.asDOMSerializer();
            fileSerial.serialize(document);
        private Element createEle(String name, String value, Document doc) {
            Element ele = doc.createElement(name);
            Text textNode = doc.createTextNode(value);
            ele.appendChild(textNode);
            return ele;
    }

  • [SOLVED] Conky config: show packages number

    Hi there,
    how can I do this?
    Is this possible only through a script, like 'pacman -Q | wc -l'? Or can I do it through conky, directly?
    Thank you in advance
    Last edited by metre (2011-03-18 10:28:28)

    ViruSzZ wrote:I`m using this simple bash script to get the number of packages in my conky & I`m executing it in the conky like this: ${execi 600 sudo /path/to/script}
    What about sudo and root password entering?
    Actualy my code doesn't work properly sometimes (only for me?). If you try to execute that comand (sudo pacman -Sy >/dev/null 2>&1 &&  pacman -Qu | wc -l) in console - it always works great, but in conky it may displays nothing (sometimes).
    The solution is to separate command into two lines:
    ${font Poky:size=12}i${font} Update: ${alignr}${execi 600 pacman -Qu | wc -l} package(s)
    #Bottom of ~/.conkyrc
    ${execi 600 sudo pacman -Sy >/dev/null 2>&1}
    I don't know the reason why it so, but in my case it's a fact.
    Here is my conky screenshot.
    Last edited by mekh (2011-03-18 09:53:11)

  • [SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

    Hello. I'm having some problems making my desktop how I want it. My window manager is fluxbox.
    First problem is just a minor inconvenience, but annoying. When I login, a transparent terminal spawns to my specification, but it is skewed.
    http://i.imgur.com/hrEEh3H.jpg
    However, as soon as I open any window it fixes itself
    http://i.imgur.com/WXQZ9e3.jpg
    Second problem is that I can't figure out how to remove the shadow under conky. I know that it is coming from the slit, but it just won't go away. I can get it to go away if I set conky to desktop instead of panel, but then when I launch any window it overlaps with the conky bar, and that is unaceptable. Maybe there is a fluxbox configuration option that reserves some space so nothing can overlap it? But I couldn't find anything.
    Here are the config files I think are relevant:
    .Xdefaults:
    urxvt*.transparent:true
    urxvt*scrollBar:false
    urxvt*borderLess:true
    urxvt*foreground:blue
    urxvt*.highlightColor: yellow
    urxvt*.colorUL: #4682B4
    urxvt*.cursorBlink: 1
    urxvt*font: xft:Terminus:pixelsize=12
    urxvt*.perl-ext-common: default,matcher,tabbedex,readline,clipboard
    urxvt*.url-launcher: /usr/bin/firefox
    urxvt*.matcher.button: 1
    URxvt.tabbed.autohide:true
    .conkyrc:
    #avoid flicker
    double_buffer yes
    #own window to run simultanious 2 or more conkys
    own_window yes
    own_window_transparent yes
    own_window_class conky
    own_window_type panel
    own_window_hints undecorate,above,sticky,skip_taskbar,skip_pager
    #borders
    draw_borders no
    #shades
    draw_shades no
    #position
    gap_x 6
    gap_y 6
    alignment top_left
    #behaviour
    update_interval 1
    #colour
    default_color 8f8f8f
    wn_window_colour 262626
    #font
    use_xft yes
    xftfont terminus:pixelsize=10
    #to prevent window from moving
    use_spacer left
    minimum_size 1600 0
    short_units yes
    pad_percents 2
    #mpd
    #mpd_host localhost
    #mpd_port 6600
    imap localhost [email protected] xxxxxxx -i 120
    #color = e0e0e0
    TEXT
    ${voffset -1} Cpu: ${color 000000}${font}${cpu}% ${color} Mem: ${color 000000}${font}${mem} ${color} | ${color} Uptime: ${color 000000}${font}${uptime_short}${color} | ${color} Download Speed: ${color 000000}${font}${downspeed wlp0s26u1u4}/s ${color}Total Downloaded: ${color 000000}${totaldown wlp0s26u1u4} ${color} | ${color} Upload Speed: ${color 000000}${upspeed wlp0s26u1u4}/s ${color} Total Uploaded: ${color 000000}${totalup wlp0s26u1u4} ${color} | ${color}Root: ${color 000000}${font}${fs_free /} ${color} Home: ${color 000000}${font}${fs_free /home} ${color} | ${color} Arch-pkg: ${color 000000}${font}${execi 300 perl /home/lucas/.scripts/conky-updates.pl}${color} | Email: ${color 000000}${imap_unseen} new messages ${color} | ${color} Weather: ${color 000000} ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SBBR temperature}°C ${color}
    .compton
    shadow = true;
    no-dnd-shadow = true;
    no-dock-shadow = true;
    clear-shadow = true;
    shadow-radius = 7;
    shadow-offset-x = -7;
    shadow-offset-y = -7;
    shadow-exclude = [ "name = 'Notification'", "class_g = 'URxvt'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'" ];
    shadow-ignore-shaped = false;
    # Opacity
    menu-opacity = 0.8;
    inactive-opacity = 0.8;
    frame-opacity = 0.7;
    inactive-opacity-override = false;
    alpha-step = 0.06;
    blur-kern = "3x3box"
    blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
    opacity-rule = [ ]
    # Fading
    fading = true;
    fade-in-step = 0.03;
    fade-out-step = 0.03;
    fade-exclude = [ ];
    # Other
    backend = "glx"
    mark-wmwin-focused = true;
    mark-ovredir-focused = true;
    detect-rounded-corners = true;
    detect-client-opacity = true;
    refresh-rate = 0;
    vsync = "opengl-swc";
    dbe = false;
    paint-on-overlay = true;
    focus-exclude = [ "class_g = 'Cairo-clock'" ];
    detect-transient = true;
    detect-client-leader = true;
    invert-color-include = [ ];
    # GLX backend
    glx-no-stencil = true;
    glx-copy-from-front = false;
    glx-no-rebind-pixmap = true;
    glx-swap-method = "undefined";
    # Window type settings
    wintypes:
    tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; };
    Last edited by Chetyre (2014-04-10 16:51:23)

    using lowercase conky in compton doesn't change anything. I'm pretty sure that shadow is not from conky, but from the slit. When I set the slit to autohide in the init file, the shadow hides as well. And there is no shadow in any other conky window type I've tried, except type panel. Unfortunately, it is the only one so far with the behavior I want.
    I would like to use true transparency in urxvrt, since that does solve the skew issue and I think it looks better. However, in doing so the terminal is quite useless since there is a lot of text that I can't see, because the font becomes the same color as certain backgrounds. Unless there is a way to separate it? I want it to look like the one on the left (left = fake transparency, right = true transparency).
    http://i.imgur.com/lUwk4F4.jpg
    Last edited by Chetyre (2014-04-09 02:50:27)

  • Hp prime calculator Cannot Solve simple equation

    Hello,
    I'm trying to solve
     solve( (2)^x = (x)^2,x)
    But the calculator cannot solve or am I doing somthing wrong?.
    I lost my TI Nspire CX and I though that HP Prime, since is a recent modern version, were able to solve something simple as that, I am wrong. (TI Nspire solved it ).
    How solve the above equation using the HP Prime? I'm seriusly thinking to return this back.
    Thank you
    This question was solved.
    View Solution.

    Oops!  Quite right.  In general, all symbolic math work should be done in the CAS; that's what it's for.  Home is intended for ordinary number-crunching, not symbolic math.  Sorry for not pointing that out.
    -Joe-

  • [SOLVED] Lousy fonts with .chm viewer for Linux

    I installed the .chm file viewer HelpExplorer 3.0 in both Windows XP and Arch Linux (chm = compiled HTML help file).  In Windows XP, with default fonts installed, the fonts in text read with this viewer appear crisp, sharp and anti-aliased.  In Arch with KDE 3.5.7, on the other hand, the fonts appear fuzzy, grainy and don't seem to be anti-aliased, in contrast with their appearance in all other apps (except for a few such as Dillo) which render text good-looking, sharp and anti-aliased.
    HelpExplorer for Linux was provided as a tarball that included a precompiled 'helpexplorer' binary.  The program doesn't seem to allow for customizing font settings.
    The following fonts are installed in Arch (in /usr/share/fonts/):
    ttf-bitstream-vera-1.10-5 is installed by default
    gsfonts 8.11-4 is installed by default
    PostScript Type 1 fonts installed: Century Schoolbook, Nimbus, URW Bookman, URW Gothic, URW Palladio
    ttf-ms-fonts-2.0-1 (Microsoft TTF: Andale Mono, Arial, Comic, Courier, Georgia, Impact, Tahoma, Times New Roman, Trebuchet)
    font-bh-ttf-1.0.0-3 (Luxi BH)
    xorg-fonts-100dpi-1.0.1-1 (courier, helvetica, lucida, new century, times)
    The "Files" section of my xorg.conf looks as follows:
    Section "Files"
    RgbPath "/usr/share/X11/rgb"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc:unscaled"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/PEX"
    # Additional fonts: Locale, Gimp, TTF...
    FontPath "/usr/share/fonts/cyrillic"
    # FontPath "/usr/share/lib/X11/fonts/latin2/75dpi"
    # FontPath "/usr/share/lib/X11/fonts/latin2/100dpi"
    # True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/ttf/western"
    FontPath "/usr/share/fonts/ttf/decoratives"
    FontPath "/usr/share/fonts/truetype"
    FontPath "/usr/share/fonts/truetype/openoffice"
    FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath "/usr/share/fonts/latex-ttf-fonts"
    FontPath "/usr/share/fonts/defoma/CID"
    FontPath "/usr/share/fonts/defoma/TrueType"
    EndSection
    I've attached a screenshot of some text displayed in the HelpExplorer reader in Arch (the font is Times New Roman): http://img216.imageshack.us/my.php?imag … ot1zh9.png
    [img=http://img216.imageshack.us/img216/8401/snapshot1zh9.th.png]
    What do I need to do to improve the font appearance in this program in Linux?
    Last edited by RobF (2007-10-02 18:06:46)

    I found a solution of sorts by installing and running the Windows version of HelpExplorer in Wine or Crossover.  There is still very little control over fonts but when I enlarge the default font (with 2x CTRL-+) I do get a nice-looking anti-aliased Times New Roman font, and this solution would be my preferred way of reading .chm files in Linux (i.e. better than KchmViewer or Xchm).
    Recap of the problem:
    1. The .chm viewer HelpExplorer Viewer 3.0 when installed in Windows XP renders fonts crisp and clear and anti-aliased.
    2. The Linux version of HelpExplorer Viewer 3.0 (delivered as a precompiled executable in a tarball) doesn't render fonts antialiased, regardless of what I tried, and they look grainy and unattractive.
    3. The Windows version of HelpExplorer Viewer 3.0 when installed and run in Arch in Wine or Crossover does render the default font they offer (looks like Times New Roman) fairly crisp and clear and anti-aliased, at least at the enlarged setting.
    Can someone explain to me what might be going on?  Why is it that the Linux version cannot render fonts anti-aliased when the Windows version running in the emulator in Linux can?  Is there something that I have to change in my fonts config, fonts location, symlinks or path to get the anti-aliased fonts to work in HelpExplorer in Linux?
    Robert

  • [SOLVED!] Conky won't run undecorated, please assist.

    Greetings,
    As suggested in my other thread, I have been working on customizing a conky script that simply shows the time, date, calendar, current weather, and forecast, and I have completed it.
    However I have ran into a problem. Up until I basically had it completed, it would run fine undecorated without any window borders and the like. But now it won't, and it laughs at me instead. If I want to see my conky, I have to have it decorated in the window border, which is a pain and something I don't want. I want it to simply blend in with my desktop.
    Anyways, I am hoping someone can help me solve this. I know it runs. If I set it to decorate, it pops up, info and all. If I set it to undecorate, it laughs at me, but shows up lxtask and htop.
    Here's my .conkyrc
    # Use Xft?
    use_xft yes
    xftfont cure:size=6
    # Update interval in seconds
    update_interval 1
    # 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_transparent yes
    own_window_type widget
    own_window_hints undecorate,sticky,above,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
    maximum_width 187
    # Draw shades?
    draw_shades no
    # Draw outlines?
    draw_outline no
    # Draw borders around text
    draw_borders no
    # Stippled borders?
    stippled_borders 0
    # border margins
    border_margin 5
    # border width
    border_width 0
    # Default colors and also border colors
    default_color 4d4d4d
    #default_shade_color white
    #default_outline_color black
    own_window_colour 262626
    # 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 1180
    gap_y 24
    # 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 yes
    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer yes
    #Email:
    #${pop3_unseen **SERVER NAME** **USERNAME** **PASSWORD**} new messages
    TEXT
    ${offset 100}${alignc}${font openlogos-archupdate:size=40}${color blue}B${font}${color}
    ${color FFFFFF}${font DejaVu Sans:style=Bold:pixelsize=25}${alignc}${time %r}${font Snap.se:size=8}
    ${color FFFFFF}${alignr}${time %A, %B %e %G}
    ${color FFFFFF}${font Aerial:style=Bold:pixelsize=12}CALENDAR${font Snap.se:size=8}${hr 1}
    ${color FFFFFF}${font DejaVu Sans Mono :size=12}${pre_exec cal}
    ${color FFFFFF}${font DejaVu Sans Mono :size=6}${pre_exec cal -3 | cut -c23-44 --complement}
    ${color FFFFFF}${font Aerial:style=Bold:pixelsize=12}WEATHER${font Snap.se:size=8}${hr 1}
    ${color FFFFFF}${alignr 43}${font DejaVu Sans:size=12}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=CN}${font}
    ${color FFFFFF}${alignr 43}${font Weather:size=46}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=WF -i}${font}
    ${color EE6363}${voffset -30}${font Aerial:style=Bold:pixelsize=12}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=HT -i}${font}
    ${color 00A54E}Low: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=LT -i --startday=1 --endday=1} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color 00A54E}High: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=HT -i --startday=1 --endday=1}
    ${color 00AEED}Conditions: ${color FFFFFF}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=CC -i}
    ${color 00AEED}Wind: ${color FFFFFF}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=WS -i}
    ${color 00AEED}Humidity: ${color FFFFFF}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=HM -i}
    ${color 00AEED}Chance of Precipitation: ${color FFFFFF}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=PC -i}
    ${color FAF519}Sun Rise: ${color FFFFFF}}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SR -i --startday=1 --endday=1} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color FAF519}Sun Set:${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SS -i --startday=1 --endday=1}
    ${color FFFFFF}${font Aerial:style=Bold:pixelsize=12}FORECAST${font Snap.se:size=8}${hr 1}
    ${color FF0000}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=DW -i --startday=1 --endday=1}
    ${color 00A54E}Low: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=LT -i --startday=2 --endday=2} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color 00A54E}High: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=HT -i --startday=2 --endday=2}
    ${color FAF519}Sun Rise: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SR -i --startday=2 --endday=2} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color FAF519}Sun Set:${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SS -i --startday=2 --endday=2}
    ${color FF0000}${alignr}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=DW -i --startday=2 --endday=2}
    ${color 00A54E}Low: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=LT -i --startday=3 --endday=3} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color 00A54E}High: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=HT -i --startday=3 --endday=3}
    ${color FAF519}Sun Rise: ${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SR -i --startday=3 --endday=3} ${font DejaVu Sans Mono:size=6}» ${font}${alignr}${color FAF519}Sun Set:${color FFFFFF}${execi 3600 python ~/scripts/conkyForecast.py --location=USOH0311 --datatype=SS -i --startday=3 --endday=3}
    Again, all I need help with is having it run undecorated without any window decoration. I am running Fluxbox as my WM. If you need any other info, please let me know. Thanks.
    Last edited by mythus (2009-04-25 01:02:23)

    Yes that works! Thanks!
    About the widget; I used Sid's conky script from the conky screenshot as my base, it was the first conky I had tried. Though I only ended up keeping the forecast portion after editing it massively...
    I think it must have been the own_window_hints throwing me off.

  • Conky config question - running in multiple columns?

    Is it possible to display conky's output in rows rather than in columns? Example: I want to more or less cut my config in 1/2 and have the temps+ everything under them appear to the right of the CPU usage bit.
    # Swap Usage:$color $swapperc%${color lightgrey}
    # the ${template x x x} command uses /sys/bus/platform/devices
    # for this to work you need both lm-sensors and hddtemp
    # get both from main repos
    # set to yes if you want Conky to be forked in the background
    background no
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    out_to_console no
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 7x12
    #font 6x10
    #font 7x13
    #font 8x13
    #font 7x12
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    #font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
    # Use Xft?
    use_xft yes
    # Xft font when Xft is enabled
    xftfont Bitstream Vera Sans Mono:size=8
    #own_window_transparent no
    #own_window_colour hotpink
    # Text alpha when using Xft
    xftalpha 0.8
    #on_bottom yes
    # Update interval in seconds
    update_interval 2
    # 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 250 5
    maximum_width 258
    # Draw shades?
    draw_shades no
    # Draw outlines?
    draw_outline no
    # Draw borders around text
    draw_borders no
    # Stippled borders?
    stippled_borders 10
    # border margins
    border_margin 4
    # border width
    border_width 1
    # Default colors and also border colors
    default_color white
    default_shade_color white
    default_outline_color white
    # Text alignment, other possible values are commented
    #alignment top_left
    #minimum_size 10 10
    #alignment top_right
    alignment bottom_left
    #alignment bottom_right
    # Gap between borders of screen and text
    gap_x 12
    gap_y 37
    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer no
    # Subtract file system buffers from used memory?
    no_buffers yes
    # set to yes if you want all text to be in uppercase
    uppercase no
    TEXT
    ${color #ddaa00}$nodename$color
    $sysname $kernel on $machine
    ${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg${color lightgrey}
    RAM Usage:$color $memperc% or $mem of $memmax${color lightgrey}
    $color$stippled_hr${color lightgrey}
    Intel Xeon X3360 @ $color${freq_g} GHz${color lightgrey} (Vcc: ${execi 8 sensors | grep Vcc | cut -c15-19} V)
    ${color black}${cpugraph 000000 5000a0}${color lightgrey}
    ${color lightgrey}Core0:$color ${platform coretemp.0 temp 1} °C${color grey} @$color ${cpu cpu1}% ${alignr}${cpubar cpu1 6,120}
    ${color lightgrey}Core1:$color ${platform coretemp.1 temp 1} °C${color grey} @$color ${cpu cpu2}% ${alignr}${cpubar cpu2 6,120}
    ${color lightgrey}Core2:$color ${platform coretemp.2 temp 1} °C${color grey} @$color ${cpu cpu3}% ${alignr}${cpubar cpu3 6,120}
    ${color lightgrey}Core3:$color ${platform coretemp.3 temp 1} °C${color grey} @$color ${cpu cpu4}% ${alignr}${cpubar cpu4 6,120}${color grey}
    ${color grey} CPU:$color ${platform it87.656 temp 2} °C ${color grey} Fan1:$color ${platform it87.656 fan 1}${color grey} RPM @ $color${execi 8 cat /sys/class/hwmon/hwmon4/device/pwm1}
    $color$stippled_hr${color lightgrey}
    ${color grey} GPU:$color ${execi 8 nvidia-settings -q gpucoretemp | grep nov | cut -c42-43} °C ${color grey} M/B:$color ${platform it87.656 temp 1} °C
    ${color grey} sda:$color ${execi 300 sudo hddtemp /dev/sda | cut -c25-26} °C ${color grey} sdb:$color ${execi 300 sudo hddtemp /dev/sdb | cut -c34-35} °C ${color grey} sdc:$color ${execi 300 sudo hddtemp /dev/sdc | cut -c33-34} °C
    $color$stippled_hr${color lightgrey}
    ${color slate grey} /dev/shm: ${color }${fs_used_perc /dev/shm} % ${fs_bar /dev/shm}
    ${color grey}$stippled_hr${color light grey}
    ${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes
    ${color}Name PID CPU% MEM%
    ${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color}Mem usage
    ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

    There are 4 files, so I am running 4 instances of conky.  I will post the files from left to right. 
    background no
    update_interval 1.0
    double_buffer yes
    use_xft no
    xftfont Monospace:size=10
    xftalpha 0.8
    own_window yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #on_bottom yes
    minimum_size 320 42
    draw_shades no
    draw_outline yes
    draw_borders yes
    draw_graph_borders no
    stippled_borders 0
    border_margin 0
    border_width 0
    default_color white
    default_shade_color black
    default_outline_color black
    alignment top_left
    gap_x 10
    gap_y 875
    #gap_y 10
    no_buffers yes
    TEXT
    Toshibuntu
    ${hr}
    ${color #F09000}Uptime${color #707070}:$color $uptime
    ${color #F09000}Load${color #707070}:$color $loadavg
    ${color #F09000}Battery${color #707070}:${color white} ${execi 15 /usr/bin/bat.pl}% ${color white} ${execibar 15 /usr/bin/bat.pl}
    ${color #F09000}CPU${color #707070}:${color white} ${cpu}% ${freq}MHz ${color #F09000}Temp${color #707070}:$color ${acpitemp} F${color grey}
    ${cpugraph 000000 5000a0}
    ${color #F09000}Memory${color #707070}:${color white} ${memperc}% $mem/$memmax
    ${memgraph 000000 5000a0}
    background no
    update_interval 1.0
    double_buffer yes
    use_xft no
    xftfont Monospace:size=10
    xftalpha 0.8
    own_window yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #on_bottom yes
    minimum_size 250 42
    draw_shades no
    draw_outline yes
    draw_borders no
    draw_graph_borders no
    stippled_borders 0
    border_margin 0
    border_width 0
    default_color white
    default_shade_color black
    default_outline_color black
    alignment top_left
    gap_x 332
    gap_y 875
    #gap_y 10
    no_buffers yes
    TEXT
    ${color white}Processes
    ${hr}
    ${color}Name PID CPU% MEM%
    ${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    ${color}Mem usage
    ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    ${color lightgrey} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
    background no
    update_interval 1.0
    double_buffer yes
    use_xft no
    xftfont Monospace:size=10
    xftalpha 0.8
    own_window yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #on_bottom yes
    minimum_size 275 42
    draw_shades no
    draw_outline yes
    draw_borders no
    draw_graph_borders no
    stippled_borders 0
    border_margin 0
    border_width 0
    default_color white
    default_shade_color black
    default_outline_color black
    alignment top_left
    gap_x 580
    gap_y 875
    #gap_y 10
    no_buffers yes
    TEXT
    Networking
    ${hr}
    ${color #F09000}wlan0${color #707070}:${color white} ${addr wlan0}
    ${color #F09000}Downspeed${color #707070}: ${color white}${downspeed wlan0}k ${color #F09000}Upspeed${color #707070}: ${color white}${upspeed wlan0}k
    ${color black}${downspeedgraph wlan0 30,90 000000 5000a0} $alignr${color black}${upspeedgraph wlan0 30,90 000000 5000a0}
    ${color #F09000}eth0${color #707070}:${color white} ${addr eth0}
    ${color #F09000}Downspeed${color #707070}: ${color white}${downspeed eth0}k ${color #F09000}Upspeed${color #707070}: ${color white}${upspeed eth0}k
    ${color black}${downspeedgraph eth0 30,90 000000 5000a0} $alignr${color black}${upspeedgraph eth0 30,90 000000 5000a0}
    background no
    update_interval 1.0
    double_buffer yes
    use_xft no
    xftfont Monospace:size=10
    xftalpha 0.8
    own_window yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #on_bottom yes
    minimum_size 415 42
    draw_shades no
    draw_outline yes
    draw_borders yes
    draw_graph_borders no
    stippled_borders 0
    border_margin 0
    border_width 0
    default_color white
    default_shade_color black
    default_outline_color black
    alignment top_left
    gap_x 855
    gap_y 875
    #gap_y 10
    no_buffers yes
    TEXT
    ${color white}File Systems
    ${hr}
    ${if_mounted /}${color #F09000}/${color #707070}: $color${fs_used /}/${fs_size /} ${color #F09000}Free${color #707070}: $color${fs_free /} ${fs_bar /}$endif
    ${if_mounted /media/Elements}${color #F09000}Elements${color #707070}: $color${fs_used /media/Elements}/${fs_size /media/Elements} ${color #F09000}Free${color #707070}: $color${fs_free /media/Elements} ${fs_bar /media/Elements}$endif
    ${if_mounted /media/data}${color #F09000}data${color #707070}: $color${fs_used /media/data}/${fs_size /media/data} ${color #F09000}Free${color #707070}: $color${fs_free /media/data} ${fs_bar /media/data}$endif
    ${if_mounted /media/host}${color #F09000}host${color #707070}: $color${fs_used /media/host}/${fs_size /media/host} ${color #F09000}Free${color #707070}: $color${fs_free /media/host} ${fs_bar /media/host}$endif
    ${if_mounted /media/studio}${color #f09000}studio${color #707070}: $color${fs_used /media/studio}/${fs_size /media/studio} ${color #F09000}Free${color #707070}: $color${fs_free /media/studio} ${fs_bar /media/studio}$endif
    ${if_mounted /media/elements}${color #f09000}elements${color #707070}: $color${fs_used /media/elements}/${fs_size /media/elements} ${color #F09000}Free${color #707070}: $color${fs_free /media/elements} ${fs_bar /media/elements}$endif
    ${if_mounted /mnt/ubuntu}${color #F09000}ubuntu${color #707070}: $color${fs_used /mnt/ubuntu}/${fs_size /mnt/ubuntu} ${color #F09000}Free${color #707070}: $color${fs_free /mnt/ubuntu} ${fs_bar /mnt/ubuntu}$endif
    I put the 4 files in my home directory and named them
    .conkyrc
    .conkyrctop
    .conkyrcnet
    .conkyrcfile
    I use the following bash script to start them all
    #!/bin/bash
    conky -c ~/.conkyrc &
    conky -c ~/.conkyrctop &
    conky -c ~/.conkyrcnet &
    conky -c ~/.conkyrcfile &
    Only the script needs to be executable.  Also the files are sized for 1280x1024 so if you use a different resolution you will have to change gap_y values and minimum_size values to accomodate.
    Last edited by empthollow (2010-07-08 19:06:59)

  • Searching for simple document and picture viewer.

    Hello,
    I've looking for a viewer which supports all of the common picture formats, such as gif,jpeg,bmp and can also display all kind of office documents.
    If i look for viewer with these options, I all end up with great complicated client-webserver models. Can anyone tell me if there is a viewer which is used on the client-side (fat-client). A rather simple api which converts office-documents to images and maybe provide some simple imaging fuctionality such as zooming etc...
    Much thanks,
    Hugo

    I think this is not the forum for your query.
    However, as far as a viewer which supports all common picture formats
    you can purchase Adobe PhotoShop (ver 6.0 or above).
    I think Adobe Illustrator can display all kind of office documents, but
    I am not sure.
    Hope my reply will serve your purpose.
    (S. JAI SANKAR)

  • How can I solve the problem with Adobe viewer/player ?

    Dear guys in Apple support team
    I have a MacBook Pro 13' late 2011, several months ago I updated my mac to mountain lion and I can say its really great operating system and I really enjoy working with it. The only problem I have is that more than twice a day while using my computer for reading a paper in PDF or in online PDF's or sometimes watching flash videos online, cooling fan starts to work faster and when I look up in the activity monitor, more than 60% of the CPU processing is engaged with Adobe player/viewer and I have to kill the process to stop cooling fan and release the cpu process. My adobe products are in the latest update and there should not be any problem about that.
    Please help me solve this problem and enjoy more than ever from your creative products.
    Thank a lot
    Ali

    Flash has always been a problem hogging the CPU. Recent versions, however, have been a little better. You might try Adobe Flash Player 11.7.700.169. I would also recommend the Safari extensions ClickToFlash 2.7.5 and FlashToHTML5 2.4.

  • Simple Router Config Issues

    Forgive me, I have configured several routers on the inside but never a default gateway. It seems simple enough but I am stuck.
    I can ping the Gateway from the inside. I can ping the inside from the gateway. I can ping the outside from the gateway, but I cannot ping the out side from the inside. (Or get to the DNS server assuming they have ICMP turned off) Heres my config (IPS have been changed to protect the innocent:) )
    My guess is something is screwed up with NAT
    Configuring g
    !b
    boot-start-ma
    no
    ip subnet-zeroered, becomes
    no ip routinghe configurat
    !n
    !e
    no ip cef
    interface Ethernet0er enable secret: b
    ip address 63.223.13.115 255.255.255.128The enable password is used when you do n
    ip access-group 20 out
    [OK]
    ip nat outside
    *Mar
    enable
    no ip route-cacheith some older sof
    half-duplexs, and Trans
    !i
    ip nat inside source list 20 pool poolone
    ip nat inside source static 192.168.10.5 63.223.13.121
    ip classless
    ip route 0.0.0.0 0.0.0.0 63.223.13.1
    no ip http server
    access-list 20 permit 192.168.0.0 0.0.255.255
    banner login ^Cc
    ###### WARNING ######
    AUTHORIZED ACCESS ONLY^C
    line con 0
    password 7 03005A1C011C70
    login
    line aux 0
    line vty 0 4
    password 7 06020E364B5D58
    login
    no scheduler allocate
    end
    ZaxT1#
    Pro Inside global Inside local Outside local Outside global
    --- 63.223.13.121 192.168.10.5 --- ---
    ZaxT1#

    I do not know how you generated this config listing but it seems to be quite garbled. So I am not sure how accurately we can evaluate it.
    But one things that does appear to be there is that you are using access list 20 to control what addresses get translated by NAT and it permits 192.168.0.0/16. So that any address in 190.168.0.0 will get translated. However the same access list is applied outbound on Ethernet 0. So Ethernet 0 will only permit outbound traffic whose source address is 190.168.x.x. Except all these addresses have been translated so that the source address is no longer 192.168.x.x. This would prevent any traffic going out through Ethernet 0.
    Do not use the same access list to control translation and to control outbound traffic on the interface.
    HTH
    Rick

  • [SOLVED]Lose Conky window shadows...

    I have Xfce set to display shadows under windows, which looks great until I run Conky.  Any tips on how I can get rid of Conky's shadow and keep the rest?
    Last edited by crisnoh (2008-05-04 20:16:06)

    You most likely can solve this with the correct combination of the own_window and own_window_type parameters in your .conkyrc file. While I don't use XFCE I believe this problem is the same under most compositors. Try the following to solve the problem:
    own_window yes
    own_window_transparent yes
    own_window_type desktop
    If this doesn't work, you might try using "override" for the own_window_type.
    Good luck,
    j

  • [Haskell]How to read in haskell and solve simple problems

    Hello,
    I'm an experienced C/C++ programmer and I would like to use Haskell to solve some problems.
    But it is hard to me to write a simple way to read input from a file and analyze it, so I ask you how to do this. I didn't find how to do this around google or this forum, that's why I came to here.
    Suppose we are given this problem:
    "We're analyzing numbers and we want to know which numbers are even. The input consists on a number, N, and then N lines which contain a single integer. You are to say what numbers are even."
    INPUT EXAMPLE:
    3
    1234
    5555555
    123044390581349287182
    OUTPUT EXAMPLE:
    yes
    no
    yes
    I wrote the module that returns a string depending on if the number is even or not... But I would like to know how to repeat that function for N numbers. I don't want a superoptimized way or a strange way, I just want a simple and readable one...
    In C++ i would do:
    for (int i = 0; i < cases; i++)
    cin >> number;
    cout << analyze(number) << endl; // analyze returns a string
    Can you iluminate with your knowledge, archers?
    Thank you.

    Well, you said that the first line has the number N, followed by N lines. Given your description the program would always test the whole file.
    If you have a file with X lines and you'd only like to test N <= X  lines, this should do it:
    module Main where
    import System.IO
    import Control.Applicative
    main = do
    let test x = if even (read x) then "yes" else "no"
    withFile "test" ReadMode $ \handle -> do
    nlines <- read <$> hGetLine handle
    content <- hGetContents handle
    mapM_ ( putStrLn . test )
    . take nlines
    . lines
    $ content

  • Can I solve this with an "performatic" view ????

    Friends, I would like to solve that select above with another solution. Can u help me ?
    create view my_view as
    select * from mp.tableA where pkb_test.fnb_get_user = 'MP'
    UNION
    select * from cf.tableA where pkb_test.fnb_get_user = 'CF'
    The problem is: the tableA has about 1000000 each and you can imagine how much time it will expend to solve any query ....
    Thanks,
    Jone.

    Without seeing what the procedure pkb_test.fnb_get_user does, it is a little hard to say. However, the follwoing points occur to me.
    1. Since there is no apparent connection between your table and the result of pkb_test.fnb_get_user, you will get a full table scan of tablea in both halves of the UNION.
    2. Since the two tables are in different schema's, you may be able to use UNION ALL instead of UNION. This will save a sort distinct.
    3. You do realize that pkb_test.fnb_get_user is getting called once for every row in each of the tables.
    Unless the return value of pkb_test.fnb_get_user is influenced in some way by the contents of each row of tableA (and I see no way it can be since you are not passing any parameters), then you can do away with the procedure call alltogether, and simply do:
    SELECT * FROM mp.tablea
    UNION ALL
    SELECT * FROM cf.tableaunless you really do need distinct rows. In which case you will have to use UNION. This will still full scan both tables, but you will save 2,000,000 procedure calls.
    Depending on what exactly you are trying to accomplish, there may be other, faster ways to do it.
    TTFN
    John

  • Quick and Simple DNS Config

    Hello,
    I have a Mac Mini Server 10.6.4 as a SUS on my internal network. I use DynDNS to reach my network from outside (servername.homeunix.com). I was wondering how I set up my DNS so that when my clients are on the internal network, servername.homeunix.com resolves to the INTERNAL (eg. 192.168.0.50) address. But also so when the client is outside the network, servername.homeunix.com resolves to the PUBLIC (eg. 24.5.442.32) address of the server.
    The server's IP is listed as the first DNS IP in my only router so all computers inherit it.
    If you could detail the config steps that would be great but any info will greatly help! Thanks!

    Thank you so much for that guide! It had perfectly clear instructions for something not so simple.
    After realizing some of my mistakes along the way of configuring, it was so easy haha.

Maybe you are looking for

  • There's a little cartoon and chinese characters in my status bar that I didn't not put there and can't delete

    I recently had my account smurfed,I think it's called-my email was attacked-sent a bunch of emails to friends as if from me---I changed password,etc-no other problems since-but I realized this morning that there's something in my status bar with chin

  • Items sorted in mb01 selection screen

    Hi gurus, My problem thatu2019s I need that the sequence of the items in the tx.mb01 selection screen might be sorted by material code. However, the sort of these items is the same that in purchase order. Originally the purchase order is not sorted b

  • Errors every 10 seconds

      Receiving event 1213: Connection rejected by server. Reason : [ Server.Reject ] : (_defaultRoot_, _defaultVHost_) : Application (telephony) is not defined. This reccurs almost every 10 seconds. The source is AMS (Edge).

  • How to monitor a CIFed Order

    Guy I need to know how to check in both Systems APO and ECC a change in a Order. I have made some changes in one order in ECC but I don't know if the changes were transferred from ECC to APO, where I can found a LOG of tranferred orders from ECC to A

  • Can I insert in adobe muse also a own video ?

    hello can I insert in adobe muse also a own video? (not just a link to youtube etc.) thanks for help