Bar / Conky Configs. - Desktop Customization & Workflow

Users browsing this thread: 2 Guest(s)
lidstah
Members
Well, it's not really a bar nor real conkyporn, but if people here use wmii, notion and even stumpwm modeline, you'll notice that you can't really use conky as is with their statusbar system.

For example, you can use conky cli output in wmii's bar, but only if you run conky with the -i flag (conky -i 1 for example), which kind of disable CPU and network statistics (else, wmii will hang on start, for example. Notion will just display nothing iirc, and stump will scream some lispy insults in your face).

So I ended up using a simple solution: piping conky output in a textfile, then echoing this text file in wmii's/notion/stump statusbar/modeline:

Code:
#!/bin/bash

conky -c yourconkyconffile | while read -r; do echo $REPLY > /mnt/ramdisk/conkytext; done &

while conky is running, it reads its standard output, then echoes it in a file. Simple, and, for example, in wmii's config, just echo -n $(cat /mnt/ramdisk/conkytext) as your status line feed. And, yay, working cpu and network statistics in your statusbar. It also works in tmux statusbar! :)

I use a little ramdisk for this, as I'm not really fond of waking up my harddisks every second just to write some small textfile. Also, SSDs might not like this kind of constant overwriting of a file

Hoping it'll be usefull to some people here, just wanted to share this little tip.


Messages In This Thread
Bar / Conky Configs. - by jmbi - 07-08-2012, 10:48 PM
RE: Bar / Conky Configs. - by yrmt - 08-08-2012, 01:02 PM
RE: Bar / Conky Configs. - by Jayro - 08-08-2012, 02:00 PM
RE: Bar / Conky Configs. - by DotDev - 17-08-2013, 07:28 PM
RE: Bar / Conky Configs. - by zygotb - 18-08-2013, 05:36 AM
RE: Bar / Conky Configs. - by funriz - 19-01-2014, 06:03 AM
RE: Bar / Conky Configs. - by rudylorren - 22-02-2014, 02:53 AM
RE: Bar / Conky Configs. - by lidstah - 21-01-2014, 11:43 AM
RE: Bar / Conky Configs. - by earsplit - 21-01-2014, 09:41 PM
RE: Bar / Conky Configs. - by berk - 23-01-2014, 05:57 PM
RE: Bar / Conky Configs. - by cyberpunkz - 12-02-2014, 03:03 AM
RE: Bar / Conky Configs. - by venam - 12-02-2014, 03:26 AM
RE: Bar / Conky Configs. - by cyberpunkz - 12-02-2014, 03:31 AM
RE: Bar / Conky Configs. - by yrmt - 12-02-2014, 08:00 AM
RE: Bar / Conky Configs. - by cyberpunkz - 12-02-2014, 11:54 AM
RE: Bar / Conky Configs. - by cyberpunkz - 12-02-2014, 08:23 PM
RE: Bar / Conky Configs. - by cyberpunkz - 13-02-2014, 02:04 AM
RE: Bar / Conky Configs. - by yrmt - 13-02-2014, 04:17 AM
RE: Bar / Conky Configs. - by cyberpunkz - 13-02-2014, 09:15 AM
RE: Bar / Conky Configs. - by yrmt - 13-02-2014, 09:37 AM
RE: Bar / Conky Configs. - by funriz - 23-02-2014, 02:55 AM
RE: Bar / Conky Configs. - by kirby - 11-07-2014, 01:53 PM
RE: Bar / Conky Configs. - by dcli - 11-07-2014, 02:40 PM
RE: Bar / Conky Configs. - by kirby - 11-07-2014, 03:45 PM
RE: Bar / Conky Configs. - by pvtmert - 15-07-2014, 05:12 PM
RE: Bar / Conky Configs. - by kirby - 16-07-2014, 11:45 AM
RE: Bar / Conky Configs. - by pvtmert - 20-07-2014, 03:37 PM
RE: Bar / Conky Configs. - by neeasade - 05-04-2015, 06:13 PM
RE: Bar / Conky Configs. - by seninha - 05-05-2020, 08:42 PM
RE: Bar / Conky Configs. - by neeasade - 05-05-2020, 08:50 PM
RE: Bar / Conky Configs. - by z3bra - 07-05-2020, 08:17 AM
RE: Bar / Conky Configs. - by Wildefyr - 07-05-2020, 10:42 AM
RE: Bar / Conky Configs. - by neeasade - 07-05-2020, 11:53 AM
RE: Bar / Conky Configs. - by sth - 10-05-2020, 05:46 PM
RE: Bar / Conky Configs. - by yakumo.izuru - 22-04-2022, 09:51 AM