Conky and dzen2 examples

Hi,
I want to try dzen2 piped by conky for my minimal system-information-status-bar.
Unfortantly I can find very little information in the internet about this.
I have
out_to_console yes
set in my .conkyrc, but if I type "conky" I see no output.
Do some people have some conky & dzen2 configs thery could share here?
I am also interested in what cool things one can do ...
Thanks!
Nathan

One way to get info here is to search the forums with dzen2 and conky in the keyword search.  You'll need to wade through alot of info but that's the way I figured out what I use now.  I started with http://bbs.archlinux.org/viewtopic.php?id=41118  You'll find that you need to use conky-cli from AUR to pipe output to dzen2.  I use a script that I put in my tiling wm .musca_start file called dzconky which I store in my /home/brian/bin folder:
#! /bin/sh
FG='#aaaaaa'
BG='#1a1a1a'
FONT='-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*'
conky | dzen2 -e '' -ta c -fg $FG -bg $BG -fn $FONT -x 0 -y 1008
This gives me centred output in dzen2 (-ta c) and puts the dzen2 bar on the bottom of my 1280x1024 display rather than the default top position.
And my .conkyrc used with conky-cli:
background no
out_to_console yes
update_interval 1.0
total_run_times 0
use_spacer none
TEXT
Uptime:$uptime CPU:$freq Mhz ($cpu%) Ram:($memperc%) Disk:/:${fs_used /} /home:${fs_used /home/brian} CPU Temp:${execi 5 echo $(($(cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp1_input) / 1000))C} ${time %a,%b %d/%y %l:%M%P}
Use what you wish or do your own thing.
Edit: spelling
Last edited by bgc1954 (2009-07-04 15:40:09)

Similar Messages

  • I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.

    I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.
    In particular, I am analyzing the example "Even Angle Reference Signal Processing (Digital Tacho, DAQmx).vi", whose documentation I am reproducing in the following:
    <B>DESCRIPTIONS</B>:
    This VI demonstrates how to extract even angle reference signals and remove the slow-roll errors. It uses DAQmx VIs to acquire sound or vibration signals and a digital tachometer signal. This VI includes a two-step process: acquire data at low rotational speed to extract even angle reference; use the even angle reference to remove the errors in the vibration signal acquired at normal operation.
    <B>INSTRUCTIONS</B>:
    1. Run the VI.
    2. On the <B>DAQ Configurations</B> tab, specify the <B>sample rate</B>, <B>samples per channel</B>, device and channel configurations, and tachometer channel information.
    <B>NOTE</B>: You need to use DSA PXI-447x/PXI-446x and PXI TIO device in a PXI chassis to run this example. The DSA device must be in slot 2 of the PXI chassis.
    3. Switch to <B>Extract Even Angle Reference</B> tab. Specify the <B>number of samples to acquire</B> and the <B># of revs in reference</B> which determines the number of samples in even angle reference. Click <B>Start</B> to take a one-shot data acquisition of the vibration and tachometer signals. After the acquisition, you can see the extracted even angle references in <B>Even Angle Reference</B>.
    4. Switch to the <B>Remove Slow-roll Errors</B> tab. Click <B>Start</B> to acquire data continuously and view the compensate results. Click <B>Stop</B> in this tab to stop the acquisition.
    <B>ORDER ANALYSIS VIs USED IN THIS EXAMPLE</B>:
    1. SVL Scale Voltage to EU.vi
    2. OAT Digital Tacho Process.vi
    3. OAT Get Even Angle Reference.vi
    4. OAT Convert to Even Angle Signal.vi
    5. OAT Compensate Even Angle Signal.vi
    My question is: How is the synchronization produced at the time of the compensation ? How is it possible to eliminate the errors in a synchronized fashion with respect to the surface of the shaft bearing in mind that I am acquired data at a low rotation speed in order to get the "even angle reference" and then I use it to remove the errors in the vibration signal acquired at normal operation. In this application both operations are made in different acquisitions, therefore the reference of the correction signal is lost. Is it simply compensated without synchronizing ?
    Our application is based on FPGA and we need to clarity those aspects before implementing the procedure.
    Solved!
    Go to Solution.

    Hi CracKatoA.
    Take a look at the link bellow:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=255126&requireLogin=False
    Regards,
    Filipe Silva

  • [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

  • Conky and top reporting differently

    Here are some screen caps of conky and terminal running top command. The part I am interested in is the processes, one says 85 while the other says 105?
    I question this because when I had gnome-system-monitor installed it would always show gnome-keyring-daemon as being open multiple times when I would logout and log back in. But, a fresh reboot would fix the issue.
    what exactly is going on? How can I keep uninstalling things and when I reboot my processes in conky keep going up and up?
    I am now running xfce and trying to rid myself of things I don't need like gnome based programs. The only thing stopping me from ridding myself of this gnome-keyring is GDM? But what login manager would I use if I don't use GDM, Any suggestions?
    How do I post pictures?
    Last edited by jacko (2007-12-03 17:37:30)

    jacko wrote:I am now running xfce and trying to rid myself of things I don't need like gnome based programs. The only thing stopping me from ridding myself of this gnome-keyring is GDM? But what login manager would I use if I don't use GDM, Any suggestions?
    I use Xfce and Slim.  Search the wiki for slim.

  • Toolbox tutorial and sample examples for OAF

    Hi all ,please help me to get Toolbox tutorial and sample examples for OAF , and Jdeveloper 9i download link,
    please give me to get the above stuff. Thanks
    Thanks & Regs

    Hi,
    Looks like you are not in 11.5.9, your instance is 11.5.10.
    You can download the Patch 4573517 Oracle9i JDeveloper with OA Extension for 11.5.10 CU2
    from metalink, search with platform as Windows Clinet 32 bit.
    Then you can develop pages for your instance.
    Btw: what is the output for the following query,
    Select bug_number from ad_bugs where bug_number in ('4334965','4125550','4676589','5473858');
    Thanks.
    With Regards,
    Kali.

  • Search drag and drop example

    I'm looking for a simple drag and drop example between two JList, what's the good way to do that....

    Try to start www.google.com
    enter "Drag Drop JList" and search i think the second is best:
    http://java.sun.com/docs/books/tutorial/dnd/sheetal.html
    sorry ;-) but you asked for a good way to look for a simple drag and drop example.

  • Conky and frequency scaling

    Hello.
    I have couple of computers with conky and cpufreq working. All fine there. It was so also on my notebook, which had Ubuntu 9.04 installed. I reinstalled to 9.10 and since then my conky reports full frequency.
    There was a lot of other issues, so I decided to finally remove Ubuntu and take the time to install Arch. Things are much better with Arch on this notebook, but I did not get rid of the frequency scaling problem. It is Thinkpad X31 btw.
    According to powertop and cpufreq-info, the frequency scaling is working. Conky reports 1400Mhz all the time.
    Here is my cpufreq-info:
    cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006
    Report errors and bugs to [email protected], please.
    analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which need to switch frequency at the same time: 0
    hardware limits: 600 MHz - 1.40 GHz
    available frequency steps: 1.40 GHz, 1.20 GHz, 1000 MHz, 800 MHz, 600 MHz
    available cpufreq governors: ondemand, performance
    current policy: frequency should be within 600 MHz and 1.40 GHz.
    The governor "ondemand" may decide which speed to use
    within this range.
    current CPU frequency is 600 MHz.
    cpufreq.conf
    #configuration for cpufreq control
    # valid governors:
    # ondemand, performance, powersave,
    # conservative, userspace
    governor="ondemand"
    # valid suffixes: Hz, kHz (default), MHz, GHz, THz
    min_freq="0.5GHz"
    max_freq="3GHz"
    lsmod | grep freq
    cpufreq_ondemand 7400 1
    acpi_cpufreq 8648 0
    freq_table 3740 2 cpufreq_ondemand,acpi_cpufreq
    processor 36076 2 acpi_cpufreq
    Running this script clearly shows that freq is changing
    #!/bin/bash
    while [ "1"=="1" ]; do
    echo `cpufreq-info | grep "current CPU frequency"`
    sleep 2
    done
    conkyrc
    update_interval 2
    background yes
    use_spacer left
    double_buffer yes
    short_units yes
    pad_percents 3
    own_window yes
    own_window_type normal
    own_window_transparent yes
    gap_x 4
    gap_y 30
    draw_shades no
    draw_outline no
    draw_borders no
    stippled_borders 10
    color0 black
    color1 white
    default_shade_color white
    default_outline_color white
    own_window_hints undecorated, below, skip_taskbar, skip_pager
    alignment bottom_left
    TEXT
    ${alignc}${color1}$nodename
    ${alignc}$sysname $kernel on $machine
    ${color1}$hr
    ${color1}CPU: $color0${cpu cpu0}%
    ${color0}${cpugraph cpu0 15}
    ${cpubar cpu0 4}
    ${color1}RAM :$color0 $memperc% ${membar 4}
    ${color1}Swap :$color0 $swapperc% ${swapbar 4}
    ${color1}Processes :$color0 ${exec printf "%3d" `ps -A | wc -l`}/$running_processes ${color1}Uptime :$color0 $uptime_short${color1}
    ${color1}Frequency :$color0 ${exec cpufreq-info | grep "current CPU frequency" | cut -c28-35} ${freq}${color1} ${if_existing /sys/class/power_supply/BAT0}${if_existing /sys/class/power_supply/BAT0/present 1}
    ${color1}$hr
    Battery : $color0${battery_bar 4 BAT0}
    ${battery_time}${alignr}${battery}${endif}${endif}
    ${color1}$hr
    ${if_existing /sys/class/net/eth0/operstate up}${color1}IP :${alignr}${color0}${addr eth0}${color1}
    Wired connection
    ${color0}${downspeedgraph eth0 12,108} ${upspeedgraph eth0 12,108}
    ${color1}Down : $color0${downspeed eth0} ${color1} Up: $color0${upspeed eth0}${color1}k/s ${else}${if_existing /sys/class/net/wlan0/operstate up}${color1}IP :${alignr}${color0}${addr wlan0}${color1}
    Wifi :$color0${wireless_link_qual wlan0}% ${wireless_link_bar 4,0 wlan0}
    ${color0}${downspeedgraph wlan0 12,108} ${upspeedgraph wlan0 12,108}
    ${color1}Down : $color0${downspeed wlan0} ${color1} Up : $color0${upspeed wlan0}${color1}${else}
    ${endif}${endif}
    ${color1}$hr
    ${color1}CPU :$color0 ${ibm_temps 0} ${color1}C HDD :$color0 ${ibm_temps 2}${color1} C
    ${color1}GPU :$color0 ${ibm_temps 3} ${color1}C BAT :$color0 ${ibm_temps 4} ${color1}/${color0} ${ibm_temps 6} ${color1}C
    ${color1}$hr
    ${color1}Top: PID CPU% MEM%
    ${color0 white} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color0 white} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color0 white} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color0 white} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    As you can see I even put that part of script, which takes values from cpufreq-info into conky, but it still does show wrong values.
    When I manually set frequency to 600Mhz, it shows up in conky.
    With Ubuntu 9.04 this was working fine, so I wonder what has recently changed that could have resulted in this behaviour.

    Archiee wrote:[...]
    - Frequency step size is configurable (default to 100MHz/step) (cpufreq doesn't support this)
    If I'm not mistaken it's the CPU that tells the utility what frequencies it can switch to; not the other way around. Remember each frequency has a voltage tied to it. Also, he's not asking about a way to manage his cpuf requency management, just about a glitch in actualy frequency reporting.
    @ topic starter: why are you grepping cpufreq-info if you can have conky just read it out for you? It's a hardcoded conky feature...
    From their documentation:
    freq    (n)    Returns CPU #n's frequency in MHz. CPUs are counted from 1. If omitted, the parameter defaults to 1
    @ Archiee: I checked with powernowd:
    root@hermes # powernowd -v
    powernowd: PowerNow Daemon v1.00, (c) 2003-2008 John Clemens
    powernowd: Settings:
    powernowd: verbosity: 1
    powernowd: mode: 1 (AGGRESSIVE)
    powernowd: step: 100 MHz (100000 kHz)
    powernowd: lowwater: 20 %
    powernowd: highwater: 80 %
    powernowd: poll interval: 1000 ms
    powernowd: about to return count = 1
    powernowd: Found 2 scalable units: -- 1 'CPU' per scalable unit
    powernowd: cpu0: 800Mhz - 1200Mhz (2 steps)
    powernowd: step1 : 1200Mhz
    powernowd: step2 : 800Mhz
    powernowd: cpu1: 800Mhz - 1200Mhz (2 steps)
    powernowd: step1 : 1200Mhz
    powernowd: step2 : 800Mhz
    root@hermes # cpufreq-info
    cpufrequtils 006: cpufreq-info (C) Dominik Brodowski 2004-2009
    Report errors and bugs to [email protected], please.
    analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which run at the same hardware frequency: 0 1
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 10.0 us.
    hardware limits: 800 MHz - 1.20 GHz
    available frequency steps: 1.20 GHz, 800 MHz
    available cpufreq governors: userspace, powersave, ondemand, performance
    current policy: frequency should be within 800 MHz and 1.20 GHz.
    The governor "userspace" may decide which speed to use
    within this range.
    current CPU frequency is 800 MHz (asserted by call to hardware).
    analyzing CPU 1:
    driver: acpi-cpufreq
    CPUs which run at the same hardware frequency: 0 1
    CPUs which need to have their frequency coordinated by software: 1
    maximum transition latency: 10.0 us.
    hardware limits: 800 MHz - 1.20 GHz
    available frequency steps: 1.20 GHz, 800 MHz
    available cpufreq governors: userspace, powersave, ondemand, performance
    current policy: frequency should be within 800 MHz and 1.20 GHz.
    The governor "userspace" may decide which speed to use
    within this range.
    current CPU frequency is 800 MHz (asserted by call to hardware).

  • Need help with problem using sound and vibration examples. question repost

    I am generating a wav file using the sound and vibration example vi "SVXMPL_Wav Recorder(DAQmx)" using a ni 7422 board.  Then, using the example vi SVXMPL_Getting started with SVT(Simulated)" attempting to play back that file.  the wav file will load and play back on the graphs fine but when I click the "Play Wav File" which sends the audio to the computers speaker,  I get the error "Cannot recognise sound Format".  It plays the shipped example files fine.  I can also play the wav files I generate on a Windows audio player.  Don't know a lot about the sound and vibration toolkit or wav file formats but need to get these two to work together.  Using LV 8.5 and sound and vibration toolkit 4.0.  This is a bit of a repost of the same question ask last week but not answered.  Thanks

    Did you see Coq Rouge's reply in your original thread? Which thread are you going to continue?

  • Xcompmgr messing with openbox windows (conky and kde apps only)

    here's the involved packages:
    openbox 3.4.7.2-1
    nvidia 177.82-1
    xorg-server 1.5.3-3
    xcompmgr 1.1.4-1
    kdelibs3 3.5.10-2
    conky 1.6.1-2
    now the issue is primarily with xcompmgr.  when it's running (default options or the whole -cCfF... stuff doesn't make a difference).  i have the following:
    whenever a kde apps window opens.  (i.e. i start amarok or k3b; k3b opens new windows during burn start/stop process) my conky will disappear only to flicker and reappear a few seconds later. (this only happens with kde apps)
    when i'm tweaking my conky i will often `pkill conky; sleep 3; conky` to see my changes.  when i kill conky, ALL of my active windows on the current desktop disappear and only reappear if a) they are redrawn because of an update to their contents on their own accord, or b) (kinda the same thing) i grab a window and drag it all over the screen resetting whatever i pass over to it's correct visual state.  (this only happens when killing conky)
    this is annoying me, i love the shadows/fading from xcompmgr but this flickering makes my whole experience feel unstable and i have to turn it off after a few minutes.  turn off xcompmgr and it's rock solid just as before... snappier too i think.
    this behavior started immediately after the recent xorg update (i saved that for last because i know were all sick of _that_).  i changed nothing, but for the -Syu when this happened.
    anyways, your thoughts and help is much appreciated.

    so i'm resurrecting this thread because i hoped, and  prayed, that xorg 1.6 in testing would fix this problem.  i've been working my ass off to keep my system back in xorg 1.4.  my desktop just looks so oldfashioned w/o shadows and transparency. 
    ok so to re-outline, i'm running:
    pacman -Q stuff
    xorg-server 1.6.0-1
    nvidia 180.29-3
    openbox 3.4.7.2-1
    xcompmgr 1.1.4-1
    with this gpu:
    hwd -s | grep video
    Video : GeForce 7150 / nForce 630i server: XFree86 (vesa)
    i created a minimal xorg.conf via nvidia-xconfig an added a few suggested options (although they _really_ don't seem to affect this bug...):
    cat /etc/X11/xorg.conf
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 1.0 (buildmeister@builder62) Thu Feb 5 00:08:50 PST 2009
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Unknown"
    HorizSync 28.0 - 33.0
    VertRefresh 43.0 - 72.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    Option "NoLogo" "True"
    Option "RenderAccel" "True"
    Option "TripleBuffer" "True"
    Option "BackingStore" "False"
    Option "DamageEvents" "True"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    now, here's what happens:
    i startx, .xinitrc or autostart.sh bring up xcompmgr, bmpanel, and conky
    if i open amarok or k3b, conky and bmpanel (both using transparency) vanish while the splash screen(s) show.
    when i burn something with k3b (and new windows appear) i see similar behavior
    sometimes it's just for a sec and then it's back, sometimes conky comes back with part of itself missing
    also, if you execute `pkill conky` from an xterm, all windows are 'destroyed' until you [blindly] grab that xterm window and move it about your desktop 'revealing' the desktops contents.  please see this screenshot for this in action.
    killing xcompmgr fixes all this... but it's so ugly.  the problems go away if i downgrade to xorg-server 1.4 (and also adjust any related/dependant packages to match).
    please please, tell me i'm not alone!  a fix would be nice too .
    thanks in advance... again
    Last edited by brisbin33 (2009-03-05 01:30:10)

  • TestStand with perl and Tcl examples need newer dlls

    I'm trying to run the TestStand with perl and tcl examples but they both point to older dlls. When I try to update by making changes and recompiling the main.cpp in VC++ 6.0, I get errors referencing cl.exe and oleauto.h, I'm not sure if I missed a step or what. See attached screenshot. TIA. Judy Jiru
    Attachments:
    scrnShotErrors.doc ‏110 KB

    Hey Judy,
    From my understanding oleauto.h and cl.exe are not National Instruments files. My suggestion would be to google the files - I found a bunch of hits for both the files. It may also be helpful to post on a discussion forum dedicated to VC++ 6.0. You may want to try the Microsoft newsgroups or I'm sure there are tons of other online.
    I hope this helps! Once you compile the dll if you have problems calling it from TestStand please post back.
    Regards,
    Sarah Miracle
    National Instruments

  • IGNORE - Fixed Single-Database Capture and Apply Example, multiple tables

    I ran the demo setup for , "Single-Database Capture and Apply Example" ( http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/capappdemo.htm#BCGBIEDJ )
    Everything works fine. I now want to capture changes to another table in the HR schema, using the same DML handler.
    I am uncertain of what to use for the stream name in the following (and related calls). I want the captures for the new table, "job_History" to go to the same queue. Do I use the same stream name, or do you have to create a new stream for each table capture? Thanks.
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'hr.job_history,
    streams_type => 'capture',
    streams_name   => 'capture_emp', queue_name => 'strmadmin.streams_queue',
    include_dml => TRUE,
    include_ddl => FALSE,
    inclusion_rule => TRUE);
    END;
    Edited by: user614224 on Nov 15, 2010 6:54 AM

    Please edit the subject of this post and change it to "Please Ignore." Then post your question, with full version information, to the Streams forum.

  • Conky and high CPU usage

    I originally posted this in the Newbie Corner, as I consider myself a newbie, but got no answers there and I think my issue is pretty kernel-HW-related, excuse me for re-posting.
    I was editing an old peaceful Conky and it somewhen started making high use of the CPU (around 30-40% avg.). As I couldn't figure out where the problem was, took out every configuration line in the conky file and ended up with the few following lines, which are by themselves triggering the same high CPU usage. I don't have much experience with Conky, could anyone explain me if this behaviour would be expected from this simple code or is there something else?
    Thank you.
    own_window yes
    minimum_size 400 600
    maximum_width 400
    alignment bottom_right
    gap_x -120
    gap_y -200
    TEXT
    ${voffset 105}${offset 85}${font Helvetica:size=20}${time %H:%M}${font}

    no please do not cross-post. If you feel that a mistake has been made, Report the post and ask a mod to move it to the appropriate section for you.
    Continue discussion here :  https://bbs.archlinux.org/viewtopic.php?id=124315
    Closing...

  • [SOLVED] Need help with dzen2, conky and xmonad.

    Hey all. I've recently been using XMonad and have found it to be a really useful tool, especially when it comes to keeping me on task and dealing with screen real-estate. However, I've been having difficulty setting up a dzen2 status bar that displays what conky pipes into it.
    Here is my xmonad.hs file :
    import XMonad
    import IO
    import XMonad.Util.Run
    import XMonad.Hooks.ManageDocks
    import XMonad.Hooks.DynamicLog
    import XMonad.Layout.NoBorders
    import XMonad.Util.EZConfig
    main = do
    bar <- spawn myConkyBar
    xmonad $ defaultConfig
    borderWidth = 2
    , terminal = "urxvt"
    , normalBorderColor = "#343434"
    , focusedBorderColor = "cyan"
    , workspaces = ["www","lp","letter","else"]
    , manageHook = manageDocks <+> manageHook defaultConfig
    , layoutHook = avoidStruts $ layoutHook defaultConfig
    } `additionalKeys`
    [ ((0, xK_F12), spawn "urxvt")
    , ((mod4Mask.|. 0, xK_w), spawn "firefox")
    , ((mod4Mask .|. shiftMask, xK_w), spawn "scrot -s")
    , ((0, xK_Print), spawn "scrot -d 2")
    myConkyBar = "conky -c .conkyrc | dzen2 -fn 'Clean' -bg #343434 -x 0 -y 768"
    And the relevant .conkyrc file:
    out_to_console yes
    text_buffer_size 512
    mpd_host localhost
    mpd_port 6600
    update_interval 1.0
    cpu_avg_samples 2
    net_avg_samples 2
    TEXT
    ^fg(cyan)^i(/home/greg/.icons/mpd.xbm) ^fg(#E0EEEE)$mpd_smart ^fg(#343434)| ^fg(cyan)^i(/home/greg/.icons/cpu.xbm) ^fg(#FF69B4)${cpu cpu1}% ^fg(cyan)^i(/home/greg/.icons/cpu.xbm) ^fg(#FF69B4)${cpu cpu2}% ^fg(#343434)| ^fg(cyan)^i(/home/greg/.icons/mem.xbm) ^fg()$mem ^fg(#343434)| ^fg(cyan)^i(/home/greg/.icons/down.xbm) ^fg(#FF69B4)${downspeed wlan0} ^fg(cyan)^i(/home/greg/.icons/up.xbm) ^fg(#FF69B4)${upspeed wlan0} ^fg(#343434)| ^fg(red)${battery_percent BAT0}% ^fg(#343434)| ^fg(red)$acpitemp C ^fg(#343434)| ^fg(#CD5555)$kernel ^fg(#343434)| ^fg(cyan)${time %m-%d-%y %l:%M%p}
    The main problem I'm having is that Xmonad will make the space for dzen, but conky will write to the root window, and not dzen. So the long string of text is written on the root window without any formatting, and dzen is (usually) just a black bar. I'm not the best with Haskell, but I am im
    proving, so any help would be appreciated.
    Also, I've noticed that dzen2 only updates when switching workspaces. Was I supposed to define an update interval somewhere?
    Last edited by camphor (2009-12-23 04:53:35)

    i think you have to use the logHook,
    this is part of my configuration, although i'm not using Xmonad anymore (haven't found the time to really configure it)
    -- XMonad:
    main = do
    xmobar <- spawnPipe myStatusBar
    dynHooksRef <- initDynamicHooks
    xmonad $ myUrgencyHook $ defaultConfig
    { terminal = myTerminal
    , focusFollowsMouse = myFocusFollowsMouse
    , borderWidth = myBorderWidth
    , modMask = myModMask
    --, numlockMask = myNumlockMask
    , workspaces = myWorkspaces
    , normalBorderColor = myNormalBorderColor
    , focusedBorderColor = myFocusedBorderColor
    , layoutHook = myLayout
    , manageHook = myManageHook <+> manageDocks <+> dynamicMasterHook dynHooksRef
    , handleEventHook = myEventHook
    , logHook = dynamicLogWithPP $ myXmobarPP xmobar
    , startupHook = myStartupHook
    is using Xmobar, but the config from where i took this was using dzen, maybe you can use that:
    http://haskell.org/haskellwiki/Xmonad/C … _xmonad.hs
    ps: sorry for the awful english.

  • My conky and rox layout:

    hello,
    this thread answers some questions from this thread http://bbs.archlinux.org/viewtopic.php?id=36457
    yes, the statistics line at the top is conky. it's a pretty simple setup. just everything written in line w/ "|" as separators.
    the .conkyrc:
    # 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 yes
    # 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-*-*-*-*-*-*-*
    # Use Xft?
    use_xft yes
    # Xft font when Xft is enabled
    #xftfont Tahoma:size=10
    #xftfont arial:size=11
    xftfont architecture:size=15
    # Text alpha when using Xft
    xftalpha 1.0
    # mail spool
    mail_spool $MAIL
    # Update interval in seconds
    update_interval 2.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
    # 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 3 3
    # Draw shades?
    draw_shades no
    # Draw outlines?
    draw_outline no
    # Draw borders around text
    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 080808
    default_shade_color 213129
    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 2
    gap_y 15
    # 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 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
    # 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
    ${time %d.%m.%y %H:%M:%S} | $loadavg | Proc: $processes/$running_processes | CPU: $cpu % | RAM: $mem/$memmax | Swap: $swap/$swapmax | DiskIO: $color$diskio | In: ${downspeed eth0} k/s ${upspeed eth0} k/s | Ex: ${upspeed eth1} k/s ${downspeed eth1} k/s | Cpu:$color ${exec expr `cat /sys/bus/i2c/devices/0-002d/temp2_input` / 1000} C Mb:$color ${exec expr `cat /sys/bus/i2c/devices/0-002d/temp1_input` / 1000} C
    $color slash ${color grey} $color${fs_used /} ${color grey} - $color${fs_free /}
    $color var ${color grey} $color${fs_used /var} ${color grey} - $color${fs_free /var}
    $color vlad ${color grey} $color${fs_used /home/vlad} ${color grey} - $color${fs_free /home/vlad}
    font is architecture:size=15. i don't know where i got it from. i collect fonts since my windows days, which are long gone....
    the icons are called concept or somehow similar and i got the from (where all good icons come from) http://search.deviantart.com .
    i've searched them a little, but i can't find them again... (i think j3concepts made them)
    Could u also elaborate this line < pixmap_path "~/.icons/panel_icons/icons_2" > ?
    you tell rox to search in this directory for icons. the directory (panel_icons/icons_2) is an arbitrary dir for putting my own icon themes together.
    the panel at bottom is wbar. a brilliantly small panel for light-weight desktops/wm. http://freshmeat.net/projects/wbar/?bra … _id=259132
    some more screens:
    http://img444.imageshack.us/my.php?imag … 24aqd0.png
    i'm running openbox3.4, wallpaper from desktopography.
    i think that's all, folks!
    vlad
    ps:
    i forgot the gtk2 and openbox theme is dyne:
    http://www.gnome-look.org/content/show. … tent=61936
    http://www.box-look.org/content/show.ph … tent=62000
    the openbox theme is tweaked by my for my likings. i _really_ like the stuff made by lyrae:
    http://www.box-look.org/usermanager/sea … n=contents
    i think that's all, folks!
    Last edited by DonVla (2007-08-24 19:05:39)

    DonVla wrote:
    hello,
    yes, the statistics line at the top is conky. it's a pretty simple setup. just everything written in line w/ "|" as separators.
    the .conkyrc:
    <snip>
    One suggestion I'd like to make for the .conkyrc you posted is that using:
    use_spacer yes
    is very helpful, especially in single-line / horizontal conky set-ups* where monitors' changing width can be more visually apparent / displeasing. Of course, this is only helpful with monospace fonts.
    Also, if I may, I normally use a vertical conky layout which allows for much more information / monitors to be used. With single-line horizontals, you are much more limited in what will fit across the screen. As such, I created this script which toggles between various "conkyrc" files:
    #!/bin/sh
    ##Script Name: toggle_conky
    ##Description of Script: toggle launch / close of conky
    ##Date: 2007 0826
    conkypid="$(pidof -s conky)"
    conkyrc_1="$HOME/.conkyrc"
    conkyrc_2="$HOME/.conkyrc_HORIZMain"
    conkyrc_3="$HOME/.conkyrc_HORIZHwStatus"
    conkyrc_4="$HOME/.conkyrc_HORIZDisks"
    tmpfile="/tmp/myconky_status"
    # run conkyrc default
    function conky_1 {
    conky -c $conkyrc_1 &
    echo '2' > $tmpfile
    # run alternate 2 conkyrc
    function conky_2 {
    kill -15 $conkypid
    conky -c $conkyrc_2 &
    echo '3' > $tmpfile
    # run alternate 3 conkyrc
    function conky_3 {
    kill -15 $conkypid
    conky -c $conkyrc_3 &
    echo '4' > $tmpfile
    # run alternate 3 conkyrc
    function conky_4 {
    kill -15 $conkypid
    conky -c $conkyrc_4 &
    echo '100' > $tmpfile
    # quit conky
    function conky_100 {
    kill -15 $conkypid
    rm -f $tmpfile
    if [ -z "$conkypid" ] ; then
    conky_status="1"
    elif [ -n "$conkypid" ] && [ -f "$tmpfile" ] ; then
    conky_status=$(cat $tmpfile)
    fi
    case "$conky_status" in
    1)
    conky_1
    2)
    conky_2
    3)
    conky_3
    4)
    conky_4
    100)
    conky_100
    esac
    exit
    Just create a desktop or panel launcher (or whatever you might use for a particular DE) pointing to the script. In this example, clicking the launcher:
    - the first time = launching default conky w / default conkyrc
    - the second time = launching horizontal conky w / .conkyrc_HORIZMain
    - the third time = launching horizontal conky w / .conkyrc_HORIZHwStatus
    - the fourth time = launching horizontal conky w / .conkyrc_HORIZDisks
    - the fifth time = quitting conky
    By using the script, you can keep the minimalist horizontal set-up while retaining flexibility of switching monitors simply by clicking the launch icon (of course you have to also prepare separate conkyrc files). By creating more conkyrc files and modifying the script to accommodate them, you could "rotate" between any number of conky layouts to suit your needs.
    Just thought I'd throw this out there.
    * Note: I realize that you aren't using a single-line horizontal layout based on your posted conkyrc, but from the screenshot in the original post, it appeared that way to viewers of the screenshot because you had open windows covering the other areas.
    Last edited by MrWeatherbee (2007-08-26 20:28:51)

  • Dzen, conky and wmii statusbar...

    Hi,
    [What I need]
    I'm trying to get a system info statusbar working on my wmii setup.
    [What I've done so far]
    1. Using wmii's statusbar directly is too difficult for me as I don't have enough knowledge about my system to get all the information I need and I a feel *a bit* unconfortable to work with sed and awk.
    2. Then I tried to pipe conky into wmii statusbar but it is not straightforward at all, as the only working way I found, posted on the wmii thread, makes conky write a file and then wmii status bar to continuosly 'cat' that file. This way my hard disk is always active as wmii is always reading conky's output file.
    3. I finally decided not to use wmii's stausbar and "replace" it with conky piped into dzen2. The major problem is that dzen initially displays conky's output correctly but the whole bar disappears as soon as I switch to another workspace.
    Can someone point me to a solution?
    Here's my dzen_conky.sh script:
    #!/bin/bash
    FG='#999999'
    BG='#181818'
    FONT='-xos4-terminus-medium-r-*--12-*-*-*-*-*-iso10646-1'
    conky | dzen2 -ta r -h 12 -y 787 -fg $FG -bg $BG -fn $FONT
    Many thanks!

    rent0n wrote:
    Hi,
    [What I need]
    I'm trying to get a system info statusbar working on my wmii setup.
    [What I've done so far]
    1. Using wmii's statusbar directly is too difficult for me as I don't have enough knowledge about my system to get all the information I need and I a feel *a bit* unconfortable to work with sed and awk.
    2. Then I tried to pipe conky into wmii statusbar but it is not straightforward at all, as the only working way I found, posted on the wmii thread, makes conky write a file and then wmii status bar to continuosly 'cat' that file. This way my hard disk is always active as wmii is always reading conky's output file.
    3. I finally decided not to use wmii's stausbar and "replace" it with conky piped into dzen2. The major problem is that dzen initially displays conky's output correctly but the whole bar disappears as soon as I switch to another workspace.
    Can someone point me to a solution?
    Here's my dzen_conky.sh script:
    #!/bin/bash
    FG='#999999'
    BG='#181818'
    FONT='-xos4-terminus-medium-r-*--12-*-*-*-*-*-iso10646-1'
    conky | dzen2 -ta r -h 12 -y 787 -fg $FG -bg $BG -fn $FONT
    Many thanks!
    hmmm...i think you'll need to add -p at the end of the dzen2 options line..it means persist or something like that.i hope that helps

Maybe you are looking for

  • Supplier Details -- Contacts

    Hi, I need a query to bring the suuplier name along with the contacts 1.select * from ap_suppliers -- will give the supplier_name 2. Contacts ----?? I dont want contacts at the site level but at the supplier header level.

  • How do I get the Back Button drop down menu back?

    When surfing in a tab there used to be a drop down menu next to the forward and back buttons. It was a little tiny triangle looking arrow. This was really useful and needed. It is gone in Firefox 4 as far as I can see. I am using the default 4.0 Them

  • How To Do Frame animation w/ Multiple Layers Per Frame

    So I'm working on an 8-bit character template as game art. I've got multiple layers (ie: Hat Apparel, Body, Pants, Shirt, Neck Apparel, Mouth Apparel). I want all of these to be animated in their own layers. Is there a way to do that? I have all of t

  • What's with the Yoga 3 Pro power adapter - it's a USB charger too?

    absolutly agree, no chance to buy this cable in NZ. What a bad service. If anybody has a link where to buy one for ANZ would be great.

  • Cannot Update to Photoshop CC 14.2

    My CC Manager reports that Photoshop is up to date.  When I try to update from Photoshop Help, it indicates it is up to date.  Further, I cannot even install 14.2 by downloading it directly from my Adobe Account. How can I get Photoshop updated?