SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-08-01 18:17:55

FiniteStateMachine
Part of the Machine
From: Ontario, Canada
Registered: 2009-06-29
Posts: 1,489

Help: conky, dzen2, scrotwm

I'm trying to pipe my conky output through dzen2 and ontop of the scrotwm bar.

It works, but I'm not sure how to position it properly?

conky -d -c "$HOME/.conkyrc" | dzen2 -fg "#ffffff" -bg "#001930" -ta right -w 400 -h 12 -x 900 -y 1 -fn -Misc-Fixed-Medium-R-Semicondensed-*-12-110-75-75-C-60-ISO10646-1

This puts the output on the bar like it should, but its cutoff and to the right. I'd like it on left, next to the clock if thats possible.

Any ideas what i need to change?


just call me...
~FSM~

Offline

Be excellent to each other!

#2 2012-08-01 19:09:45

Unia
#! Die Hard
From: The Netherlands
Registered: 2010-07-17
Posts: 3,113

Re: Help: conky, dzen2, scrotwm

FiniteStateMachine wrote:

IAny ideas what i need to change?

Nope, I just wanna say welcome back big_smile show us a scrot of what you have currently, I'm curious what you've been spending your absence on wink


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
      Github || Deviantart

Offline

#3 2012-08-01 19:21:27

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 743

Re: Help: conky, dzen2, scrotwm

Position it just like you're doing with the x,y and h,w. Make adjustments to those, and maybe the font size until it fits the way you want.

If you don't require colored output, you can also use conky in the statusbar directly by editing the .spectrwm.conf:

bar_action        = conky
bar_delay        = 1

More details in this thread; post your configs when you're done:

http://crunchbanglinux.org/forums/topic … m/page/13/

Last edited by PackRat (2012-08-01 19:21:38)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#4 2012-08-01 20:01:27

FiniteStateMachine
Part of the Machine
From: Ontario, Canada
Registered: 2009-06-29
Posts: 1,489

Re: Help: conky, dzen2, scrotwm

Ah! I was being silly and trying to change the "w" instead of "x" .

Another problem you might be able to solve: it doesn't seem to start on login.

Thats pretty much the only reason I'm using dzen2 instead of just action:conky.

If you've got a setup working with just conky, could you post the files?


just call me...
~FSM~

Offline

#5 2012-08-01 20:12:40

pidsley
#! Die Hard
Registered: 2012-05-23
Posts: 1,349

Re: Help: conky, dzen2, scrotwm

FiniteStateMachine wrote:

Ah! I was being silly and trying to change the "w" instead of "x" .

Another problem you might be able to solve: it doesn't seem to start on login.

Thats pretty much the only reason I'm using dzen2 instead of just action:conky.

If you've got a setup working with just conky, could you post the files?

In .spectrwm.conf:

bar_action  = /home/pidsley/scrotwm/scrotbar.sh

In scrotbar.sh:

#!/bin/bash

conky -c "/home/pidsley/scrotwm/conkyrc-spectrwm"

and in conkyrc-spectrwm (a simple conky, configure to your liking):

out_to_x no
background no
out_to_console yes
update_interval 1
total_run_times 0
temperature_unit fahrenheit

TEXT
CPU: ${cpu cpu0}% | RAM: $memperc% ($mem) | root: ${fs_used /} | home: ${fs_used /home} | ${time %l:%M %P %A %d %b}   

There's more in this post: http://crunchbanglinux.org/forums/post/246636/#p246636

Last edited by pidsley (2012-08-01 20:21:59)

Offline

#6 2012-08-01 20:27:41

FiniteStateMachine
Part of the Machine
From: Ontario, Canada
Registered: 2009-06-29
Posts: 1,489

Re: Help: conky, dzen2, scrotwm

pidsley wrote:
FiniteStateMachine wrote:

Ah! I was being silly and trying to change the "w" instead of "x" .

Another problem you might be able to solve: it doesn't seem to start on login.

Thats pretty much the only reason I'm using dzen2 instead of just action:conky.

If you've got a setup working with just conky, could you post the files?

In .spectrwm.conf:

bar_action  = /home/pidsley/scrotwm/scrotbar.sh

In scrotbar.sh:

#!/bin/bash

conky -c "/home/pidsley/scrotwm/conkyrc-spectrwm"

and in conkyrc-spectrwm (a simple conky, configure to your liking):

out_to_x no
background no
out_to_console yes
update_interval 1
total_run_times 0
temperature_unit fahrenheit

TEXT
CPU: ${cpu cpu0}% | RAM: $memperc% ($mem) | root: ${fs_used /} | home: ${fs_used /home} | ${time %l:%M %P %A %d %b}   

There's more in this post: http://crunchbanglinux.org/forums/post/246636/#p246636


Thanks for the help pidsley, but I got it figured out. Just had to make a few small changes. Everything seems to be working now.


just call me...
~FSM~

Offline

#7 2012-08-01 20:33:26

pidsley
#! Die Hard
Registered: 2012-05-23
Posts: 1,349

Re: Help: conky, dzen2, scrotwm

No problem. I was just about to post a scrot (scrot or it didn't happen smile ) but no need now. Personally, I prefer ratpoison, but I used spectrwm for many months before I decided I liked rp better.

If you have problems with the status bar blinking, you may find you need dzen2 after all...

Last edited by pidsley (2012-08-01 20:34:24)

Offline

#8 2012-08-01 21:11:36

FiniteStateMachine
Part of the Machine
From: Ontario, Canada
Registered: 2009-06-29
Posts: 1,489

Re: Help: conky, dzen2, scrotwm

Unia wrote:
FiniteStateMachine wrote:

IAny ideas what i need to change?

Nope, I just wanna say welcome back big_smile show us a scrot of what you have currently, I'm curious what you've been spending your absence on wink

Hey! thanks!

I've been spending my time on OSX actually, but I've saved enough money to buy a machine that can actually run linux quite well, and so I'm now happily setting that up (a Lenovo X230 if your curious).

A scrot will be on it's way to the August thread shortly smile

Good to see you again!


just call me...
~FSM~

Offline

#9 2012-08-02 17:09:22

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 743

Re: Help: conky, dzen2, scrotwm

FiniteStateMachine wrote:

If you've got a setup working with just conky, could you post the files?

Sure:

from my .spectrwm.conf:

bar_action        = conky
bar_delay        = 1
bar_justify        = left
bar_format        = +N:+I+2<+S+2<<+T>+24<+A

.conkyrc

out_to_x no
background no
out_to_console yes
update_interval 1
total_run_times 0
use_spacer none
# override_utf8_locale yes

TEXT
Uptime: ${uptime_short}  |  Sdc Temp: ${hddtemp /dev/sdc} °C  |  CPU Temp: ${hwmon 1 temp 1} °C  |  CPU: ${cpu cpu1}%  |  Mem: ${memperc}%  |  Eth0: Down: ${downspeedf eth0}  Up: ${upspeedf eth0}  |  Updates: ${execi 600 /home/doug/bin/updates.sh}  |  ${time %e %b %Y}  ${time %k:%M}

I compiled spectrwm from git so I have the bar_justify and bar_format options - only the bar_action and bar_delay options are needed for conky in the status bar.

Last edited by PackRat (2012-08-02 17:15:24)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo