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

Similar Messages

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

  • 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

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

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

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

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

  • [solved] dwm + conky + mpd

    I have the following .conkyrc:
    background no
    out_to_console yes
    update_interval 2
    total_run_times 0
    use_spacer none
    TEXT
    $if_mpd_playing ^i(/home/hithere/.dwm/dzen/xbm8x8/note.xbm) ${mpd_smart}$endif • ^i(/home/hithere/.dwm/dzen/xbm8x8/cpu.xbm) ${cpu}% • ^i(/home/hithere/.dwm/dzen/xbm8x8/mem.xbm) ${memperc}% • ^i(/home/hithere/.dwm/dzen/xbm8x8/fs_01.xbm) /sda1: ${fs_used_perc /}% | /sda2: ${fs_used_perc /home}% • ^i(/home/hithere/.dwm/dzen/xbm8x8/net_down_03.xbm) ${downspeedf eth0} ^i(/home/hithere/.dwm/dzen/xbm8x8/net_up_03.xbm) ${upspeedf eth0} • ^fg(\#696969)${time %H:%M}^fg()
    When I play a music file via ncmpc++, the conky display gets shifted to the right, thus hiding my download/upload speeds, clock, etc. Is there a way to anchor my conky display information and have mpd fill the music file information to the left?
    Last edited by ntness (2010-05-30 06:13:38)

    Ok, played with -x and -w a bit. Increasing -w truncates the clock/up and down speed/drive information (apparently shifting things off the screen to the right). Decreasing -w truncates almost everything and shifts the code towards the center of the screen. The same holds for increasing and decreasing the value of -x; increasing shifts everything to the right (off screen) and decreasing shifts everything towards the center (albeit, with no truncation). Now I'm positive this would all work out merrily if I had my cpu information in the top left and so could put the mpd code at the end of my 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.

  • [SOLVED]Creating a gap at the top of the screen in DWM / Dzen2

    I've messed around with this for a couple days to no avail. I'd like to create a small gap at the top of the screen in dwm 6.0 (replacing dwm's topbar) so I can insert a dzen status bar. I'm pretty new to editing dwm.c, but from my google-fu have found that the answer lies somewhere in the setup() and updategeom() functions. Any other relevant information is only applicable to earlier versions of dwm.
    So, can anyone help me out, or atleast point me in the right direction? I understand this might be possible through xmonad, but would like to avoid that if there's a chance.
    Last edited by thecarrotstick (2013-06-27 22:57:33)

    Trilby wrote:If you really want to replace dwm's bar, then you don't need to do anything - just have dzen over dwm's bar.  If you wanted to make it as efficient as possible, you could delete the function that draws the bar (or probably more easily just delete it's contents so it is an empty function).
    That actually worked to some effect, I was so OCD about it being clean I didn't want to paint over the original bar, but just deleting the function that draws it doesn't seem to have removed the gap where it used to be. This solution also allows me the ability to hide it as well.
    So thanks, I'm pretty happy with these results.

  • [Solved] dwm status bar

    I am learning about DWM...slowly...
    So, I have conky piped to dzen2 as per the screenshot;
    But how do I now remove the 'dwm-6.0' from the status bar?
    Thanks for your patience.
    Last edited by ancleessen4 (2013-04-13 11:05:17)

    dzconky;
    #!/bin/sh
    FG='#aaaaaa'
    BG='#333333'
    FONT='-*-inconsolata-*-r-normal-*-*-90-*-*-*-*-iso8859-*'
    conky | dzen2 -e - -h '14' -w '1100' -ta r -x '750' -fg $FG -bg $BG -fn $FONT &
    conky;
    out_to_console yes
    #out_to_x no
    background no
    update_interval 2
    total_run_times 0
    use_spacer none
    TEXT
    #Arch 64 :: $kernel :: $uptime_short :: ^fg(\#60B48A)$mpd_smart ^fg():: ${cpu cpu1}% / ${cpu cpu2}% :: cpu0 ${execi 5 sensors | grep "Core 0" | cut -d "+" -f2 | cut -c1-2}C cpu1 ${execi 5 sensors | grep "Core 1" | cut -d "+" -f2 | cut -c1-2}C :: ^fg(\#DC8CC3)$memperc% ($mem) ^fg():: ${downspeed enp0s20} ${upspeed enp0s20} :: ${time %a %b %d %H:%M}
    $kernel :: Updates: ${if_match ${execi 1800 (checkupdates | wc -l)} == 0}${color2}up to date${color}${else}${color3}${execi 1800 (checkupdates | wc -l)} new packages${color}${endif} :: ^fg(\#60B48A)$mpd_smart ^fg():: ^fg(\#DC8CC3)$memperc% = $mem ^fg():: ${time %H:%M} :: ^fg(\#8CD0D3)${execi 300 /home/neil/bin/weather.sh "EUR|LU|LU001|Luxembourg"}
    I have tried changing '-x' and '-w' but no change to the layout...
    Just tried to recompile with '-x=850'...to try and push dzen output to the right but no change...
    makepkg -efi --skipinteg
    I am sure this is a simple solution that I am missing...

  • [SOLVED] [dwm] Can't start dwm

    Hi!
    I've recently entered the world of tiling WM and started with dwm.
    Since I'm kinda insecure, and wanted to keep gnome as well, I've followed every single step in the wiki article and used the ~/.Xclients way, so I could start dwm from gdm (I've followed also the steps in the discussion page as well).
    Then, when I tried to startup dwm from gdm, it doesn't start, and goes back again to gdm.
    My ~/.Xclients file is the following:
    setxkbmap -layout pt
    #relogio
    while true; do
    xsetroot -name "$( date +"%F %R" )"
    sleep 1m # Update time every minute
    done &
    # #estado da bateria
    # while true; do
    # batt=$(LC_ALL=C acpi -b)
    # case $batt in
    # *Discharging*)
    # batt="${batt#* * * }"
    # batt="${batt%%, *} "
    # batt=""
    # esac
    # xsetroot -name "$batt$(date +%R)"
    # sleep 60
    # done &
    #conky bar
    conky | while read -r; do xsetroot -name "$REPLY"; done &
    #executar o dwm
    exec dwm
    It's all things copied from the wiki page, just for testing if everything was fine...
    My /usr/share/xsessions/dwm.desktop file is:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Dwm
    Comment=Dynamic window manager
    Exec=/usr/local/bin/dwm
    Icon=dwm
    Type=XSession
    And I've created a /usr/share/xsessions/user.desktop file that looks like this:
    [Desktop Entry]
    Encoding=UTF-8
    Name=User XSession script
    Comment=Runs your ~./Xsession script
    Exec=/etc/X11/Xsession
    Type=Application
    Thanks in advance for any help, I've searched the forums and used google and couldn't find any answer to this problem :S
    Last edited by Aeriel (2011-09-01 17:19:02)

    haxit, thanks I've managed to solve the problem!
    I've installed SLiM and set up everything in .xinitrc.
    The dwm.desktop doesn't match with yours because I've changed somethings and because I didn't backup the file (I know, it's super dumb and stupid) I had to paste the defaults I found in the web.
    Thanks.
    Fellow gdm and dwm users, an advice, put everything in .xinitrc. It's easier.
    Last edited by Aeriel (2011-09-01 17:19:30)

  • [SOLVED] XMonad + dzen2

    I have been staring at this for the last day and I can't figure out why it isn't working.  I cannot for the life of me get topBarCmd or botBarCmd to show up; I pretty much copied these configs from one of my working systems, and just edited them for a different monitor size. 
    Relevant XMonad section:
    -- dzen config
    sBarCmd = "dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 840 -ta l"
    topBarCmd = "conky -c ~/.conkyrc | dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 840 -x 841 -ta r"
    botBarCmd = "conky -c ~/.conky_bottom_dzen | dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -y 1034 -w 1680 -ta c"
    sBarCmd shows, but the other two don't.  Any ideas?
    Last edited by lifeafter2am (2009-08-10 21:49:15)

    Well yeah, I know that. 
    Here is the whole config though.
    import XMonad
    import XMonad.Hooks.DynamicLog
    import XMonad.Hooks.ManageDocks
    import XMonad.Util.Run(spawnPipe)
    import XMonad.Util.EZConfig(additionalKeys)
    import System.IO
    import qualified XMonad.StackSet as W
    -- layouts
    import XMonad.Layout
    import XMonad.Layout.IM
    import XMonad.Layout.ToggleLayouts
    import XMonad.Layout.Reflect
    import XMonad.Layout.Combo
    import XMonad.Layout.Grid
    import XMonad.Layout.ResizableTile
    import Data.Ratio ((%))
    import XMonad.Layout.Gaps
    -- layout definitions
    customLayout = gaps [(D,16)] $ avoidStruts $ ResizableTall 2 (3/100) (1/2) [] ||| withIM (1%7) (ClassName "Buddy List") Grid ||| layoutHook defaultConfig
    -- Workspaces
    myWorkspaces = ["1:term","2:www","3:art","4:irc","5:media","6:im","7","8","9"]
    -- Window rules
    myManageHook = composeAll
    [className =? "wicd-client" --> doFloat
    ,className =? "xine" --> doFloat
    -- icons directory
    myBitmapsDir = "/home/ishikawa/.dzen"
    -- main config
    main = do
    dzenSbar <- spawnPipe sBarCmd
    dzenConkyTop <- spawnPipe topBarCmd
    dzenConkyBot <- spawnPipe botBarCmd
    spawn "xcompmgr"
    xmonad $ defaultConfig
    { manageHook = manageDocks <+> manageHook defaultConfig
    , terminal = "urxvt"
    , workspaces = myWorkspaces
    , borderWidth = 0
    , normalBorderColor = "#000000"
    , focusedBorderColor = "#3399ff"
    , layoutHook = customLayout
    , logHook = dynamicLogWithPP $ myDzenPP dzenSbar
    , modMask = mod4Mask -- Rebind Mod to the Windows key
    } `additionalKeys`
    ([ ((mod4Mask .|. shiftMask, xK_z), spawn "xscreensaver-command -lock")
    , ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s")
    , ((0, xK_Print), spawn "scrot")
    , ((mod4Mask, xK_a), sendMessage MirrorShrink)
    , ((mod4Mask, xK_z), sendMessage MirrorExpand)
    ++
    -- mod-[1..9], Switch to workspace N
    -- mod-shift-[1..9], Move client to workspace N
    [((m .|. mod4Mask, k), windows $ f i)
    | (i, k) <- zip (myWorkspaces) [xK_1 .. xK_9]
    , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]])
    -- dzen config
    sBarCmd = "dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 840 -ta l"
    topBarCmd = "conky -c /home/ishikawa/.conkyrc | dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 840 -x 841 -ta r"
    botBarCmd = "conky -c ~/.conky_bottom_dzen | dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -y 1034 -w 1680 -ta c"
    myDzenPP dzenSbar = defaultPP
    { ppCurrent = wrap "^p()[^fg(#346855)" "^fg()]^p()"
    , ppUrgent = wrap "!^fg(purple)^p()" "^fg()^p()"
    , ppVisible = wrap "^p()[^fg()" "^fg()]^p()"
    , ppTitle = wrap "^fg(#346855)< ^fg(#3a6b7a)" "^fg(#346855) >^fg()" . shorten 90
    , ppSep = " : "
    , ppWsSep = " : "
    , ppLayout = dzenColor "#346855" "#000000" .
    (\x -> case x of
    "Tall" -> "^i(" ++ myBitmapsDir ++ "/tall.xbm)"
    "Mirror Tall" -> "^i(" ++ myBitmapsDir ++ "/mtall.xbm)"
    "Full" -> "^i(" ++ myBitmapsDir ++ "/full.xbm)"
    "ResizableTall" -> "^i(" ++ myBitmapsDir ++ "/resizableGrid.xbm)"
    "IM Grid" -> "^i(" ++ myBitmapsDir ++ "/im-layout.xbm)"
    _ -> x
    , ppOutput = hPutStrLn dzenSbar
    Here are my conky's if they help too:
    conkyrc:
    # Set to yes if you want Conky to be forked in the background
    background no
    out_to_console yes
    # Update interval in seconds
    update_interval 1
    color1 ef89bb
    TEXT
    ^fg(#7ebdfc)| ^i(/home/ishikawa/.dzen/cpu.xbm) ^fg(#346855)${cpu cpu1}% ^fg(#7ebdfc) ^i(/home/ishikawa/.dzen/cpu.xbm) ^fg(#346855)${cpu cpu2}% @ $freq_g GHz ^fg(#7ebdfc)| ^i(/home/ishikawa/.dzen/mem.xbm) ^fg(#346855)$mem/$memmax ^fg(#7ebdfc)| ^i(/home/ishikawa/.dzen/net_down.xbm) ^fg(#346855)${downspeed eth1}/${totaldown eth1} ^fg(#7ebdfc)^i(/home/ishikawa/.dzen/net_up.xbm) ^fg(#346855)${upspeed eth1}/${totalup eth1} ^fg(#7ebdfc)| ^i(/home/ishikawa/.dzen/clock.xbm) ^fg(#346855)${time} ^fg(#7ebdfc)|
    conky_bottom_dzen:
    # Set to yes if you want Conky to be forked in the background
    background no
    out_to_console yes
    # Update interval in seconds
    update_interval 1
    # MPD host/port
    mpd_host localhost
    mpd_port 6600
    TEXT
    ^fg(#3a6b7a)| ^i(/home/ishikawa/.dzen/net_up_03.xbm) ^fg(#346855)$uptime ^fg(#3a6b7a)| ^fg(#1994d1) ^i(/home/ishikawa/.dzen/arch.xbm) ^fg(#346855)${texeci 1500 perl /home/ishikawa/scripts/xyne-update-checker.pl} ^fg(#3a6b7a)| ^i(/home/ishikawa/.dzen/diskette.xbm) ^fg(#346855)${fs_used sda4}/${fs_size sda4} ^fg(#3a6b7a)|^fg(#3a6b7a)| ^i(/home/ishikawa/.dzen/note.xbm) ^fg(#346855)$mpd_status : ${mpd_smart 50} ($mpd_elapsed / $mpd_length) ^fg(#3a6b7a)||
    As I said, this config works on two other systems, so I am stumped as to why it won't work on this one.

  • [Solved] xfce4+compiz: conky can only been seen if I miminzed windows?

    I have xfce4 and compiz-xfce4 installed with my Arch Linux?
    I added conky in my auto start-up setting. It turns out conky can only be seen if I minimize all windows.
    When I clicked the "show desktop" button in my xfce4-pannel, conky just cannot show up.
    Thanks,
    (pls kindly see my another question about xfce4+compiz as well: https://bbs.archlinux.org/viewtopic.php?id=177106)
    Last edited by hellolj (2014-02-13 23:12:16)

    Solved
    It turns out I have to uncheck the "Hide Skip Taskbar Windows" option under  "General Options"  in Compiz configuration settings manager.

  • [solved]tolua++ and conky 1.7.2

    I've been messing with this for a while now, but I have no idea what's wrong.
    I'm trying to compile (via ABS) the conky 1.7.2 package with support for the new lua bindings (--enable-lua-cairo/--enable-lua-imlib2). I've installed the toluapp package from AUR, which the configure script seems to accept - but it always hits a snag at this point:
    checking for tolua++... tolua++
    checking for a library containing tolua_error... no
    configure: error: tolua_error not found
    Any ideas? I'm desperate to try the new features.
    Last edited by Crows (2009-09-29 15:05:22)

    p0rkjello wrote:
    Crows wrote:Sorry, forgot to mark this as solved seeing as it was quite far off the front page. In the end I got it working by adding LUA51_LIBS='-llua -lm' to the section of the PKGBUILD that includes --enable etc.
    I can't seem to get it to work.. Could you clarify..
    build() {
    cd ${srcdir}/${pkgname}-${pkgver}
    ./configure LUA51_LIBS='-llua -lm' \
    --prefix=/usr \
    --sysconfdir=/etc \
    --enable-rss \
    --enable-ibm \
    --enable-imlib2 \
    --enable-lua \
    --enable-lua-cairo
    make || return 1
    Error:
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libtolua++.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make[1]: *** [libcairo.la] Error 1
    nevermind.. it looks like an x84_64 thing.. I need to recomple tolua++ w/ -fPIC

Maybe you are looking for