Ratpoison + dzen2 + conky-cli [SOLVED]

Hello,
I am currently trying to mix ratpoison up a little bit with the dzen2 statusbar. The bar appears and everything, no issues there, but as soon as I fire up a frame with rp it overlaps the bar! I figured that there should be some option for makin dzen2 always staying on top but I can't find anything regarding that feature(if it exists). Anyone with ideas?
Here is my .xinitrc: (don't mind the long sleep, that will be corrected sooner or later ;))
1 #!/bin/bash
2
3 (sleep 15s && conky | dzen2 -e '' -h '16' -w '1980' -ta r -fg '#aaaaaa' -bg '#1a1a1a' -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -p) &
4 exec ratpoison
/David
Last edited by dlind (2010-07-27 15:32:50)

splittercode wrote:
in .ratpoisonrc
padding left top right bottom
replace left, right, top, and bottom with the number of pixels to leave blank for your statusbar
for example, to leave 16px blank at top
'padding 0 16 0 0'
Thank you for the reply.
I have the value 'defpadding 0 0 0 0' in my .ratpoisonrc, changing the second value to 16 doesn't do anything though. I tampered with all of the values to see if it altered the frames in some way, but nothing happened.
New ideas? :)
/David

Similar Messages

  • [SOLVED] dwm + dzen2 + conky-cli misconfigured

    I have been trying to pipe conky status to dzen2 and it is doing my head in.
    My .xinitrc
    #!/bin/sh
    # ~/.xinitrc
    setxkbmap -option terminate:ctrl_alt_bksp &
    eval `cat ~/.fehbg` &
    numlockx &
    xscreensaver -no-splash &
    # Dzen & conky
    conky | dzen2 -fg '#dcdcdc' -bg '#3f3f3f' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' &
    # Start dwm
    exec ck-launch-session ~/Scripts/dwm-start
    .conkyrc
    background no
    out_to_console yes
    update_interval 2
    total_run_times 0
    use_spacer none
    double_buffer yes
    TEXT
    ${if_existing /sys/class/power_supply/BAT0/present}^fg(#999999)BAT^fg()${battery_percent}%${else}AC${endif} * CPU ${cpu cpu1}% RAM ${memperc}% * / ${fs_used_perc /}% /home ${fs_used_perc /home}% * PKG ${execpi 900 ~/Scripts/pacman-up.pl} * ${if_existing /proc/net/route ra0}Down ${downspeedf ra0}K/s Up ${upspeedf ra0}K/s ${else} ${if_existing /proc/net/route eth0} Down ${downspeedf ra0}K/s Up ${upspeedf ra0}K/s${endif} ${endif}* ${time %I:%M%P}
    Start dwm script
    conky | while read line; do
    xsetroot -name "$line";
    done | while true; do
    dwm > /dev/null; done;
    Could anyone point me at what I am doing wrong? I have tried following examples in the forums, including this one and this one -- but I either end up with dwm 5.7.2 in the corner, or conky prints out the ^fg etc...
    Any help would be appreciated at this point...
    Last edited by jasonwryan (2009-11-20 06:11:51)

    Thanks for the suggestions Skanky. The broken line in conky was a copy/paste error into the browser - it is a single line conky (I've edited the OP to reflect that).
    I think it is a problem with the way conky-cli and dzen work together. If I run:
    echo "testing" | dzen2 -fg '#dcdcdc' -bg '#3f3f3f' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -p
    it prints as expected.
    Similarly, if I comment the conky | dzen2 line in .xinintrc and just run conky-cli from the start script it works...
    Trying to get then to work together, however, is another matter.
    /edit
    Some progress: it seems that it is being drawn - if I Mod-Shift-q the dwm status bar briefly disappears and I can see conky momentarily. I tried starting conky | dzen2 after dwm but that didn't work.
    I have also added some options, which seem to have helped, my .xinintrc entry now looks like:
    conky | dzen2 -x '500' -e '' -fg '#dcdcdc' -bg '#3f3f3f' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -p &
    Last edited by jasonwryan (2009-11-19 16:57:13)

  • [solved] Cannot compile conky-cli (compiler cannot create executables)

    I'm having what seems to be a pretty common problem, but I cannot solve it. I've searched google and the forums, and I'm sure the answer is very easy, but I'm just stuck.
    ==> Starting build()...
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output file name...
    configure: error: in `/tmp/yaourt-tmp-heleos/aur-conky-cli/conky-cli/src/conky-1.7.1.1':
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    make: *** No targets specified and no makefile found. Stop.
    ==> ERROR: Build Failed.
    Aborting...
    Error: Makepkg was unable to build conky-cli package.
    If someone could point me in the right direction that would be great
    Solved my own problem! Looks like it was a change I made to my makepkg.conf.... Does anyone have a CFLAGS that's safe for an i7?
    Last edited by heleos (2009-08-25 01:07:24)

    Do you (or someone else) have a pkgbuild that you would like to share? I'm in need of the ecj compiler, but didn't find a pkgbuild in aur (unlessed I missed it somehow)
    Kind regards,
    Simon

  • Dzen2 and conky-cli issue

    Hello I'm trying to set up dzen2 with conky-cli, here's my configs etc:
    /bin/dzconky:
    FG='#aaaaaa'
    BG='#1a1a1a'
    FONT='-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*'
    conky | dzen2 -e -h '16' -w '600' -ta r -fg $FG -bg $BG -fn $FONT
    .conkyrc:
    background no
    out_to_console yes
    update_interval 1.0
    total_run_times 0
    use_spacer no
    TEXT
    ${time "%A %-d. %B %H:%M}
    And when i try to run dzconky, this appears:
    [roberth@Magda ~]$ dzconky
    usage: dzen2 [-v] [-p [seconds]] [-m [v|h]] [-ta <l|c|r>] [-sa <l|c|r>]
    [-x <pixel>] [-y <pixel>] [-w <pixel>] [-tw <pixel>] [-u]
    [-e <string>] [-l <lines>] [-fn <font>] [-bg <color>] [-fg <color>]
    [roberth@Magda ~]$
    Where is the error, and by the way, how do I get the same as xft-sans-10 with dzen2?
    Last edited by Roberth (2007-12-16 20:49:02)

    thayer wrote:
    I believe you must add the path to terminus in your xorg.conf... at least that's what I had to do:
    Section "Files"
    FontPath "/usr/share/fonts/local" # added for Terminus
    EndSection
    Thank you that helped.

  • Conky-cli - awesome-client = no go?

    So, I've recently switched to Awesome from Xmonad (yes, it's MUCH easier to configure, unless you know haskell of course). Everything has gone fairly well except that I can't get conky-cli to work with the awesome-client statusbar.  I'm running the patched version of conky and I've followed the tutorials on the awesome website, but for whatever reason all that appears in the statusbar are dashes used as placeholders for the textboxes. I've tried this using the non-patched conky-cli, also unsuccessfully.
    I'm running awesome-git, which appears to be v2.3.rc1.25.g96fe2ec (Productivity Breaker).  The following are my sample configs (I've disabled the other conky stats until I know this is working):
    [thayer@dublin:~] $ cat .conkyrc
    background no
    no_buffers yes
    out_to_console yes
    update_interval 1
    uppercase no
    use_spacer none
    total_run_times 0
    TEXT
    0 widget_tell clock ${time %a %b %d %I:%M%P}
    Relevant portion of .awesomerc:
    statusbar bottom
    position = bottom
    width = 0
    height = 0
    textbox clock { align = "right" text = "-" }
    If I run conky on its own, it spits out the expected text:
    [thayer@dublin:~] $ conky
    0 widget_tell clock Wed Apr 16 08:04pm
    And my .xinitrc file:
    conky | awesome-client &
    urxvt &
    exec awesome
    Last edited by thayer (2008-04-17 03:13:54)

    omega_0815 wrote:
    That should get conky to work, if it doesn't work try starting conky without piping to awesome-client in .xinitrc.
    I have conky running here with awesome-git for the same reasons you mentioned, but I will take a look at amazing this weekend.
    Hope that solves your issue.
    Thanks omega, I had actually tried that syntax before, but it didn't work for me.   BUT... since you mentioned that it DOES work for you, I decided to poke around a bit more and I figured out that if I add 'text' as well as the statusbar name it works fine:
    0 widget_tell bottom mpd text $mpd_smart
    0 widget_tell bottom spacer1 text ::
    0 widget_tell bottom cpuload text ${cpu cpu1}% / ${cpu cpu2}% ${loadavg 1} ${loadavg 2 3}
    0 widget_tell bottom spacer2 text ::
    0 widget_tell bottom cputemp text ${i8k_cpu_temp}c ${freq_g 1}/${freq_g 2}GHz
    0 widget_tell bottom spacer3 text ::
    0 widget_tell bottom memory text $memperc% ($mem)
    0 widget_tell bottom spacer4 text ::
    0 widget_tell bottom power text ${if_empty ${exec awk '{print $2}' /proc/acpi/ac_adapter/AC/state | grep 'on-line'}}${else}${endif}$battery $battery_time
    0 widget_tell bottom spacer5 text ::
    0 widget_tell bottom network text ${if_empty ${exec ifconfig wlan0 | grep 'inet addr:'}}${downspeed eth0}K/s ${upspeed eth0}K/s${else}${exec iwconfig wlan0 | grep 'Signal level' | cut -d= -f3 | awk '{print 100+$1 "%"}'} ${exec iwgetid | cut -d\" -f2 | awk '{print $1}'} ${downspeed wlan0}K/s ${upspeed wlan0}K/s${endif}
    0 widget_tell bottom spacer6 text ::
    0 widget_tell bottom clock text ${time %a %b %d %I:%M%P}

  • Can't get conky-cli and bash scripts to both display in dwm statusbar!

    I'm trying to configure my dwm status bar to display some simple information using conky-cli and bash scripts. At first I tried just letting conky run the bash scripts (for network and volume state), but this increased my cpu usage by about 5%, which is significant considering I normally have 1-3% usage when idle. Also, I wanted to keep conky because it makes the display of certain information easy, such as cpu & RAM usage.
    The problem is I'm having trouble getting both to display side by side. Here are the relevant parts of my .xinitrc:
    network(){
    iwconfig wlan0 2>&1 | grep -q no\ wireless\ extensions\. && {
    echo wired
    exit 0
    essid=`iwconfig wlan0 | awk -F '"' '/ESSID/ {print $2}'`
    stngth=`iwconfig wlan0 | awk -F '=' '/Quality/ {print $2}' | cut -d '/' -f 1`
    bars=`expr $stngth / 10`
    case $bars in
    0) bar='[-------]' ;;
    1) bar='[#------]' ;;
    2) bar='[##-----]' ;;
    3) bar='[###----]' ;;
    4) bar='[####---]' ;;
    5) bar='[#####--]' ;;
    6) bar='[######-]' ;;
    7) bar='[#######]' ;;
    *) bar='[--!!!--]' ;;
    esac
    echo $essid$bar
    exit 0
    volume(){
    vol=$(amixer get Master | awk -F'[]%[]' '/%/ {if ($7 == "off") { print "MM" } else { print $2 }}' | head -n 1)
    echo Vol: $vol%
    exit 0
    conky | while true; read line; do xsetroot -name "`$line` `volume` `network` `date '+%a %m-%d-%Y %I:%M%p'`"; done &
    exec dwm
    (let me know if it would help to post any other files)
    For some reason when I run this I only get the network/volume scripts and date running, updating every second (I think). The conky line just doesn't show up. I don't know what could be wrong, since I didn't see any error messages.
    An even better solution would be to just have shell scripts to display CPU and MEM usage. I have a dual-core cpu, cpu0 and cpu1. I'd like to see both percentages if possible, or at least a percentage that is an accurate average of the two or something. In conky-cli I have something that shows:
    cpu0/1: xx% xx%
    Also, seeing RAM usage would help a lot. In conky it shows:
    mem: xx% (xxxMB)
    These are the ways I would like to have bash scripts show them, if possible, but I have zero skill in bash programming. I made this an option in case it's easier/cleaner/less resource hungry than a conky solution. Personally, if they're about the same in these aspects, I would prefer something with conky and the shell scripts because conky is so extensible, yet it's only flaw is executing scripts with minimal resource usage.
    Help?

    Thanks. I was thinking of using load average to save a few characters, but I didn't quite understand the numbers. I'll try that once I get to my Linux box, but could you please explain or post a link to something that explains load average (what's low, high, normal, etc.)?
    EDIT: I found a website that explains loadavg. I now have my dwm status bar displaying it perfectly (yay!). Now I just need to add a few more things like battery status, etc. and I might be done. I'll probably post here if I have more questions, though.
    Thanks for your help!
    Last edited by Allamgir (2009-07-18 14:41:11)

  • Preventing conky-cli from changing size in dwm

    Having conky-cli in the status bar suits my needs perfectly, but there's one annoying problem. When the amount of numbers are changing, the width of the conky-bar changes. This makes the width of the windowtitle to the left of it change continuously as well.
    How can i make conky-cli having a fixed width?
    Last edited by schnitz (2009-09-12 00:19:21)

    Have you tried using the
    maximum_width
    option in your config file?

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

  • Can top show top mem users by MB not % in conky?[Solved]

    I have googled everything. I can not figure out how could I display top memory usage programs in conky with the "top" application. I want it to display MB not the procents. Can that be done?
    Last edited by Ventil1 (2010-07-07 19:13:14)

    Access these three menus:
    'f'
    'o'
    'O'
    Make sure 'q' is selected for physical memory (RES).
    edit: And then press 'W'.
    Last edited by Procyon (2010-07-06 16:50:09)

  • Strange MPD problems (conky/dzen?)

    I'm having a strange problem with MPD ever since I started messing around with xmonad/dzen2/conky-cli. I seem to lose control of mpd, but my music continue's to play... Sometimes it will randomly come back, but most of the time I'm left unable to control it, the only way of stopping it being a kill. here are the errors I'm getting (from a conky-cli config):
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:39 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:40 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:41 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:42 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:43 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:44 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:45 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    I never had this problem until I started messing with all this new stuff.... I'll check mpd in a different environment and see what happens... in the mean time, here is my relevant mpd.conf, although nothing has changed since when it was working:
    music_directory "/mnt/storage/Music"
    playlist_directory "/home/heleos/.mpd/playlists/"
    db_file "/home/heleos/.mpd/mpd.db"
    log_file "/home/heleos/.mpd/mpd.log"
    error_file "/home/heleos/.mpd/mpd.error"
    pid_file "/home/heleos/.mpd/mpd.pid"
    state_file "/home/heleos/.mpd/mpdstate"
    user "heleos"
    port "6600"
    audio_output {
    type "oss"
    name "My OSS Device"
    # device "/dev/dsp" # optional
    # format "44100:16:2" # optional

    CoolWhip, better open a thread on your own and refer back to this one. You will be more in control besides being more actual.
    (You can even mark your thread as [SOLVED] if you get this far. )
    Closing this one.

  • [solved]cannot load font dzen2

    hello. I was able to apply space for a bottom gap for DWM. I am trying to get dzen2 and conky to show up at the bottom. I have conky-cli installed as well.
    error: dzen: error, cannot load font: '-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*'
    here is my $HOME/.bin/dzconky (i did chmod a+x it)
    #! /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
    also will this work to load dzen2 at startup?
    this is in my xinitrc
    #dzconky
    sh /home/hei/.bin/dzconky&
    Last edited by cirnOS (2011-09-10 23:26:31)

    karol wrote:
    Do you have that font? maybe you need to run
    xset +fp /usr/share/fonts/local
    for all the apps to see it.
    Ah that worked. However now it seems the dzen bar appears on the top where my DWM bar is.
    edit: here is my conkyrc in case that helps, it appears changing the x and y doesn't change much.
    background no
    out_to_console yes
    update_interval 1.0
    total_run_times 0
    use_spacer none
    # colors
    default_color eab93d
    own_window_colour 000000
    #background yes
    #update_interval 2
    #use_spacer none
    TEXT
    ^fg(\#1863b9)^i(/home/hei/.dzen2/xbm8x8/info_01.xbm)
    ^fg(\#b9b9b9)${uptime_short} ^fg(\#cc880a)^i(/home/hei/.dzen2/xbm8x8/cpu.xbm) ^fg(\#b9b9b9)CPU=${cpu cpu0}% ^fg(\#cc880a)^i(/home/hei/.dzen2/xbm8x8/usb.xbm) ^fg(\#b9b9b9)${fs_free /}${color} ^fg(\#cc880a)^i(/home/hei/.dzen2/xbm8x8/usb.xbm) ^fg(\#b9b9b9)${fs_free /tmp} ^fg(\#cc880a)^i(/home/hei/.dzen2/xbm8x8/usb.xbm) ^fg(\#b9b9b9)${fs_free /home} ^fg(brown)^i(/home/hei/.dzen2/xbm8x8/net_down_03.xbm) ^fg(\#b9b9b9)${downspeed ppp0} ^fg(\#1863b9)^i(/home/hei/.dzen2/xbm8x8/net_up_03.xbm) ^fg(\#a5a5a5)${upspeed ppp0}
    Last edited by cirnOS (2011-09-10 20:15:15)

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

  • [Solved] Conky+dwm

    I'm planning to use Conky as a nice status bar for dwm. Will it work using the out_to_console=yes option or do I need to install conky-cli for that?
    Last edited by De Mysteriis (2009-02-12 12:36:12)

    I believe you'll need conky-cli (that's what I use anyway) otherwise it'll do weird things with your desktop regardless of the console output setting.

  • Getting xmonad, dzen and conky to go hand in hand...

    Hello
    Here is my config
    import XMonad
    import XMonad.Hooks.DynamicLog
    import XMonad.Hooks.ManageDocks
    import XMonad.Util.Run
    import XMonad.Util.Loggers
    import XMonad.Util.EZConfig(additionalKeys)
    import System.IO
    main = do
    statuspipe <- spawnPipe "dzen2 -bg black -fg white -ta l -w 1680"
    xmonad $ defaultConfig {
    terminal = "terminal --hide-menubar",
    borderWidth = 2,
    normalBorderColor = "#000000",
    focusedBorderColor = "#0071FF",
    manageHook = manageDocks <+> manageHook defaultConfig,
    layoutHook = avoidStruts $ layoutHook defaultConfig,
    logHook = dynamicLogWithPP $ defaultPP
    ppCurrent = dzenColor "#FFFFFF" "#0071FF"
    , ppOutput = hPutStrLn statuspipe
    -- , ppVisible = dzenColor "#8B80A8" ""
    , ppHidden = dzenColor "#FFFFFF" ""
    , ppHiddenNoWindows = dzenColor "#4A4459" ""
    -- , ppLayout = dzenColor "#6B6382" ""
    , ppSep = " "
    , ppWsSep = " "
    , ppUrgent = dzenColor "#0071FF" ""
    -- , ppTitle = dzenColor "#AA9DCF" "". shorten 700 . dzenEscape
    `additionalKeys`
    ((0, xK_Print), spawn "scrot") ,
    ((mod1Mask, xK_F2), spawn "gmrun")
    As you can see I am running dzen straigth out of the xmonad config, the reason I need to do that is the status stuff for xmonad. And now I want to add conky stuff to it. The only way I found(or to honest a friend of mine sort of) was to add the line ppExtra which uses logcmd to run conky.
    The solution was great exept, I wasn't able to adjust where I wanted the conky on my dzen bar it was just placed right beside the status stuff in the dzen since conky couldn't decide itself where to be. The solution on the wiki wount work for me since I have the status stuff on dzen.
    So any suggestions?

    I've spent quite some time doing the exactly same thing as you're trying to achieve (I believe). My dzen bar(s) look like this:
    In order to achieve that I'm running two instances of dzen. One for the workspaces and title, and one for date/cpu load/ram etc. (which is sent directly from conky-cli). Both instances are started by xmonad using spawnPipe (configured in xmonad.hs.). I haven't added much comments to my xmonad.hs, but hopefully you'll figure it out
    {- xmonad.hs -}
    -- Imports --
    -- main
    import XMonad
    import IO (Handle, hPutStrLn)
    -- utils
    import XMonad.Util.Run (spawnPipe)
    -- hooks
    import XMonad.Hooks.ManageDocks
    import XMonad.Hooks.DynamicLog
    -- layouts
    import XMonad.Layout.NoBorders
    -- Variables --
    myNormalBGColor = "#2e3436"
    myFocusedBGColor = "#414141"
    myNormalFGColor = "#E0FFFF"
    myFocusedFGColor = "#1994d1"
    myUrgentFGColor = "#f57900"
    myUrgentBGColor = "#2e3436"
    mySeperatorColor = "#2e3436"
    myVisibleBGColor = "#515151"
    -- Remember to change to appropiate path
    xmonadDir = "/home/<user>/.xmonad"
    -- Main --
    main = do
    bar <- spawnPipe myWorkspaceBar
    bar2 <- spawnPipe myDateBar
    xmonad $ defaultConfig
    { manageHook = manageDocks <+> manageHook defaultConfig
    , layoutHook = myLayoutHook
    , logHook = dynamicLogWithPP $ myDzenPP bar
    , workspaces = myWorkspaces
    , terminal = myTerminal
    , borderWidth = myBorderWidth
    , normalBorderColor = myNormalBorderColor
    , focusedBorderColor = myFocusedBorderColor
    -- Terminal --
    myTerminal = "urxvt"
    -- Workspaces --
    myWorkspaces = ["1:main", "2:misc", "3", "4", "5", "6", "7", "8", "9"]
    -- Looks --
    -- borders
    myBorderWidth = 1
    myNormalBorderColor = "grey30"
    myFocusedBorderColor = "#1994d1"
    -- layoutHooks
    myLayoutHook = avoidStruts (tiled ||| Mirror tiled ||| noBorders Full)
    where
    tiled = Tall 1 (3/100) (3/5)
    -- DZEN bars --
    myWorkspaceBar = "dzen2 -p -ta l -h 12 -w 840 -x 1024 -bg black -fn '-*-terminus-*-*-*-*-*-*-*-*-*-*-*'"
    myDateBar = "conky | dzen2 -ta r -h 12 -w 840 -x 1864 -bg black -fn '-*-terminus-*-*-*-*-*-*-*-*-*-*-*'"
    -- DZEN looks --
    myDzenPP handle = defaultPP
    myDzenPP handle = defaultPP
    { ppCurrent = wrap ("^fg(" ++ myFocusedFGColor ++ ")^bg(" ++ myFocusedBGColor ++ ")^p(2)^i(" ++ xmonadDir ++ "/dzen_bitmaps/has_win.xbm)") "^p(4)^fg()$
    , ppUrgent = wrap ("^fg(" ++ myUrgentFGColor ++ ")^bg(" ++ myUrgentBGColor ++ ")^p(4)") "^p(4)^fg()^bg()"
    , ppVisible = wrap ("^fg(" ++ myNormalFGColor ++ ")^bg(" ++ myNormalBGColor ++ ")^p(4)") "^p(4)^fg()^bg()"
    , ppHiddenNoWindows = wrap ("^fg(" ++ myNormalFGColor ++ ")")"^fg()"
    , ppHidden = wrap ("^fg(" ++ myNormalFGColor ++ ")^bg(" ++ myVisibleBGColor ++ ")^p(4)") "^p(4)^fg()^bg()"
    , ppSep = ""
    , ppTitle = dzenColor myNormalFGColor "" . wrap "< " " >"
    , ppOutput = hPutStrLn handle
    , ppLayout = dzenColor myFocusedFGColor "" .
    (\x -> case x of
    "Tall" -> "^p(4)^i(" ++ xmonadDir ++ "/dzen_bitmaps/tall.xbm)^p(4)"
    "Mirror Tall" -> "^p(4)^i(" ++ xmonadDir ++ "/dzen_bitmaps/mtall.xbm)^p(4)"
    "Full" -> "^p(4)^i(" ++ xmonadDir ++ "/dzen_bitmaps/full.xbm)^p(4)"
    I addition to this you'll have to configure your ~/.conkyrc file, but this is done very easily.
    Btw, to configure the position of the dzen bar and what's displayed in dzen, read the dzen2 man.
    Last edited by sablabra (2008-12-09 19:11:57)

  • Conky and mailcheck

    Hi all
    I'm fetching my mails from Gmail with offlineimap.
    All mails goes to /home/niels/Mail/INBOX
    I would like to have conky showing me the amount of new mail.
    background no
    out_to_console yes
    update_interval 1.0
    total_run_times 0
    use_spacer no
    mail_spool $MAIL
    TEXT
    ${new_mails} Nye breve
    But this doesn't work ??
    I've set the maildir in my enviroment:
    MAILPATH=/home/niels/Mail/INBOX/new/
    With this I can see there are new mails, in my shell.
    But it wont work with conky
    I've tried:
    ${new_mails (/home/niels/Mail/INBOX/new)} Nye breve
    and
    ${mails (/home/niels/Mail/INBOX/new)} Nye breve
    But nothing seems to work !!
    Anyone knows what should be done here ??
    I am using Xnomad with conky-CLI/dzen !

    Nope
    It wont work
    I have this in my .conkyrc:
    background no
    out_to_console yes
    update_interval 1.0
    total_run_times 0
    use_spacer no
    mail_spool /home/niels/Mail/INBOX/new/
    TEXT
    ${mails} Nye breve ^fg(#ff0000)${loadavg 1 2 3} ^fg()${time %A d.%d.%m.%y | uge %V |} ^fg(#00FF00)${time %T}
    It outputs the same devastating result 

Maybe you are looking for

  • Loading a movie within a movie

    Hello! I am trying to figure out the proper code for my button which should unload a movie and then call an external swf to load within a specific frame of yet another movie clip. Hope that made sense. In other words... I want the new clip to load at

  • How is the iPhoto Library organized

    I apologize if this topic has been covered - point me to earlier discussions if appropriate. I'm curious about the filing scheme in the iPhoto Library. When I look in the Finer in the Library I see that there are folders by year, and within those fol

  • Norton IS & Adobe Flash not compatible with FF5. Why release new version without compatability?

    JEEZ! Your own feedback site doesn't work. Norton & Adobe Flash are not working with Firefox 5. Yes, I selected "Other Browsers". Before you release a new version, please be sure essentials are compatible. It's a major pain to lose access to these. h

  • Bdb cleaner fall behind a lot

    Hi, Firstly, apologize for my poor english. I have met some issues when we using bdb in our application, and need help. We are using bdb in transaction mode in our application. The issue we met is that: the bdb cleaner is running, and I can saw bdb l

  • Google south africa ?

    Since yesterday I am unable to connect to Google South Africa and do not have the option to search SA sites any more. Only Google search and I'm feeling lucky. When clicking on my desktop the .co.za shows for a nano second and then goes to ig/.com=hn