You are not logged in.

#1 2010-12-19 04:17:15

kismet010
Member
Registered: 2009-09-02
Posts: 137

Tmux, DWM and Conky together

I want to put the conky output (like dwm do) on tmux when I'm not on a X session.
Now i have this in my .xinitrc for dwm

conky -d | while read -r; do xsetroot -name "$REPLY"; done &

The only way a think it's possible is to put this on a init script

conky -d | while read -r; do xsetroot -name "$REPLY" && echo "$REPLY" > conky.out; done &

And set this statusbar on tmux:

set-option -g status-interval 5
set-option -g status-right "#(cat ~/.conky.out)"

This way it works, but I don't think writing/reading from de HDD every 5 second is a good idea...

Any suggestions?

Offline

#2 2010-12-19 05:07:11

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: Tmux, DWM and Conky together

kismet010 wrote:

I want to put the conky output (like dwm do) on tmux when I'm not on a X session.
Now i have this in my .xinitrc for dwm

conky -d | while read -r; do xsetroot -name "$REPLY"; done &

The only way a think it's possible is to put this on a init script

conky -d | while read -r; do xsetroot -name "$REPLY" && echo "$REPLY" > conky.out; done &

And set this statusbar on tmux:

set-option -g status-interval 5
set-option -g status-right "#(cat ~/.conky.out)"

This way it works, but I don't think writing/reading from de HDD every 5 second is a good idea...

Any suggestions?

Have you considered using the "-i" option? Something like this might work in your .tmux.conf:

set-option -g status-right "#(conky -i 1)"

Offline

#3 2010-12-19 05:19:34

kismet010
Member
Registered: 2009-09-02
Posts: 137

Re: Tmux, DWM and Conky together

This supossed to have 2 conky procces running..

Thanks for the reply!

Offline

Board footer

Powered by FluxBB