Originally Posted by
Petro Dawg
A couple of things...
Can not help with Ubuntu problems, you're talking Unity 2d and Unity right? Sorry, I hope some Ubuntu users come along and help you with that.
However 'maybe' some of this will help a little.
Since you use:
Code:
use_xft yes
xftalpha 0.9
this might be better:
Code:
xftfont Ubuntu:bold:size=11
This next change will eliminate some problems as well, for others, not all but enough, it did for me with the ° symbol for the temp:
Code:
override_utf8_locale yes
Here's something else that might make your conky a little more adaptable. I have 8 USB ports but only 3 USB devices I can plug in. A happy coincidence. Now since you did say:
However, I couldn't get an accurate bar graph to work for these drives anymore (since I no longer specify code for each individual preassigned drive name as I did before). Its not a big deal, but it would be nice if I had that option.
Your lines:
Code:
${if_existing /dev/sdb1}
${color6}${exec df -h | grep 'sdb1' | cut -c46-55}${color}:${color8}${alignr}${exec df -H | grep 'sdb1' | cut -c23-27}${color} / ${color8}${exec df -h | grep 'sdb1' | cut -c17-20}${else}${endif}${if_existing /dev/sdc1}
${color6}${exec df -h | grep 'sdc1' | cut -c46-55}${color}:${color8}${alignr}${exec df -H | grep 'sdc1' | cut -c23-27}${color} / ${color8}${exec df -h | grep 'sdc1' | cut -c17-20}${else}${endif}${if_existing /dev/sdd1}
${color6}${exec df -h | grep 'sdd1' | cut -c46-55}${color}:${color8}${alignr}${exec df -H | grep 'sdd1' | cut -c23-27}${color} / ${color8}${exec df -h | grep 'sdd1' | cut -c17-20}${else}${endif}${color}
Did nothing here for me, I see:
when I plug things in.
Looking at: df -H I see mount points...
Code:
01 Sep 12 | 17:26:33 ~
$ df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 2.0G 63M 1.9G 4% /media/vsido
/dev/sdc1 247G 51G 184G 22% /media/disk
/dev/sdd1 16G 369M 15G 3% /media/16
01 Sep 12 | 17:31:29 ~
$
I trimmed some fat ... but notice those last three, they have a mount points on the right.
So I thought, why not use
Code:
${if_mounted mount_point}
no 'exec', no grep, no cuts. And you get your bars.
Originally Posted by
Luke-StarWars
Use the mount point Dawg
I did:
Code:
${color7}Root${color}: ${alignr}${color8}${fs_used /}${color} / ${color8}${fs_size /}
${color2}${fs_bar 10 /}${color}
${color7}Home${color}: ${alignr}${color8}${fs_used /home}${color} / ${color8}${fs_size /home}
${color2}${fs_bar 10 /home}${color}${if_mounted /media/disk}
${color6}250${color}:${alignr}${color8}${fs_used /media/disk}${color} / ${color8}${fs_size /media/disk}
${color2}${fs_bar 10 /media/disk}${color}${else}${endif}${if_mounted /media/16}
${color6}16${color}:${alignr}${color8}${fs_used /media/16}${color} / ${color8}${fs_size /media/16}
${color2}${fs_bar 10 /media/16}${color}${else}${endif}${if_mounted /media/vsido}
${color6}VO${color}:${alignr}${color8}${fs_used /media/vsido}${color} / ${color8}${fs_size /media/vsido}
${color2}${fs_bar 10 /media/vsido}${color}${else}${endif}
# TEXT code block 3: END
BTW, I don't have 'wlan' and no webdings font here: I like it, you have a nice little conky going there.
Bookmarks