You are not logged in.

#1 2008-07-10 16:31:00

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Awesome 2.3 and status bar (conky)

Hi, I have just recently switched over to awesome, and right now I am trying to get a status bar working with some basic info, but the problem I am having right now is getting a horizontal bar graph for a few of the options.  I am using a patched version of conky to pipe the information to awesome-client.

Here is a screen shot:  http://xs.to/xs.php?h=xs329&d=08284&f=0 … ick452.png
The font is so big just so I can see the very tiny details of it.  my .conkyrc and relevant section of .awesomerc are in the screen but I will repost them here:

.conkyrc

TEXT
0 widget_tell statusbar2 cpu1 text    CPU1: ${cpubar cpu1 10,20} 
0 widget_tell statusbar2 cpu2 text    CPU2: ${cpubar cpu2 10,20} 
0 widget_tell statusbar2 mem text     Mem : ${membar 10,20} 
0 widget_tell statusbar2 homefs text     Home : ${fs_bar 10,20 /home} 
0 widget_tell statusbar2 batt text     Battery: ${battery}
0 widget_tell statusbar2 gmail text    Gmail: ${execi 12 /home/semperfiguy/bin/checkGmail.sh} 
0 widget_tell statusbar2 pacman text    Pacman: ${execi 120 perl /home/semperfiguy/bin/updatePacman.pl}

.awesomerc

    statusbar statusbar2 
    {
    position = "bottom" 
    width = 0
    height = 0
    textbox cpu1 { text = "... " } 
    textbox cpu2 { text = "... " } 
    textbox mem {  text = "... "  }
    textbox homefs {  text = "... "  }
    textbox batt { text = "... " } 
    textbox gmail { text = "... " } 
    textbox pacman { text = "... " } 
    }

I would like to have horizontal bar graphs for the CPU's and Memory, as well as home and root filesystems.  Can I achieve this with conky? or should I try another method of getting this?

Offline

#2 2008-07-10 18:27:39

miggy
Member
From: MT
Registered: 2007-11-05
Posts: 67

Re: Awesome 2.3 and status bar (conky)

Awesome has it's own progressbar.  You can't just pipe conky's progressbar to a textbox in awesome; that doesn't make sense.  Check out man awesomerc and the awesome wiki for more, but here's something from my setup to get you started:

This gives two progressbars (for mem and swap) one above the other:

conky

0 widget_tell sb_top pb_mem data pb_mem_one ${memperc}
0 widget_tell sb_top pb_mem data pb_mem_two ${swapperc}

awesomerc

statusbar sb_top
{
...
    progressbar pb_mem
    {
      data pb_mem_one 
      {
        fg_off = "#171717"
        fg = "#3299cd"
        bordercolor = "#020202"
      }
      data pb_mem_two 
      {
        fg = "#64ff00"
        fg_off = "#171717"
        bordercolor = "#020202"
      }
      width = 30
      height = .7
    }
...
}

Offline

#3 2008-07-10 20:37:15

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: Awesome 2.3 and status bar (conky)

Thank you! that is exactly what I was looking for.  now I got all the bars except for two, But thats a problem with conky, not with awesome. 

Here is the trouble section of my new .conkyrc

0 widget_tell statusbar2 rootfsbar data rootfsperc ${fs_free_perc /}
0 widget_tell statusbar2 homefsbar data homefsperc ${fs_free_perc /home}

The problem is both of these lines return the wrong value, "7".  df reports very different values of:

^C[semperfiguy: ~]$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1              7210624   3717176   3127168  55% /
none                   1005020         0   1005020   0% /dev/shm
/dev/sda3            144221624  10065864 126829720   8% /home

So is that the proper syntax for conky? or how do I get conky to return the proper percentage of USED space?

http://xs.to/xs.php?h=xs129&d=08284&f=0 … ick331.png

Offline

#4 2008-07-30 14:52:00

hBd
Member
From: Romania - Cluj Napoca
Registered: 2008-06-08
Posts: 241
Website

Re: Awesome 2.3 and status bar (conky)

can u help me a little to get conky + awesome work ?
what kind of conky did u mean on the begining ? the conki-cli ??
can u post your config files pls ? (.awesomerc, .conkyrc, .xinitrc)

Offline

#5 2008-08-28 23:14:18

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: Awesome 2.3 and status bar (conky)

I am using a conky-cli package.  Here is the PKGBUILD I used:

# Contributor: drunken-wallaby <bernhard@jabberoo.net>
# shamelessly ripped from existing PKGBUILD by Karol Cichy 

pkgname=conky-cli
pkgver=1.5.1_pre01052
pkgrel=1
pkgdesc="Conky command line, without X11 dependencies"
arch=(i686 x86_64)
url="http://conky.sourceforge.net/"
license="custom"
replaces=('torsmo')
provides=('conky')
conflicts=('conky')
depends=('glib2')
source=(http://downloads.sourceforge.net/conky/conky-$pkgver.tar.gz http://www.jabberoo.net/conky_patch.diff)
build() {
  cd $startdir/src/conky-$pkgver
  patch -Np0 -i ../conky_patch.diff || return 1
    ./configure --prefix=/usr --sysconfdir=/etc --enable-mpd --disable-double-buffer \
              --disable-x11 --disable-xdamage --disable-own-window --disable-xft --disable-seti \
            --disable-hddtemp --disable-portmon --disable-proc-uptime 
   make || return 1
   make DESTDIR=$startdir/pkg install
   install -D -m644 doc/conkyrc.sample $startdir/pkg/etc/xdg/conky/conkyrc.sample
   install -D -m644 COPYING $startdir/pkg/usr/share/licenses/conky/COPYING

}
md5sums=('44ebb62b650d44ad8da3ac567942f269' 'd14030f9a31729579235949226480a23')

Here is my status bar section of my .awesomerc   

 statusbar mystatusbar
    {
        position = "top"

        taglist mytaglist
        {
            mouse { button = "1" command = "tag_view" }
            mouse { button = "3" command = "tag_toggleview" }
        }
        layoutinfo mylayoutinfo
        {
            mouse { button = "1" command = "tag_setlayout" arg = "+1" }
            mouse { button = "4" command = "tag_setlayout" arg = "+1" }
            mouse { button = "3" command = "tag_setlayout" arg = "-1" }
            mouse { button = "5" command = "tag_setlayout" arg = "-1" }
        }
#        tasklist mytasklist
#        {
#        show_icons = false
#            mouse { button = "4" command = "client_focusnext" }
#            mouse { button = "5" command = "client_focusprev" }
#            mouse { modkey = {"Mod4"} button = "4" command = "client_swapnext" }
#            mouse { modkey = {"Mod4"} button = "5" command = "client_swapprev" }
#        }
    textbox clock { align = "left" text = "clock"}
    textbox gmail { align = "left" text = "// Email " } 
        textbox batt { align = "left" text = "// Battery " } 
    textbox pacman { align = "right" text = "Packages " } 
    textbox mpdstats { align = "right" text = "// MPD " } 
    textbox volume { align = "right" text = "// Volume " } 
    }

Here is my .conkyrc

TEXT
0 widget_tell mystatusbar batt text // Batt: ${battery} 
0 widget_tell mystatusbar gmail text // Email: ${execi 12 /home/semperfiguy/bin/checkGmail.sh} 
0 widget_tell mystatusbar pacman text Pkgs: ${execi 120 perl /home/semperfiguy/bin/updatePacman.pl} 
0 widget_tell mystatusbar mpdstats text // MPD: ${mpd_status} ${mpd_smart} 
0 widget_tell mystatusbar volume text // Vol: ${execi 1 /home/semperfiguy/bin/volumeLevel.sh}

My .xinitrc launches this script.

#!/bin/bash
#AUTOSTARTED APPS AND SETTINGS
eval `cat ~/.fehbg`&
xbindkeys &
# STATUSBAR TEXT
awesome-clock &
#awesome-pacman &
#checkGmail.sh &
#startConky.sh & 
conky | awesome-client &
#Launch awesome
exec awesome

If you want any of the scripts I use in conky, just ask.  Hopefully this can help you out some.

Offline

#6 2010-03-19 09:22:36

Ventil1
Member
Registered: 2010-03-17
Posts: 123

Re: Awesome 2.3 and status bar (conky)

Can someone post the checkGmail.sh script?
thanks

EDIT: Never mind. I found it http://pastoutafait.org/billets/Conky-E … ous-Ubuntu

Last edited by Ventil1 (2010-03-19 09:23:47)

Offline

Board footer

Powered by FluxBB