SEARCH

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

You are not logged in.

#6676 2013-11-21 00:14:48

liquibyte
#! Member
From: N42°34'30.2664",W71°59'
Registered: 2013-11-04
Posts: 67
Website

Re: Conky v1.9 Thread

Told ya Sector11 was the man.  I'm not really good with conky's syntax because it seems counterintuitive to the way I work with code.  I've managed to configure a conky years ago that I used for quite some time but never really did anything else with it since I got it configured the way I wanted for the most part.  See the code if you want to see how long it's been.  I've been really excited about conky again with the lua/cairo bindings with one caveat, I've discovered what I believe to be a major bug in it so I don't think it's fully ready for prime time.  Filed a bug report as well but given how long I've seen some of them have been open, I don't have much hope for it in the short term.  I'm going to start investigating the root drawing code from conky, root-tail, x and fluxbox and see if I can come up with a solution for the future.

122 px from top
#263,563,863,1163,1463 px from left respectively

# Create own window instead of using desktop (required in nautilus)
own_window true
own_window_hints undecorated,below,sticky,skip_pager,skip_taskbar
# normal, desktop, override
own_window_type override

# Use pseudo transparency with own_window?
own_window_transparent true

# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour black

background false

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer true

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right

# Use Xft?
use_xft true

# Update interval in seconds
update_interval 1.0

# Minimum size of text area
#minimum_size 200 5
maximum_width 250

# Draw shades?
draw_shades false

# Text stuff
# amplifies text if yes
draw_outline false
draw_borders false
draw_graph_borders true
# set to yes if you want all text to be in uppercase
uppercase false

# Stippled borders?
stippled_borders 1

# border margins
#border_margin 10

# border width
border_width 1

# Default colors and also border colors, grey90 == #e5e5e5
default_color 808080
default_shade_color gray
default_outline_color grey

# Set conky on the bottom of all other applications
own_window_hints below

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_X 5
gap_y 525

# stuff after 'TEXT' will be formatted on screen
override_utf8_locale true
font Ubuntu-B:size=9:bold
xftalpha 0.5

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Subtract file system buffers from used memory?
no_buffers true

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 1

TEXT
${color 888888}Kernel: ${color CCCCCC}${alignr}$kernel
${color 888888}Uptime: ${color CCCCCC}${alignr}$uptime
${color 888888}Frequency: ${color CCCCCC}${alignr}$freq_g GHz ${color 888888}
${cpugraph cpu0 15,250 11ad11 fd7171}
${voffset -21} $alignc${color fd7171}CORE 0: ${color fFA449}${cpubar cpu1 9,77} ${color cbcb05} ${cpu coretemp.0 temp 1} ${color 79cd4e}°C @ ${color 11ad11}${cpu cpu1}%${color}
${cpugraph cpu1 15,250 11ad11 fd7171} 
${voffset -21} $alignc${color fd7171}CORE 1: ${color fFA449}${cpubar cpu2 8,77} ${color cbcb05} ${cpu coretemp.1 temp 1} ${color 79cd4e}°C @ ${color 11ad11}${cpu cpu2}%${color}
${cpugraph cpu2 15,250 11ad11 fd7171} 
${voffset -21} $alignc${color fd7171}CORE 2: ${color fFA449}${cpubar cpu3 8,77} ${color cbcb05} ${cpu coretemp.2 temp 1} ${color 79cd4e}°C @ ${color 11ad11}${cpu cpu3}%${color}
${cpugraph cpu3 15,250 11ad11 fd7171} 
${voffset -21} $alignc${color fd7171}CORE 3: ${color fFA449}${cpubar cpu4 8,77} ${color cbcb05} ${cpu coretemp.3 temp 1} ${color 79cd4e}°C @ ${color 11ad11}${cpu cpu4}%${color}

${color 888888}RAM:${color fd7171}$alignc${offset 6}$mem${color cbcb05} | ${color 11ad11}$memmax$alignr$memperc%${color}
${membar 5,250}

sda1 ${color fd7171}$alignc${offset 23}${fs_used /boot} ${color cbcb05} | ${color 11ad11} ${fs_size /boot} $alignr ${fs_free_perc /boot}% free${color}
${fs_bar 3,250 /boot} 
sda2 ${color fd7171}$alignc${offset 23}${fs_used /} ${color cbcb05} | ${color 11ad11} ${fs_size /} $alignr ${fs_free_perc /}% free${color}
${fs_bar 3,250 /}
sda3 ${color fd7171}$alignc${offset 23}${fs_used /home} ${color cbcb05} | ${color 11ad11} ${fs_size /home} $alignr ${fs_free_perc /home}% free${color}
${fs_bar 3,250 /home}

${offset -1}${color fd7171}${top cpu 1}%$alignc${offset 30}${top name 1}$alignr${top pid 1}
${offset -1}${color ffa449}${top cpu 2}%$alignc${offset 30}${top name 2}$alignr${top pid 2}
${offset -1}${color cbcb05}${top cpu 3}%$alignc${offset 30}${top name 3}$alignr${top pid 3}
${offset -1}${color 79cd4e}${top cpu 4}%$alignc${offset 30}${top name 4}$alignr${top pid 4}
${offset -1}${color 11ad11}${top cpu 5}%$alignc${offset 30}${top name 5}$alignr${top pid 5}

${color 888888}Incoming:$alignc${color 11ad11}${offset 15}${downspeed enp3s0}$alignr${color 888888}KB/s${color}
${color 888888}${downspeedgraph enp3s0 15,250 11ad11 fd7171}${color}
${color 11ad11}${voffset -21}$alignc${offset 1}${color}
#${totaldown enp3s0}

${color 888888}Outgoing:$alignc${color fd7171}${offset 15}${upspeed enp3s0}$alignr${color 888888}KB/s${color}
${color 888888}${upspeedgraph enp3s0 15,250 11ad11 fd7171}${color}
${color fd7171}${voffset -21}$alignc${offset 1}${color}
#${totalup enp3s0}

Drive A read$alignr${diskio_read /dev/sda}
${diskiograph_read /dev/sda 15,250 11ad11 fd7171}
Drive A write$alignr${diskio_write /dev/sda}
${diskiograph_write /dev/sda 15,250 11ad11 fd7171}
Drive B read$alignr${diskio_read /dev/sdb}
${diskiograph_read /dev/sdb 15,250 11ad11 fd7171}
Drive B write$alignr${diskio_write /dev/sdb}
${diskiograph_write /dev/sdb 15,250 11ad11 fd7171}

Offline

Help fund CrunchBang, donate to the project!

#6677 2013-11-21 00:22:51

liquibyte
#! Member
From: N42°34'30.2664",W71°59'
Registered: 2013-11-04
Posts: 67
Website

Re: Conky v1.9 Thread

easysid wrote:

Any suggestions?

I wanted to chime in on this one one more time as well.  I've been trying to convert the original tamsyn font to svg and have hit a roadblock on bitmap to ttf to svg.  I can convert things nicely from bitmap to ttf and use the font as normal but when I convert the resulting ttf to a webfont svg, the paths aren't converted so I think that a hunt for a different true ttf terminal font may be in order.  The resulting svg must include the glyph paths or the font will never render in Inkscape because there's nothing to draw.  I'm assuming that the converted ttf just embeds the bitmap and doesn't add the hinting stuff that makes ttf and otf what they are.  I'm certainly not going to take apart a binary bitmapped font and try my hand at creating a ttf from scratch.  There's a reason the folks that do this make what they do.  It's hard work that takes tons of research and lots of skill.

Offline

#6678 2013-11-21 01:15:47

sjv047
Member
Registered: 2013-11-20
Posts: 23

Re: Conky v1.9 Thread

Sector11,

Thank you very much!

I feel pretty stupid now :8 , especially after having poured over that string so many times and never saw that problem (tunnel vision anyone?!). I greatly appreciate the help!

I've made the changes/additions to the missing measures, and although your ${else} statements look much cleaner, I need to get more familiar with it before I tweek my conky to it... It's a learning process, and one that I found interesting enough to put back on my machine.

I am interested in knowing why your systems didn't like my conky setup with MAC, power, swap & Temp while mine seems to have no problem with it.  System maybe? I am using an ASUS eee pc 1000HE, Linux Mint 15 Xfce, Kernel 3.8.0-25-generic.

Thanks again!!

Last edited by sjv047 (2013-11-21 01:16:58)

Offline

#6679 2013-11-21 01:33:21

sjv047
Member
Registered: 2013-11-20
Posts: 23

Re: Conky v1.9 Thread

Sector11,

OK... did some basic digging into the ${else} statement... I just want to make sure I have an understanding of them.

I would still use the "if_match" but could then essentially delete the "endif" after each condition and add the ${else} before the the next "if-match". It seems to do the same thing, just cuts back on the wording in the file.

are there any speed, bloat, etc. benefits to changing this, or is it just a matter of easier to read and/or code?

Offline

#6680 2013-11-21 01:40:47

sjv047
Member
Registered: 2013-11-20
Posts: 23

Re: Conky v1.9 Thread

Totally off-the-wall question here...

Is it possible for conky to display what OS is installed in the computer? Meaning, it can read (from somewhere) what version & type of linux you have installed?

Not planning on adding that to you setup, but was just wondering if that was even possible.

Offline

#6681 2013-11-21 01:58:15

liquibyte
#! Member
From: N42°34'30.2664",W71°59'
Registered: 2013-11-04
Posts: 67
Website

Re: Conky v1.9 Thread

You can, if you have multiple statements, use only one if_match and else for the remaining conditions and thereby eliminate all but one endif to close the loop.

I'll give you a kind of watered down example

if_match condition dostuff else othercondition dootherstuff else thirdcondition dothirdconditionstuff endif

I don't know if this would actually work in a conky config file or not as I haven't tried it.  Having said that, I have looked at the conky code itself and can verify that is how they like to code.

Another example in lua

if something == true then dosomething elseif somethingelse == true then dosomethingdifferent end

Almost all if statements, for loops etc. look extremely similar in all languages.  The one I've always hated is bash scripting if fi.  What's wrong with using end or quit or something readable?

As far as a speed benefit, it's all being parsed in a third party way so smaller is always better.

On the question of why our systems didn't like your code.  Every persons setup is different than just about every other person even if they are using the same os, i.e. hardware etc.  You're calls to hdtemp won't work for me because I either don't have temp chips on board or I don't have sensors installed or haven't run sensors-detect.  That's why conky is so popular, they try and account for as many variables as possible and most of the time it works.  I run archlinux so my setup, even given the exact same hardware, would be entirely different from yours because of tastes.  I run a minimal fluxbox environment and prefer programs that are as small as I can get without having to fall back to the command line if at all possible.

Display system info with uname, see man uname for arguments.

uname -a for me gets: Linux h2o8bit 3.12.0-1-ARCH #1 SMP PREEMPT Wed Nov 6 09:06:27 CET 2013 x86_64 GNU/Linux

Last edited by liquibyte (2013-11-21 01:59:11)

Offline

#6682 2013-11-21 02:42:16

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ liquibyte

Hope they do something with the bug report.

Interesting little conky ... from the code, I'd say it wasn't THAT long ago ... but you did get caught up in a little "oops!" that hits a lot of people.  Especially people with an Intel CPU.

Intel reports "cores" and a quad core is: Core 0, Core 1, Core2 & Core3
AMD reports CPU's and an AMD x4 is CPU1, CPU2, CPU3 & CPU4

Conky uses ${cpu cpux}:

cpu1 = Intel Core0 | AMD CPU1
cpu2 = Intel Core1 | AMD CPU2
cpu3 = Intel Core2 | AMD CPU3
cpu4 = Intel Core3 | AMD CPU4

Now conky also uses ${cpu} or $[cpu cpu0] as an "average of the 4 cores/cpus"

Your first bit of code for cpu stuff:

${cpugraph cpu0 15,250 11ad11 fd7171}
${voffset -21} $alignc${color fd7171}CORE 0: ${color fFA449}${cpubar cpu1 9,77} ${color cbcb05} ${cpu coretemp.0 temp 1} ${color 79cd4e}°C @ ${color 11ad11}${cpu cpu1}%${color}

You start with a graph for 'cpu0', the average, but put a cpu1 bar and coretemp0 and a cpu1 % in it.

${cpugraph cpu1 15,250 11ad11 fd7171} uses Core2 / CPU2 stuff
${cpugraph cpu2 15,250 11ad11 fd7171} uses Core3 / CPU3 stuff
${cpugraph cpu3 15,250 11ad11 fd7171} uses Core3 / CPU4 stuff

So you aren't showing a cpugraph for your 4th core and mistakenly reporting the others.

I have an AMD x3 so it would look like this:

${cpugraph cpu1 15,250 11ad11 fd7171}
${voffset -21}${alignc}${color fd7171}CPU 1: ${color fFA449}${cpubar cpu1 9,77} ${color cbcb05} ${platform f71882fg.2560 temp 1} ${color 79cd4e}°C @ ${color 11ad11}${cpu cpu1} %${color}
${cpugraph cpu2 15,250 11ad11 fd7171}
${voffset -21}${alignc}${color fd7171}CPU 2: ${color fFA449}${cpubar cpu2 8,77} ${color cbcb05} ${platform f71882fg.2560 temp 1} ${color 79cd4e}°C @ ${color 11ad11}${cpu cpu2} %${color}
${cpugraph cpu3 15,250 11ad11 fd7171}
${voffset -21}${alignc}${color fd7171}CPU 3: ${color fFA449}${cpubar cpu3 8,77} ${color cbcb05} ${platform f71882fg.2560 temp 1} ${color 79cd4e}°C @ ${color 11ad11}${cpu cpu3} %${color}
${cpugraph cpu0 15,250 11ad11 fd7171}
${voffset -21}${alignc}${color fd7171}CPU 0: ${color fFA449}${cpubar cpu0 8,77} ${color cbcb05} ${platform f71882fg.2560 temp 1} ${color 79cd4e}°C @ ${color 11ad11}${cpu cpu0} %${color}

The temps in them all is a bit redundant as AMD reports only one temp for the CPU, so I just repeated it for the sake of continuity.

And by using ${alignc} it means the stuff in the center of the "cpugraphs" shifts one character space when the percentage dances between 9 and 10 % --- like this:
2013_11_20_23_03_23_260x749_Sector11.jpg 2013_11_20_23_04_03_260x749_Sector11.jpg
See the difference in the two screenshots ... this is where I would use ${goto xx} to place those commands by 'hardcoding' maximum responses then using the conky code below with the real codes to line them up:

${alignc}CPU 1: ${cpubar cpu1 9,77}  100 °C @ 100 %
${goto aa}CPU 1: ${cpubar cpu1 9,77}${goto bb}${platform f71882fg.2560 temp 1} °C${goto cc}@ ${cpu cpu1} %

The only thing that will "shift" will be CPU temp if it goes higher than 100°C, you won't need to worry about it if it does, but some prefer °F and 100°F is not uncommon. and then the CPU % sign will move when moving between 9 and 10 or 100 %.

But the little trick posted earlier prefixed with '00' or '0' can be prefixed with space instead - the % sign will remain steady!

I put a lua semi-transparent white background on it to show the problems with using ${voffset -xx}. While it move the displayed output up from where it is used that line of "code" still takes up screen space, not a BIG problem ... unless you use "own_window_type desktop" --> now you loose the ability to right click on the conky to get to your menu.:
2013_11_20_23_23_19_1920x1080_Sector11.jpg <--> And you have just made that unusable space bigger.

All in all - a nice little conky though!


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#6683 2013-11-21 03:03:57

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ sjv047 & liquibyte
liquibyte wrote:

You can, if you have multiple statements, use only one if_match and else for the remaining conditions and thereby eliminate all but one endif to close the loop.

Not entirely true ... every ${if_xxx} needs an ${endif} so....

${if_match ${xyz}=something}do this${else}do this instead${endif}

that has one and only one ${endif} because it's a "this" OR "that" comparison.

But this requires 4 ${endif} statement:

${if_match ${xyz}=10}do 10${else}\
${if_match ${xyz}=20}do 20${else}\
${if_match ${xyz}=30}do 30${else}\
${if_match ${xyz}=40}do 40${else}\
do anything else${endif}${endif}${endif}${endif}

Is it easier to use ${else} or ${endif} and restart comparisons - I guess it's the same --- but ${else} gives it a better flow 'code wise' I think.

Linux 101 = 101 ways to do A

Last edited by Sector11 (2013-11-21 03:05:13)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#6684 2013-11-21 03:24:38

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

sjv047 wrote:

Thanks again!!

You're welcome

The only thing your conky didn't like in my system is the Battery stuff, conky chokes as I am on a desktop.  the wireless stuff as well as I have eth0 here .. but conky doesn't choke on that - just doesn't display it.

As for your "tunnel vision" - been there, done that - remember the headaches.  Maybe you'll help someone with the same problem at some point in the future.  I hated ${if_something}, ${else} and ${endif} when they first appeared ... had to ask 1001 questions to get them working.  big_smile

Same as LUA!  I was a regular PITA at times ... and still am in some ways.

My system:

21 Nov 13 | 00:17:21 ~
    $ s11
System:    Host: sector11 Kernel: 3.9-1-amd64 x86_64 (64 bit) Desktop: Openbox 3.5.2 Distro: Debian SID jessie/sid
Machine:   Mobo: ECS model: MCP61M-M3 version: 7.0 Bios: American Megatrends version: 080015 date: 11/03/2010
CPU:       Triple core AMD Athlon II X3 450 (-MCP-) cache: 1536 KB flags: (lm nx sse sse2 sse3 sse4a svm)
           Clock Speeds: 1: 3214.328 MHz 2: 3214.328 MHz 3: 3214.328 MHz
Graphics:  Card: NVIDIA GT218 [GeForce 210] X.Org: 1.14.3 driver: nvidia Resolution: 1920x1080@60.0hz
           GLX Renderer: N/A GLX Version: N/A
Audio:     Card-1: NVIDIA MCP61 High Definition Audio driver: snd_hda_intel Sound: ALSA ver: k3.9-1-amd64
           Card-2: NVIDIA High Definition Audio Controller driver: snd_hda_intel
Network:   Card: NVIDIA MCP61 Ethernet driver: forcedeth
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 250.1GB (38.8% used) 1: id: /dev/sda model: WDC_WD2500AAJS size: 250.1GB
Partition: ID: / size: 15G used: 4.8G (34%) fs: ext4 ID: /home size: 15G used: 4.6G (33%) fs: ext4
           ID: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap
Sensors:   System Temperatures: cpu: 39.0C mobo: 34.0C gpu: 41C
           Fan Speeds (in rpm): cpu: 2046 fan-2: 0 fan-3: 0
Info:      Processes: 164 Uptime: 14:21 Memory: 848.6/5987.7MB Client: Shell (bash) inxi: 1.9.16

21 Nov 13 | 00:17:25 ~
    $


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#6685 2013-11-21 03:46:44

liquibyte
#! Member
From: N42°34'30.2664",W71°59'
Registered: 2013-11-04
Posts: 67
Website

Re: Conky v1.9 Thread

Sector11 wrote:

Interesting little conky ... from the code, I'd say it wasn't THAT long ago ... but you did get caught up in a little "oops!" that hits a lot of people.  Especially people with an Intel CPU.

I started working on that back in the beginning of 2008 and finally published it at the end over on the arch forums.  Almost six years now.

Sector11 wrote:

Not entirely true ... every ${if_xxx} needs an ${endif} so....

${if_match ${xyz}=something}do this${else}do this instead${endif}

that has one and only one ${endif} because it's a "this" OR "that" comparison.

But this requires 4 ${endif} statement:

${if_match ${xyz}=10}do 10${else}\
${if_match ${xyz}=20}do 20${else}\
${if_match ${xyz}=30}do 30${else}\
${if_match ${xyz}=40}do 40${else}\
do anything else${endif}${endif}${endif}${endif}

Is it easier to use ${else} or ${endif} and restart comparisons - I guess it's the same --- but ${else} gives it a better flow 'code wise' I think.

Linux 101 = 101 ways to do A

I was thinking more like the "case break" types in c or "if then elseif then end" in lua.  I'll end up playing with it eventually.  I did say I hadn't tried it so I wasn't sure that way would work.  I've been wrestling with tons of bugs lately.  I discovered that bug in conky and have been trying to trace it and while tracing it discovered and verified a bug in terminator.  I swear coding is either getting harder or coders are just getting lazier.

Personally I'm waiting on v2 so it can be better scripted.  Hopfully some of the more serious bugs I've read about have been worked out by then.  I'd like to see a purely scripted out to desktop without predifined widgets version of conky myself.  I've gotten the idea that cool things could be had with python, lua, and bash directly on the desktop and leave the widgets to the programs that already have them.  The major issue I see is the push to get rid of X lately.  To be honest though, it's all the same palette just using different brushes.

Not to mention, easysid's now got me thinking about fonts again.  I always wanted to learn how to do them and have lately been getting really good at Inkscape again and from what I've seen with the Fontforge interface I figure the drawing parts can't be that hard.  The main issue there is the whole picture of a font and not just the display parts.  Still could be lots of fun.

My avatar is an svg that's been scaled and exported btw.  I did it maybe seven or eight years ago after a frustrating bout with pov.  I only mention that because I may just end up doing an icon font for use in conky's so it kind of makes it still on topic.  ]:D

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="1000" height="1000" viewBox="0 0 1000 1000" id="svg2">
  <defs id="defs4">
    <linearGradient id="linearGradient3301">
      <stop id="stop3303" style="stop-color:#ffffff;stop-opacity:1" offset="0"/>
      <stop id="stop3305" style="stop-color:#ffffff;stop-opacity:0" offset="1"/>
    </linearGradient>
    <linearGradient id="linearGradient3293">
      <stop id="stop3295" style="stop-color:#ffffff;stop-opacity:1" offset="0"/>
      <stop id="stop3309" style="stop-color:#ffffff;stop-opacity:0" offset="1"/>
    </linearGradient>
    <linearGradient id="linearGradient4984">
      <stop id="stop4986" style="stop-color:#0000f5;stop-opacity:1" offset="0"/>
      <stop id="stop4988" style="stop-color:#ffffff;stop-opacity:1" offset="1"/>
    </linearGradient>
    <linearGradient id="linearGradient4976">
      <stop id="stop4978" style="stop-color:#ffffff;stop-opacity:1" offset="0"/>
      <stop id="stop4980" style="stop-color:#707575;stop-opacity:1" offset="1"/>
    </linearGradient>
    <linearGradient id="linearGradient4430">
      <stop id="stop4432" style="stop-color:#b4b4b4;stop-opacity:1" offset="0"/>
      <stop id="stop4434" style="stop-color:#dadada;stop-opacity:0" offset="1"/>
    </linearGradient>
    <linearGradient id="linearGradient4424">
      <stop id="stop4426" style="stop-color:#dadada;stop-opacity:0.3137255" offset="0"/>
      <stop id="stop4428" style="stop-color:#000000;stop-opacity:0.3137255" offset="1"/>
    </linearGradient>
    <linearGradient id="linearGradient4410">
      <stop id="stop4412" style="stop-color:#b4b4b4;stop-opacity:1" offset="0"/>
      <stop id="stop4414" style="stop-color:#b4b4b4;stop-opacity:0" offset="1"/>
    </linearGradient>
    <linearGradient id="linearGradient4402">
      <stop id="stop4404" style="stop-color:#323232;stop-opacity:0.08" offset="0"/>
      <stop id="stop4406" style="stop-color:#ffffff;stop-opacity:0.5" offset="1"/>
    </linearGradient>
    <linearGradient id="linearGradient2901">
      <stop id="stop2939" style="stop-color:#ffffff;stop-opacity:0.88235295" offset="0"/>
      <stop id="stop2905" style="stop-color:#ffffff;stop-opacity:0.39215687" offset="0.4966931"/>
      <stop id="stop2907" style="stop-color:#ffffff;stop-opacity:0.88" offset="0.97654629"/>
      <stop id="stop2909" style="stop-color:#ffffff;stop-opacity:0.39215687" offset="1"/>
    </linearGradient>
    <linearGradient id="linearGradient2303">
      <stop id="stop2921" style="stop-color:#ffffff;stop-opacity:0.36862746" offset="0"/>
      <stop id="stop2307" style="stop-color:#ffffff;stop-opacity:0.37" offset="1"/>
    </linearGradient>
    <linearGradient x1="562.59088" y1="606" x2="1177.7767" y2="1262.2599" id="linearGradient4408" xlink:href="#linearGradient4402" gradientUnits="userSpaceOnUse" gradientTransform="translate(-5.2844319e-7,-2.4583808e-6)"/>
    <linearGradient x1="-87.470093" y1="107.18503" x2="59.965454" y2="332.06311" id="linearGradient4420" xlink:href="#linearGradient4424" gradientUnits="userSpaceOnUse" gradientTransform="translate(-4.8257402e-5,-1.6343534e-5)"/>
    <pattern id="pattern6205" patternTransform="translate(-164.97056,744.14109)" height="41.8125" width="42" patternUnits="userSpaceOnUse">
      <g id="g6196" transform="translate(114,-432)">
        <path id="rect6187" d="M -114,432 L -94,432 L -94,452 L -114,452 L -114,432 z" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.30000001;stroke-miterlimit:4;stroke-opacity:1"/>
        <path id="path6190" d="M -92,432 L -72,432 L -72,452 L -92,452 L -92,432 z" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.30000001;stroke-miterlimit:4;stroke-opacity:1"/>
        <path id="path6192" d="M -114,453.8125 L -94,453.8125 L -94,473.8125 L -114,473.8125 L -114,453.8125 z" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.30000001;stroke-miterlimit:4;stroke-opacity:1"/>
        <path id="path6194" d="M -92,453.8125 L -72,453.8125 L -72,473.8125 L -92,473.8125 L -92,453.8125 z" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.30000001;stroke-miterlimit:4;stroke-opacity:1"/>
      </g>
    </pattern>
    <linearGradient x1="1395.7069" y1="448.05756" x2="781.80023" y2="585.21918" id="linearGradient3299" xlink:href="#linearGradient3293" gradientUnits="userSpaceOnUse" gradientTransform="translate(-251.87215,8.100505)"/>
    <filter x="-0.19553787" y="-0.14020766" width="1.3910757" height="1.2804153" color-interpolation-filters="sRGB" id="filter4132">
      <feGaussianBlur id="feGaussianBlur4134" stdDeviation="21.762588"/>
    </filter>
    <radialGradient cx="484.39139" cy="692.77161" r="133.55524" fx="484.39139" fy="692.77161" id="radialGradient4136" xlink:href="#linearGradient4424" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1.8074939,-0.01596508,0.04486084,5.0789951,-419.53595,-2781.359)"/>
    <filter x="-0.10621351" y="-0.087578438" width="1.212427" height="1.175157" color-interpolation-filters="sRGB" id="filter6253">
      <feGaussianBlur id="feGaussianBlur6255" stdDeviation="7.0692873"/>
    </filter>
    <linearGradient x1="562.59088" y1="606" x2="1177.7767" y2="1262.2599" id="linearGradient6645" xlink:href="#linearGradient4402" gradientUnits="userSpaceOnUse" gradientTransform="translate(-5.2844319e-7,-2.4583808e-6)"/>
    <linearGradient x1="-87.470093" y1="107.18503" x2="59.965454" y2="332.06311" id="linearGradient6647" xlink:href="#linearGradient4424" gradientUnits="userSpaceOnUse" gradientTransform="translate(-4.8257402e-5,-1.6343534e-5)"/>
    <linearGradient x1="1395.7069" y1="448.05756" x2="781.80023" y2="585.21918" id="linearGradient6649" xlink:href="#linearGradient3293" gradientUnits="userSpaceOnUse" gradientTransform="translate(-251.87215,8.100505)"/>
    <radialGradient cx="484.39139" cy="692.77161" r="133.55524" fx="484.39139" fy="692.77161" id="radialGradient6651" xlink:href="#linearGradient4424" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1.8074939,-0.01596508,0.04486084,5.0789951,-419.53595,-2781.359)"/>
    <radialGradient cx="484.39139" cy="692.77161" r="133.55524" fx="484.39139" fy="692.77161" id="radialGradient6655" xlink:href="#linearGradient4424" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1.8074939,-0.01596508,0.04486084,5.0789951,-419.53595,-2781.359)"/>
    <linearGradient x1="1016.6977" y1="530.08197" x2="781.80023" y2="585.21918" id="linearGradient6658" xlink:href="#linearGradient3293" gradientUnits="userSpaceOnUse" gradientTransform="translate(-251.87215,8.100505)"/>
    <linearGradient x1="-87.470093" y1="107.18503" x2="59.965454" y2="332.06311" id="linearGradient6661" xlink:href="#linearGradient4424" gradientUnits="userSpaceOnUse" gradientTransform="translate(-4.8257402e-5,-1.6343534e-5)"/>
    <linearGradient x1="562.59088" y1="606" x2="1177.7767" y2="1262.2599" id="linearGradient6664" xlink:href="#linearGradient4402" gradientUnits="userSpaceOnUse" gradientTransform="translate(-5.2844319e-7,-2.4583808e-6)"/>
  </defs>
  <metadata id="metadata7">
    <rdf:RDF>
      <cc:Work rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
        <dc:title/>
        <dc:date>2007-10-03</dc:date>
        <dc:creator>
          <cc:Agent>
            <dc:title>Michael P. Woolcott Sr.</dc:title>
          </cc:Agent>
        </dc:creator>
        <dc:rights>
          <cc:Agent>
            <dc:title>Michael P. Woolcott Sr.</dc:title>
          </cc:Agent>
        </dc:rights>
        <dc:publisher>
          <cc:Agent>
            <dc:title>Michael P. Woolcott Sr.</dc:title>
          </cc:Agent>
        </dc:publisher>
        <dc:identifier>http://www.liquibyte.com/svg/liquibyte.svg</dc:identifier>
        <dc:source>http://www.liquibyte.com/svg/liquibyte.svg</dc:source>
        <dc:relation>http://www.liquibyte.com/svg/liquibyte.svg</dc:relation>
        <dc:language>en</dc:language>
        <dc:subject>
          <rdf:Bag>
            <rdf:li>liquibyte</rdf:li>
            <rdf:li>svg</rdf:li>
            <rdf:li>art</rdf:li>
            <rdf:li>logo</rdf:li>
            <rdf:li>h2o8bit</rdf:li>
          </rdf:Bag>
        </dc:subject>
      </cc:Work>
    </rdf:RDF>
  </metadata>
  <g id="layer1">
    <g id="g6666">
      <path d="m 488.31496,75.185043 c 0,0 -60.02141,320.279017 -137.625,508.843757 -77.60364,188.56478 -1.83435,343.50417 150.4688,340.75 11.8843,-0.21491 23.2948,-1.34218 34.1875,-3.28125 -0.8709,-3.6939 -1.3438,-7.54141 -1.3438,-11.5 0,-27.60001 22.4,-50 50,-50 0.7335,0 1.4616,0.0313 2.1875,0.0625 -0.1087,-1.34545 -0.1875,-2.68893 -0.1875,-4.0625 0,-26.09625 20.019,-47.55288 45.5313,-49.8125 -0.9813,-3.90447 -1.5313,-7.98037 -1.5313,-12.1875 0,-27.53694 22.2994,-49.89795 49.8125,-50 2.3125,-47.41626 -7.6613,-101.73418 -32.125,-159.96875 -79.6923,-189.70393 -159.375,-508.843759 -159.375,-508.843757 z" id="path5386" style="fill:url(#linearGradient6664);fill-opacity:1;stroke:none"/>
      <path d="m 488.31495,75.18502 c 0,0 -60.0215,320.27902 -137.625,508.84376 -77.60368,188.5648 -1.8344,343.50424 150.46884,340.75004 11.8843,-0.2149 23.2948,-1.3422 34.1875,-3.2813 -0.8709,-3.69394 -1.3438,-7.54144 -1.3438,-11.50004 0,-27.6 22.4,-50 50,-50 0.7335,0 1.4616,0.0314 2.1875,0.0625 -0.1087,-1.3454 -0.1875,-2.6889 -0.1875,-4.0625 0,-26.0962 20.019,-47.5528 45.5313,-49.8125 -0.9813,-3.9044 -1.5313,-7.9803 -1.5313,-12.1875 0,-27.5369 22.2994,-49.8979 49.8125,-50 2.3125,-47.41621 -7.6613,-101.73413 -32.125,-159.9687 C 567.99769,394.32485 488.31495,75.18502 488.31495,75.18502 z" id="path4418" style="fill:url(#linearGradient6661);fill-opacity:1;stroke:none"/>
      <path d="m 493.9219,98.23482 c 0.45053,6.01387 25.12078,216.96474 25.6354,222.97303 1.01935,12.65251 1.98324,25.31009 3.10151,37.95413 0.76131,8.43724 1.47135,16.87928 2.25587,25.31439 0.28008,3.29527 0.60606,6.58583 0.91989,9.878 0.56817,6.07362 1.23534,12.13819 1.76919,18.21525 0.33558,3.47311 0.67814,6.94503 1.05507,10.41392 0.63109,6.17252 1.31599,12.33916 1.93689,18.51272 0.43608,3.8625 0.86184,7.72645 1.32038,11.58659 1.05085,9.51136 2.21388,19.01041 3.34665,28.5119 0.67269,5.05229 1.26398,10.11527 1.89922,15.17224 0.61352,4.32893 1.16683,8.66534 1.7421,12.99905 0.63616,4.77196 1.34116,9.53572 1.98634,14.30704 0.58378,3.34618 0.9183,6.73032 1.50488,10.07669 0.3735,2.5252 0.72246,5.0516 1.14145,7.5697 0.70296,4.69721 1.4514,9.38639 2.22788,14.0725 0.55533,3.44247 1.08928,6.88814 1.74878,10.31269 0.26419,1.8738 0.61514,3.73417 0.92872,5.5995 0.4015,2.19004 0.75231,4.38673 1.18024,6.57079 0.73637,4.2037 1.53914,8.3959 2.34818,12.58605 0.79899,3.76357 1.39336,7.5678 2.24952,11.31946 0.59746,3.05794 1.24918,6.1045 1.8846,9.15401 0.74335,3.32984 1.43955,6.67137 2.19448,9.99912 0.69468,3.04571 1.46661,6.07489 2.10908,9.13142 0.63238,2.29238 1.10842,4.63068 1.73401,6.92733 0.9232,3.65883 1.87781,7.31072 2.848,10.95732 0.96749,3.3187 1.83975,6.6644 2.81365,9.98119 0.55048,1.78878 1.01951,3.60024 1.62044,5.37786 1.16927,3.78964 2.41794,7.5509 3.66108,11.31651 1.28976,3.554 2.43798,7.17526 3.87904,10.67904 0.9835,2.67995 2.09738,5.30958 3.16179,7.95753 0.80719,1.90614 1.65851,3.78952 2.50074,5.67822 0.61229,1.24184 1.12486,2.52806 1.79354,3.74333 1.5781,3.25085 3.22032,6.47693 5.04334,9.59304 1.17256,2.06861 2.4337,4.09101 3.75687,6.06991 0.84064,1.147 1.62704,2.3399 2.46465,3.4901 1.50941,1.9121 2.97481,3.868 4.66035,5.6349 1.23288,1.4141 2.61552,2.6976 3.99989,3.953 0.93669,0.733 1.78557,1.5777 2.77619,2.2406 2.05628,1.4896 4.22244,2.8877 6.5926,3.8419 1.53159,0.6834 3.11862,1.2366 4.75963,1.5903 2.3557,0.5435 4.78913,0.7678 7.1989,0.6131 1.26334,-0.0714 2.52072,-0.201 3.76218,-0.4751 2.25875,-0.4032 4.43966,-1.1566 6.54523,-2.0537 2.16365,-0.8925 4.20839,-2.0307 6.19101,-3.268 2.26254,-1.3836 4.34403,-3.068 6.28466,-4.8649 1.37813,-1.2908 2.60957,-2.7255 3.78861,-4.1949 0.96583,-1.196 1.7689,-2.5182 2.57729,-3.825 0.65316,-1.2481 1.39134,-2.4646 1.95822,-3.7468 0.7214,-1.6091 1.31282,-3.3028 1.90934,-4.96678 0.55697,-1.99017 1.15073,-3.98134 1.5056,-6.02221 0.38937,-1.99694 0.66546,-4.0192 0.8694,-6.04029 0.30347,-3.57951 0.49444,-7.17433 0.3125,-10.76522 0.005,-2.722 -0.2379,-5.42729 -0.4375,-8.14103 -0.31898,-2.80626 -0.62981,-5.61647 -1.03676,-8.4136 -0.45881,-2.96406 -0.92682,-5.92695 -1.46485,-8.87729 -0.62384,-3.23241 -1.29305,-6.4587 -2.01238,-9.67131 -1.24594,-5.29597 -2.521,-10.58525 -3.98026,-15.82728 -0.67721,-2.36025 -1.2999,-4.73937 -1.97469,-7.10175 -0.92848,-3.14114 -1.76073,-6.31088 -2.80199,-9.41898 -0.90565,-3.20744 -1.93425,-6.38127 -2.94844,-9.55645 -1.41765,-4.61267 -2.92209,-9.19938 -4.46497,-13.77178 -0.87621,-2.71029 -1.77699,-5.41245 -2.68471,-8.11299 -1.56632,-4.6747 -3.17127,-9.33707 -4.78902,-13.99374 -0.97022,-2.98461 -2.10666,-5.91272 -3.08985,-8.89331 -0.77112,-2.34586 -1.62236,-4.66385 -2.45107,-6.98973 -1.90337,-5.45307 -3.90709,-10.87132 -5.88814,-16.29672 -3.2029,-9.1404 -6.4983,-18.24879 -9.57137,-27.43412 -1.49576,-4.38749 -3.14512,-8.72125 -4.72737,-13.07803 -1.83602,-4.7163 -3.56773,-9.47465 -5.08127,-14.30496 -0.80762,-2.5235 -1.60703,-5.05196 -2.43535,-7.56768 -1.5207,-4.61857 -3.10791,-9.21698 -4.66322,-13.82492 -1.97618,-5.84269 -3.98996,-11.67258 -5.92355,-17.52984 -2.14764,-6.46358 -4.29268,-12.92815 -6.41816,-19.39898 -1.91621,-6.05499 -3.90215,-12.0872 -5.82671,-18.13941 -1.30097,-4.00508 -2.50256,-8.04132 -3.79168,-12.05014 -2.32006,-7.54486 -4.65495,-15.08522 -6.89596,-22.65395 -1.24462,-4.12109 -2.45497,-8.25408 -3.69726,-12.3746 -0.8072,-2.938 -1.73105,-5.84123 -2.53272,-8.78083 -1.36538,-4.65781 -2.6757,-9.33149 -3.97764,-14.00794 -1.96089,-6.75539 -3.70505,-13.57341 -5.61633,-20.34441 -0.64268,-2.28965 -1.15963,-4.60905 -1.82523,-6.89235 -0.52673,-1.9119 -0.94473,-3.8531 -1.52787,-5.75085 -0.40113,-1.87295 -1.02146,-3.68594 -1.42494,-5.55872 -1.18637,-4.73412 -2.44954,-9.44897 -3.57672,-14.19762 -0.99717,-3.89115 -1.94557,-7.79132 -2.92705,-11.68676 -0.92702,-4.08844 -1.97726,-8.1481 -2.89929,-12.23748 -0.5986,-2.59873 -42.0457,-168.72931 -42.09075,-168.77292 z" id="path3291" style="fill:url(#linearGradient6658);fill-opacity:1;fill-rule:nonzero;stroke:none"/>
      <path d="m 390.68542,614.91168 c -58.4025,145.41787 -4.68124,293.9238 109.70338,286.11495 14.94401,-24.38601 49.9457,-47.09355 72.96918,-51.3263 1.10317,-21.91042 0.12764,-37.72042 13.82789,-39.11897 1.32589,-15.89423 9.19584,-20.559 28.65115,-19.35052 0.01,-21.06538 19.43784,-51.58164 47.30616,-58.12503 C 664.6255,690.46073 632.61059,659.8211 614.19985,614.91168 584.21269,541.76347 529.27782,200.83331 488.1963,200.94313 c -41.08153,0.10981 -68.3097,341.25961 -97.51088,413.96855 z" id="path3695" style="fill:url(#radialGradient6655);fill-opacity:1;stroke:none;filter:url(#filter4132)"/>
      <path d="m 580.99677,805.81778 c -6.57486,4.3657 -11.68758,26.3853 -10.74307,37.1185 -17.01932,2.4921 -36.46972,17.47282 -48.29231,28.88672 -1.17894,11.90735 -5.57198,17.4094 5.53122,51.9719 -4.40643,-44.35254 19.64199,-74.22792 47.24199,-74.22792 0.7335,0 1.4616,0.0314 2.1875,0.0625 -0.1087,-1.3454 -0.1875,-2.6889 -0.1875,-4.0625 0,-26.0962 20.019,-47.5528 45.5313,-49.8125 -0.9813,-3.9044 -1.5313,-7.9803 -1.5313,-12.1875 0,-27.53691 22.65295,-55.20123 60.06555,-51.41424 -24.12275,-7.09114 -48.42765,3.80136 -53.59614,8.51055 -12.307,13.49158 -15.17571,32.03599 -10.89586,49.72009 -12.33716,0.7135 -26.01104,4.80919 -35.31138,15.4344 z" id="path4537" style="opacity:0.08999999;fill:#000000;fill-opacity:1;stroke:none;filter:url(#filter6253)"/>
    </g>
  </g>
</svg>

Last edited by liquibyte (2013-11-21 03:58:49)

Offline

#6686 2013-11-21 04:06:53

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

sjv047 wrote:

Totally off-the-wall question here...

Is it possible for conky to display what OS is installed in the computer? Meaning, it can read (from somewhere) what version & type of linux you have installed?

Not planning on adding that to you setup, but was just wondering if that was even possible.

yes, for debian systems, there is a package available in the repos called lsb-release. Once it's installed (not sure if it's installed by default) you'll have the program lsb_release.

lsb_release -a

will display a bunch of os information that can be parsed with grep, sed, or awk and conky used to display the results.

If you have screenfetch or archey installed, you can use awk to parse out the OS line, or edit those scripts to yield OS only.

Or you can always type it in as plain text.

Last edited by PackRat (2013-11-21 15:17:59)


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

Offline

#6687 2013-11-21 04:08:26

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

liquibyte wrote:
Sector11 wrote:

Interesting little conky ... from the code, I'd say it wasn't THAT long ago ... but you did get caught up in a little "oops!" that hits a lot of people.  Especially people with an Intel CPU.

I started working on that back in the beginning of 2008 and finally published it at the end over on the arch forums.  Almost six years now.

OH MY!!  How wrong I was.  big_smile My first conky (Dec 2007) looked like crap by comparison.  Conky is something that I picked up pretty fast - it was easy for me, still is, that's why I help people.  Gives me a sense of accomplishment to help someone.

Outside of conky be it LUA, bash, python or any other 'coding' situation I'd be at the back of the class compared to you.  Yes, I know you said your didn't try it.  I was just clearing the air.

Conky, with it's 'native commands', isn't a programming language - just a formatted text file really.

I've seen some talk, not a lot, of getting rid of X but like you said it will be replaced with "Y" anyway.

A bug in terminator?  OH NO!!!!! mind you there are probably bugs in all programs ... as long as they work, I'm happy  big_smile

EDIT:

icon font for use in conky's

Oh that sounds interesting.  big_smile

Last edited by Sector11 (2013-11-21 04:11:58)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#6688 2013-11-21 04:30:10

liquibyte
#! Member
From: N42°34'30.2664",W71°59'
Registered: 2013-11-04
Posts: 67
Website

Re: Conky v1.9 Thread

Sector11 wrote:

A bug in terminator?  OH NO!!!!! mind you there are probably bugs in all programs ... as long as they work, I'm happy  big_smile

EDIT:

icon font for use in conky's

Oh that sounds interesting.  big_smile

Ever maximized terminator and restored it and had it inexplicably shrink down to just the titlebar or worse almost nothing?  I finally figured out today how to make that happen consistently (at least in fluxbox) and submitted an attachment to the original bug report verifying that the proposed fix didn't work.  Hopefully they'll work it out soon.

Want to work with me on the icon end?  I could use ideas for what icons might be needed and used for something like that.  I'm assuming that svg support hasn't been built into conky (at least yet) so a font approach would really be the only way other than images.  Using images is an unelegant and kludgy so a font would be at least a coolish solution.

Offline

#6689 2013-11-21 07:24:45

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 150

Re: Conky v1.9 Thread

@liquibyte
Thank you for all the info. Always better to hear from someone who has some experience.  smile
I was looking if there was a font already in place.  A new font sounds like some work. but I guess, I can try it a bit. I have my exams in coming up, so I guess I can take a look once they are over*.


* conditions apply neutral depending on how the exams go hmm

Offline

#6690 2013-11-21 11:25:18

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

liquibyte wrote:

Anyone running a git version of conky?  I can't seem to get lua scripts to load right.

conky.config = {
[..]
 }
lua_load = '~/.conky/scripts/superclock.lua'
lua_draw_hook_pre = 'draw_superclock'
conky.text = [[
${font virgo01:size=14}${color 888888}${goto 185}${voffset 25}${time %S}
]]

This is the only way I can get conky to not throw an error but nothing appears. Tried #! /usr/bin/lua at the top of script, nothing.  The new wiki and the new blog urls won't load for me so no help there.  Sitting in #conky now but no one knows anything.

  1. lua_load and lua_draw_hook_pre must be inside config table (inside {});

  2. as with old Conky, lua_draw_hook_pre runs functions from script that starts with conky_, nothing changed here;

liquibyte wrote:

Arch and fluxbox with a git checkout of conky ~2.0.  I've gotten it to finally recognize but am now getting this error.  I think I may have to manually edit the build settings in the PKGBUILD.  I know this isn't crunchbang related but is most definitely conky related.

conky: llua_load: /home/liquibyte/.conky/scripts/superclock.lua:9: module 'cairo' not found:
	no field package.preload['cairo']
	no file '/usr/share/lua/5.2/cairo.lua'
	no file '/usr/share/lua/5.2/cairo/init.lua'
	no file '/usr/lib/lua/5.2/cairo.lua'
	no file '/usr/lib/lua/5.2/cairo/init.lua'
	no file './cairo.lua'
	no file '/usr/lib/conky/libcairo.so'
	no file '/usr/lib/lua/5.2/cairo.so'
	no file '/usr/lib/lua/5.2/loadall.so'
	no file './cairo.so'

Your Conky compiled without Cairo support...
As I remember I had that problem for few months before, then some git commit make it possible.
Will check what's needed to compile new git Conky under SID and post dependencies, later...


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#6691 2013-11-21 12:53:04

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

First test with weather-forecast on board...
meteockpit.jpg
May-be a lighter solution is to delete the big circle and use the little one (bottom middle) to change the forecats for days and add three icons in the 3 quadrants on right to display next 3 hours...
I'm working on it... quite slowly...

Last edited by ragamatrix (2013-11-21 13:00:28)

Offline

#6692 2013-11-21 14:39:10

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

liquibyte wrote:
Sector11 wrote:

A bug in terminator?  OH NO!!!!! mind you there are probably bugs in all programs ... as long as they work, I'm happy  big_smile

EDIT:

icon font for use in conky's

Oh that sounds interesting.  big_smile

Ever maximized terminator and restored it and had it inexplicably shrink down to just the titlebar or worse almost nothing?  I finally figured out today how to make that happen consistently (at least in fluxbox) and submitted an attachment to the original bug report verifying that the proposed fix didn't work.  Hopefully they'll work it out soon.

No I haven't hit that, I have 2 OB links to start terminator:

terminator --geometry=950x600+500+30 -b
  • [Alt]+[right click] near an edge or corner to re-size it if needed

  • [Alt]+[left clock] to move it.

http://postimg.org/image/pj8ce5r7t/ -- http://postimg.org/image/n36j0b955/ -- http://postimg.org/image/4kxl2c1zd/

Next is full screen (less the 3pixel border I setup)

terminator -mb

http://postimg.org/image/n74xub409/ --> and [Alt]+[click] as above works on that as well. The 3 pixel space around it allows for a space to right click and get my OB menu.

Worked around the bug without realizing it.  big_smile

liquibyte wrote:

Want to work with me on the icon end?  I could use ideas for what icons might be needed and used for something like that.  I'm assuming that svg support hasn't been built into conky (at least yet) so a font approach would really be the only way other than images.  Using images is an unelegant and kludgy so a font would be at least a coolish solution.

Sure I'll 'brainstorm' fonts with you.  Although, I have to say collecting conkys like I do I've seen a ton of fonts used in conky and keep them in case I test another that has them:

http://postimg.org/image/4q5xpqyo9/ - - http://postimg.org/image/9fvvecpop/ - - http://postimg.org/image/f1iaieqdl/
http://postimg.org/image/xicp986bt/ - - http://postimg.org/image/eftbmavbd/ - - http://postimg.org/image/gqrdqh62x/

And that's only some of them out there, so it might be beating a dead horse ... your call.  Personally - I don't use them in conkys.  I use the ODD conky with images just for fun:
2013_11_21_10_33_18_181x696_Sector11.jpg <--> 2013_11_21_10_34_38_282x932_Sector11.jpg

One of the reasons I don't I don't use those fonts is they create a spacing nightmare, although a recent discovery on my part has eliminated that.  Basically using opposing ${voffset xx} and ${voffset -xx} at the end of the specific command as seen here the World Time Weather conky in Teo's Thread.  That was a fun project.

All sorts of weather examples in that thread with " weather fonts" as well - I still prefer the images. cool

Now saying that there is a font "I" would like seen done - either fix Digital-7 or do a another like it:
http://postimg.org/image/wzc7dp4ax/ <--> http://postimg.org/image/g038yft3d/

Mind you there is a fix in conky: http://postimg.org/image/va345moll/

TEXT


		${font Digital-7:bold:size=14}${time %T %a. %d %b. %Y}${font}


		${font Digital\-7:bold:size=14}${time %T %a. %d %b. %Y}${font}

Notice it's cut off!  Yes, a lot of "digital" fonts ... a lot I eliminate as they are not "mono" even when some say they are. The number 1 is a sure hint it isn't despite what they say.

Digit is a super nice font that does 0 to 9 and : only - too bad - like LED_mono as well.

But a really nice digital (upright not italic) true mono font similar to Digital-7 that has 'everything' covered.
The ° symbol, & $ # ( ) < > € ¢ you name it - but a true mono font.

Some of mention of svg images in conky a little while ago ... but my forgetter is getting better.  I believe that conky (conky-cli) can use them in a 'dock' - but don't quote me on this --- like I said; my forgetter.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#6693 2013-11-21 14:55:22

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ragamatrix wrote:

First test with weather-forecast on board...
I'm working on it... quite slowly...

Looking good ... but yea, that "big" circle takes away from it

Me, in the small three circles, I'd GIMP them with the one on the left to cover the centre and right circles, to make them look like they are facing you.
meteockpit.png
subir fotos gratis

left: Barometric Pressure
centre:  Flt. Time (${uptime_short})
right - the Wind

But that's me.  big_smile


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#6694 2013-11-21 16:14:28

liquibyte
#! Member
From: N42°34'30.2664",W71°59'
Registered: 2013-11-04
Posts: 67
Website

Re: Conky v1.9 Thread

easysid wrote:

@liquibyte
Thank you for all the info. Always better to hear from someone who has some experience.  smile
I was looking if there was a font already in place.  A new font sounds like some work. but I guess, I can try it a bit. I have my exams in coming up, so I guess I can take a look once they are over*.

Hang tight we might have a solution incoming for you.  I was looking at the Tamsyn font (original) and thought it might be trivial to convert it but it wasn't.  I ended doing a bunch of reading last night about fonts and their creation.  This part applies to what Sector11 says later on as well, The issue with icon fonts never really looking completely right has to do, with ttf and otf at least, with hinting.  Making a proper font is a lot of work and most people stop when it just looks right to them.  I plan on addressing this with something but it may take some time.

dk75 wrote:

Your Conky compiled without Cairo support...
As I remember I had that problem for few months before, then some git commit make it possible.
Will check what's needed to compile new git Conky under SID and post dependencies, later...

Thanks for the info.  I actually ended up getting things to complile nicely except for the lua branch.  Still looking at that one.  Something about too few arguments in a library call.  Sector11 gave me a proper v2 config and I mangage to figure out that the lua calls fit inside of the config bit.  My problem was a trailing ',' for the lua_draw_hook_pre line.  Apparenly it looks at the whole config file as kind of one statement.  I didn't really dig around in the source too much.  As for the config flags, I turned on everything except IBM and mpd I believe.  I'll give it a try again and see if I missed something obvious.  EDIT.  Rebuilt with all flags except bmpx and old config support and still getting these errors.  Something isn't playing nice.

Sector11 wrote:

But a really nice digital (upright not italic) true mono font similar to Digital-7 that has 'everything' covered.
The ° symbol, & $ # ( ) < > € ¢ you name it - but a true mono font.

You're probably going to be surprised by this answer.  I learned a lot about fonts and how they work and why the choices are made the way they are for what you see.  I have immense respect for George Williams and the work he's done on FontForge, I mean the guy made his own widget set and basically called QT and GTK confusing.  It might seem like homework but read this tutorial on font creation and you'll get an idea of why the '1' is done the way it is.  It all comes down to hinting (or instructing as ttf calls it).  I seriously recommend anyone read that if they've ever even thought about a font they'd like to do.

Now, What I was planning on doing was taking a simple bitmapped terminal font like Tamsyn and doing a true conversion by hand into ttf, extending it slightly into UTF and adding icons for common things like battery percents, signal strength, on and off.  You get the idea.  What I need is input on what icons would be most helpful to start with and I guess we could go from there.  The cool part is that I found out you can do glyph creation in svg and import them to polish off in FontForge.  This means that any svg icon set can be directly converted into a font with minimal work.

As for Digital-7, I just went and got it and will take a look at the situation and see what I can do.  A personal project to start me off in the true world of fonts.  I have a feeling that the display issues may be entirely conky related and not font related though.

Last edited by liquibyte (2013-11-21 17:11:38)

Offline

#6695 2013-11-21 17:22:59

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ liquibyte

RE: conky-v2
- if my memory serves me correctly it was dk75 that gave me that.  I tried it and got a headache trying to figure it out.

RE: fonts:  I'll read that, I had FontForge her at one time - way beyond my pay grade!

RE: the '1' with some fonts it respects the "mono" aspect, with others it doesn't.  I thought is was the way they were made.  Not sure how hinting would cause that.

RE: Digital-7 - http://postimg.org/image/q90bi06ix/ <--> LibreOffice and Medit
- no, not a conky issue - but conky allows the fix with 'Digital\-7

Last edited by Sector11 (2013-11-21 17:24:02)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#6696 2013-11-21 18:53:44

liquibyte
#! Member
From: N42°34'30.2664",W71°59'
Registered: 2013-11-04
Posts: 67
Website

Re: Conky v1.9 Thread

Sector11 wrote:

@ liquibyte

RE: conky-v2
- if my memory serves me correctly it was dk75 that gave me that.  I tried it and got a headache trying to figure it out.

RE: fonts:  I'll read that, I had FontForge here at one time - way beyond my pay grade!

RE: the '1' with some fonts it respects the "mono" aspect, with others it doesn't.  I thought is was the way they were made.  Not sure how hinting would cause that.

RE: Digital-7 - http://postimg.org/image/q90bi06ix/ <--> LibreOffice and Medit
- no, not a conky issue - but conky allows the fix with 'Digital\-7

EDIT:  Nevermind, it doesn't.  Give me a bit with it and I'll see if I can fix it.

EDIT II:  Too bad you can't run fsck on a font because it's fubar.  I'm going to attempt to convert it to svg and re-encode it as a latin instead of utf.  Probably going to take awhile though.

EDIT III: Nevermind again.  I tried converting it online and had one working but I think I accidentally deleted it.

Last edited by liquibyte (2013-11-21 23:51:23)

Offline

#6697 2013-11-22 00:19:57

sjv047
Member
Registered: 2013-11-20
Posts: 23

Re: Conky v1.9 Thread

if_existing statement help please!

Although I've found where the disk or removable drive information is (/media/NAME), and have found where the device information is (/dev/sdc1), I have been unable to figure out how to use the if_existing to show individual information.  I've been able to plug in a removable drive and it will appear in conky, but I can't figure out how to differentiate among the different ones that may be plugged in.

I use quite often 2 different thumb drives and a removable CDROM (since I use a netbook). Is there a way to differentiate the removable drives WITHOUT specifying the name that I have made in the removable drive? What I mean, is that if anyone plugs a removable drive into my machine, then the information in conky it is not dependent on the info that I hard-coded into conky.

1. How can I get only what is plugged into the machine to show up in conky, EVEN if it is multiple devices at the same time.
2. How can I get diskio to show
3. How can I get file information to show (this one I was able to try similar to the HDD info, but it kept giving me the wrong information... It kept telling me that there was more space in the drive than there actually was and confirmed via the properties through nautilus).

Here is what I currently am trying to use... unsuccessfully!

${if_existing /media/name/sdc} ${font sans-serif:italic:size=8} $alignc - Removable Drive - ${font sans-serif:normal:size=8}
Disk I/O: ${alignr}${diskio /media/name/}
File System: ${alignr}${fs_free dev/sdc1} / ${fs_size /dev/sdc1}${endif}

Thanks for the help!

Offline

#6698 2013-11-22 00:53:41

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

sjv047 wrote:

1. How can I get only what is plugged into the machine to show up in conky, EVEN if it is multiple devices at the same time.
2. How can I get diskio to show
3. How can I get file information to show (this one I was able to try similar to the HDD info, but it kept giving me the wrong information... It kept telling me that there was more space in the drive than there actually was and confirmed via the properties through nautilus).

Thanks for the help!

mrpeachy's mounted.lua

--[[partitions for conky by mrpeachy

##instructions
##load script
lua_load ~/lua/mounted.lua
## first lua command below text:
## ${lua get_mounted_data interval}, where interval is a number.  This starts data gathering
## to get output:
## ${lua mount partition_number data_type text_length}, where partition number is a number
## text_length is optional, lets you specify the max number of characters the function returns. only affects fsys and mount data options
## data_type can be
## total - shows total number of partitions mounted, requires a partition_number also, use 1, could be used in an if_match
## fsys - shows filesystem
## size - shows space used in appropriate units
## free - shows free space in appropriate units
## use% - shows % used
## mount - shows mountpoint

TEXT
CPU %: ${cpu cpu0} ${lua get_mounted_data 10}
TOTAL PARTITIONS MOUNTED: ${lua mount 1 total}
FSYS${goto 100}SIZE${goto 200}USED%${goto 300}MOUNT
${lua mount 1 fsys}${goto 100}${lua mount 1 size}${goto 200}${lua mount 1 use%}${goto 300}${lua mount 1 mount 10}
${lua mount 2 fsys}${goto 100}${lua mount 2 size}${goto 200}${lua mount 2 use%}${goto 300}${lua mount 2 mount 10}
${lua mount 3 fsys}${goto 100}${lua mount 3 size}${goto 200}${lua mount 3 use%}${goto 300}${lua mount 3 mount 10}
${lua mount 4 fsys}${goto 100}${lua mount 4 size}${goto 200}${lua mount 4 use%}${goto 300}${lua mount 4 mount 10}

]]

conky_start=1
function conky_get_mounted_data(interval)
local updates=tonumber(conky_parse("${updates}"))
timer=(updates % interval)
if timer==0 or conky_start==1 then
fsys={}
size={}
used={}
avail={}
uperc={}
mount={}
local file = io.popen("df -h")
	for line in file:lines() do
		if string.find(line,"/dev/")~=nil then
		local s,f,fs=string.find(line,"^([%d%a%p]*)%s")
		table.insert(fsys,fs)
		local s,f,sz=string.find(line,"%s*([%d%a%p]*)%s",f)
		table.insert(size,sz)
		local s,f,us=string.find(line,"%s*([%d%a%p]*)%s",f)
		table.insert(used,us)
		local s,f,av=string.find(line,"%s*([%d%a%p]*)%s",f)
		table.insert(avail,av)
		local s,f,up=string.find(line,"%s*([%d%a%p]*)%s",f)
		table.insert(uperc,up)
		local s,f,mn=string.find(line,"%s*([%d%a%p]*)%s*$",f)
		table.insert(mount,mn)
		end
	end
file:close()
conky_start=nil
end--timed section
return ""
end

function conky_mount(n,d,c)--n=partition_number,d=data_type,c=number of characters to return
d=tostring(d)
n=tonumber(n)
c=tonumber(c) or 0
if d=="total" then
data=#fsys or 1
elseif d=="fsys" then
data=fsys[n] or ""
	if c~=0 then
	data=string.sub(data,1,c) or ""
	end
elseif d=="size" then
data=size[n] or ""
elseif d=="used" then
data=used[n] or ""
elseif d=="free" then
data=avail[n] or ""
elseif d=="use%" then
data=uperc[n] or ""
elseif d=="mount" then
data=mount[n] or ""
	if c~=0 then
	data=string.sub(data,1,c) or ""
	end
else
data="check data type"
end
return data
end--end main function

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#6699 2013-11-22 02:42:43

sjv047
Member
Registered: 2013-11-20
Posts: 23

Re: Conky v1.9 Thread

Sector11,

If I understand your post, I posted the 1st part of mrpeachy's before the TEXT part, then posted the remainder under the section that I was hoping to "code"... the removable drives area.

Once done, it doesn't show anything beyond the "TOTAL PARTITIONS MOUNTED:, then only the same code that I posted in the file.

Am I missing something with the code? I've googled the script, but can't find anything beyond the same script that I posted in my config file.

Offline

Be excellent to each other!

#6700 2013-11-22 03:27:00

liquibyte
#! Member
From: N42°34'30.2664",W71°59'
Registered: 2013-11-04
Posts: 67
Website

Re: Conky v1.9 Thread

Man, doing fonts is tedius.  I've got a preliminary version of a digital-7 type font done http://liquibyte.org/font/digit.ttf.  I didn't do everything as far as alignment and hinting so it's just a rough idea at the moment.  I also didn't do the lower case letters yet so only the caps will show up.  I did try it out and it's a bit rough around the edges but I think it's not too bad for my first font ever.  I'll keep working on it over time until it's complete.  I don't think it should be too hard to make it into a truncated utf8 version.

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.
Server: acrobat

Debian Logo