SEARCH

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

You are not logged in.

#1101 2011-01-14 00:40:21

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

Did not work:

  21:37 ~
         $ hddt_conky.sh
/home/sector11/bin/hddt_conky.sh: line 2: ’: command not found
cut: the delimiter must be a single character
Try `cut --help' for more information.
localhost [127.0.0.1] 7634 (?) : Connection refused
“”

  21:37 ~
         $ hddtemp /dev/sda
/dev/sda: WDC WD2500AAJS-00VWA0: 42°C

  21:38 ~
         $ 

conky displays:

SDA:  '' "

Online

Help fund CrunchBang, donate to the project!

#1102 2011-01-14 01:12:34

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: Conky Help

@Sector11 - I don't know if you already tried this but what happens if you use this in conky:

${execi 3600 hddtemp /dev/sda}

Offline

#1103 2011-01-14 01:55:24

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

anonymous wrote:

@Sector11 - I don't know if you already tried this but what happens if you use this in conky:

${execi 3600 hddtemp /dev/sda}

Interesting - I get the result but with errors!

  22:45 ~
         $ conky -c ~/conky/hddt
Conky: desktop window (1ad) is root window
Conky: window type - override
Conky: drawing to created window (0x2e00001)
Conky: drawing to double buffer
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: '/home/sector11/conky/hddt' modified, reloading...
Conky: desktop window (1ad) is root window
Conky: window type - override
Conky: drawing to created window (0x2e00001)
Conky: drawing to double buffer
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
Conky: could not connect to hddtemp host
TEXT
Temps:
Core:  ${execpi 5 sensors | grep 'Core0' | cut --characters 15-16}°
 GPU:  ${execpi 5 sh -c "DISPLAY=:0.0 nvclock -T | grep GPU | cut -c21-22"}°
 SDA:  ${hddtemp /dev/sda | cut --characters 34-37}
------------------------
 SDA:  ${execpi 30 hddtemp /dev/sda}
-------------------------
 SDA:  ${execpi 30 hddtemp /dev/sda | cut --characters 34-37}
------------------------
 SDA:  ${execi 30 hddtemp /dev/sda}
-------------------------
 SDA:  ${execi 30 hddtemp /dev/sda | cut --characters 34-37}

thmb_hddt.png

Don't know if it's good running conky when somewhere in the background there is that error!
BUT we're getting there!

Online

#1104 2011-01-14 01:58:58

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

anonymous if you were within reach I'd give you a BEAR HUG!

That created errors but this didn't:

TEXT
Temps:
Core:  ${execpi 5 sensors | grep 'Core0' | cut --characters 15-16}°
 GPU:  ${execpi 5 sh -c "DISPLAY=:0.0 nvclock -T | grep GPU | cut -c21-22"}°
# SDA:  ${hddtemp /dev/sda | cut --characters 34-37}
------------------------
# SDA:  ${execpi 30 hddtemp /dev/sda}
------------------------
# SDA:  ${execpi 30 hddtemp /dev/sda | cut --characters 34-37}
------------------------
# SDA:  ${execi 30 hddtemp /dev/sda}
------------------------
# SDA:  ${execi 30 hddtemp /dev/sda | cut --characters 34-37}
------------------------
 SDA:  ${exec hddtemp /dev/sda | cut --characters 34-37}
  22:54 ~
         $ kfc

  22:54 ~
         $ conky -c ~/conky/hddt
Conky: desktop window (1ad) is root window
Conky: window type - override
Conky: drawing to created window (0x1400001)
Conky: drawing to double buffer

thmb_sda-42.png

Online

#1105 2011-01-14 02:02:01

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: Conky Help

I bet you're glad to finally have hddtemp in your conky big_smile

Offline

#1106 2011-01-14 02:19:47

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

anonymous wrote:

I bet you're glad to finally have hddtemp in your conky big_smile

Try and imagine you hear this:

Ooooohhhh Yeeeeeaaaaaa!!   :lol

5 stars for you! big_smile big_smile big_smile big_smile big_smile {no stars} - Do you accept smilies?

Online

#1107 2011-01-18 21:19:32

mikel
Member
From: Mexique
Registered: 2009-08-26
Posts: 15

Re: Conky Help

Hello!, i need some help here....
Conky displays fine the Artist-Song in both Rhytmbox and Audacious... my problem is this; if audacious is not playing it says that... but if I run rhythmbox it shows:  Artist - Song No Song Playing..... cuz Audacious is not playing anything...

Is there a way to fix this or should I stick with just one mediaplayer?

My conky line for music displaying:

 MUSIC: ${if_running rhythmbox}${exec conkyRhythmbox --datatype=AR} - ${exec conkyRhythmbox --datatype=TI}${endif}${if_running audacious}${exec audtool --current-song}${endif}  

Offline

#1108 2011-01-18 21:32:19

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

mikel wrote:

Hello!, i need some help here....
Conky displays fine the Artist-Song in both Rhytmbox and Audacious... my problem is this; if audacious is not playing it says that... but if I run rhythmbox it shows:  Artist - Song No Song Playing..... cuz Audacious is not playing anything...

Is there a way to fix this or should I stick with just one mediaplayer?

My conky line for music displaying:

 MUSIC: ${if_running rhythmbox}${exec conkyRhythmbox --datatype=AR} - ${exec conkyRhythmbox --datatype=TI}${endif}${if_running audacious}${exec audtool --current-song}${endif}  

I don't use either and see no reason for that NOT working but lets try a variation:

 MUSIC: ${if_running rhythmbox}${exec conkyRhythmbox --datatype=AR} - ${exec conkyRhythmbox --datatype=TI}${else}${if_running audacious}${exec audtool --current-song}${else}Nothing playing!${endif}${endif}

Online

#1109 2011-01-18 21:45:23

mikel
Member
From: Mexique
Registered: 2009-08-26
Posts: 15

Re: Conky Help

Sector11 wrote:

I don't use either and see no reason for that NOT working but lets try a variation:

 MUSIC: ${if_running rhythmbox}${exec conkyRhythmbox --datatype=AR} - ${exec conkyRhythmbox --datatype=TI}${else}${if_running audacious}${exec audtool --current-song}${else}Nothing playing!${endif}${endif}

thank you, that worked great...
Im comparing both "codes" to see my mistake...
cool

Offline

#1110 2011-01-18 22:10:16

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

mikel wrote:
Sector11 wrote:

I don't use either and see no reason for that NOT working but lets try a variation:

 MUSIC: ${if_running rhythmbox}${exec conkyRhythmbox --datatype=AR} - ${exec conkyRhythmbox --datatype=TI}${else}${if_running audacious}${exec audtool --current-song}${else}Nothing playing!${endif}${endif}

thank you, that worked great...
Im comparing both "codes" to see my mistake...
cool

You're welcome!

1. if rhythmbox running do things - endif
2. if rhythmbox NOT running "else" if audacious running do things - endif
3. if rhythmbox NOT running "else" if audacious NOT running - display: "Nothing running!" endif

Simple!

Last edited by Sector11 (2011-01-18 22:19:03)

Online

#1111 2011-01-27 22:21:43

spoonman184
New Member
Registered: 2011-01-27
Posts: 1

Re: Conky Help

Having trouble getting my wireless signal quality to display. I was able to get the ESSID by rebuilding from source using --enable-wlan so that shouldn't be an issue...

.conkyrc

# note that the $xmms2_* and $mpd_* stuff will only work if you have support for them built into conky
double_buffer no
own_window no
own_window_type desktop
outlinecolor (black)
alignment tr
TEXT

$nodename - $sysname $kernel on $machine
$hr

RAM Usage: $mem/$memmax - $memperc% 
${memgraph 20,200 0000CC FF0000 -l}

Swap Usage: 
$swap/$swapmax - $swapperc% 
${swapbar 20,200}
$hr

Uptime: $uptime
Frequency (in MHz): $freq
Frequency (in GHz): $freq_g
CPU Usage: $cpu% 
${cpugraph cpu0 20,200 0000CC FF0000 -l}
Processes: $processes  Running: $running_processes
Name                 PID   CPU%  MEM%
 ${color red}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
 ${color orange}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
 ${color yellow}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
 ${color green}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
 ${color blue}${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
 ${color}
$hr

File systems:
${fs_used /}/${fs_size /} 
${fs_bar 20,200 /}

$hr

Networking:



Ethernet:   Up: ${upspeed eth0} kb/s - Down: ${downspeed eth0} kb/s
${downspeedgraph eth0}
IP Address: ${addr eth0}

Wireless:   Up: ${upspeed wlan0} kb/s Down: ${downspeed wlan0} kb/s
${upspeedgraph wlan0}
IP Address: ${addr wlan0}
ESSID: ${wireless_essid wlan0} Quality: ${wireless_link_qual_perc}%

$hr
#MPD: $mpd_status $mpd_artist - $mpd_title from $mpd_album at $mpd_vol
#Bitrate: $mpd_bitrate\n" "Progress: $mpd_bar
#XMMS2: $xmms2_status $xmms2_artist - $xmms2_title from $xmms2_album
#Progress: $xmms2_bar


${tail /var/log/Xorg.0.log 3}";

conky -v

Conky 1.8.1 compiled Thu Jan 27 16:01:15 CST 2011 for Linux 2.6.32-5-686 (i686)

Compiled in features:

System config file: /usr/local/etc/conky/conky.conf
Package library path: /usr/local/lib/conky

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual

 Music detection:
  * MPD
  * MOC

 General:
  * math
  * hddtemp
  * portmon
  * wireless
  * config-output
  * apcupsd
  * iostats
  * ncurses
  * Lua

  Lua bindings:

iwconfig

lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"ihcc"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:25:84:03:DB:72   
          Bit Rate=54 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=45/70  Signal level=-65 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

pan0      no wireless extensions.

Last edited by spoonman184 (2011-01-27 22:22:44)

Offline

#1112 2011-02-02 02:59:19

AwesomeFist
#! Die Hard
Registered: 2011-01-02
Posts: 670
Website

Re: Conky Help

I want to output information such as song id, artist, album from the pandora client  pithos to conky. How do I accomplish this? I've been wanting to do it for a while, but I just couldn't find out, no matter how hard I tryed.

Last edited by AwesomeFist (2011-02-02 03:05:48)


Hello, I go by Plio most internet places now, if you are seeing this it means that you are seeing one of my elusive "older internet accounts" (ooh, how exciting) Yeah...

My Tumblr (it's kind of dumb. Expect lots of webcomics, videogames, and anime)

Offline

#1113 2011-02-02 06:46:09

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,263

Re: Conky Help

It looks like pithos doesn't offer any command-line info, but if you have pianobar installed, that probably will give you the info in a format Conky can use.

Online

#1114 2011-02-02 10:34:56

ali
#! Die Hard
Registered: 2010-05-31
Posts: 1,035

Re: Conky Help

i get a error in conky

Conky: Bad arguments: 'a' and '"a"'
Conky: compare failed for expression 'a=="a"'

on line

${if_match ${exec sed -n "6 p" /home/ali/tmp/crap}=="a"}

UPDATE:
solved with

${if_match "${exec sed -n "6 p" /home/ali/tmp/crap}" == "a"}

Last edited by ali (2011-02-02 10:37:34)

Offline

#1115 2011-02-02 11:49:28

pitje
#! Junkie
From: me to you
Registered: 2009-02-10
Posts: 438
Website

Re: Conky Help

ali wrote:

i get a error in conky

Conky: Bad arguments: 'a' and '"a"'
Conky: compare failed for expression 'a=="a"'

on line

${if_match ${exec sed -n "6 p" /home/ali/tmp/crap}=="a"}

UPDATE:
solved with

${if_match "${exec sed -n "6 p" /home/ali/tmp/crap}" == "a"}

I still find it weird you can nest " like that


oh yeah? well, your momma dresses you funny and you need a mouse to delete files

Offline

#1116 2011-02-02 15:01:55

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

pitje wrote:

I still find it weird you can nest " like that

But, so handy.

Online

#1117 2011-02-03 14:45:54

gianni
New Member
Registered: 2011-02-03
Posts: 1

Re: Conky Help

Hi, I use this perl script to keep my productivity under control.... :-)  it tells how many minutes you spend on each program.
I would like to embed the output in conky (a pie graph, or simply a list of the most used programs), can you suggest me a way to do this?

Thanks

Please note that in order to use this, you need to edit the about:config file of firefox, to have the word "firefox" appear on the window title. If you are interested I can explain how to do it.

use IPC::System::Simple qw(system systemx capture capturex);
while ( 1 ) 

{
$comando=q(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)"| cut -d ' ' -f 5);
$output = capture("$comando");
chomp $output;

$titolo=q(xwininfo -id ).$output.q( |awk 'BEGIN {FS="\""}/xwininfo: Window id/{print $2}' | sed 's/-[^-]*$//g');

$outTitolo = capture("$titolo");
chomp $outTitolo;
print "\n risultato $outTitolo\n";
sleep 60;

if ($outTitolo =~ /firefox/gsi)
{
$outTitolo= 'firefox';
}

push(@myNames, $outTitolo); 
count_unique (@myNames);

}

sub count_unique {
    my @array = @_;
    my %count;
    map { $count{$_}++ } @array;

      #print them out:

    map {print "$_ = ${count{$_}}\n"} sort keys(%count);

      #or just return the hash:

    return %count;
}

Last edited by gianni (2011-02-03 14:49:04)

Offline

#1118 2011-02-05 01:23:52

Him
#! Junkie
From: Here
Registered: 2010-03-31
Posts: 306
Website

Re: Conky Help

Hi all. Getting my hands dirty with Conky. I only have a few questions.

1. How exactly can I get conky to a specific spot on my desktop?

2. Is it possible to "tilt" or angle the text in a conky so that it goes in a specific direction, and, if so, how?

3. If I want to have multiple outputs on my desktop (a bar in one part, for example, and a bar in another) do I need to run multiple conky's?

Thanks in advance.


A world without what makes us, us. One without you or me.
A world with no differences, this is the world I see.

Offline

#1119 2011-02-05 02:39:15

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

Him wrote:

Hi all. Getting my hands dirty with Conky. I only have a few questions.

Now you have a few - later you'll have more.  big_smile

Him wrote:

1. How exactly can I get conky to a specific spot on my desktop?

Some good reading:
Above TEXT
Below TEXT

alignment
     Aligned position on screen, may be top_left, top_right, top_middle, bottom_left, bottom_right, bottom_middle, middle_left, middle_middle, middle_right, or none (also can be abreviated as tl, tr, tm, bl, br, bm, ml, mm, mr). See also gap_x and gap_y.

Example:

alignment tl        ### Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr

gap_x
     Gap, in pixels, between right or left border of screen, same as passing -x at command line, e.g. gap_x 10. For other position related stuff, see 'alignment'.

gap_y
     Gap, in pixels, between top or bottom border of screen, same as passing -y at command line, e.g. gap_y 10. For other position related stuff, see 'alignment'.

gap_x or gay_y as a positive number moves the conky towards the centre of the screen, a negative number off the screen.

Example:

gap_x 5             ### left &right
gap_y 30            ### up & down
Him wrote:

2. Is it possible to "tilt" or angle the text in a conky so that it goes in a specific direction, and, if so, how?

Not with pure conky commands.  But our friend wlourf has a LUA/Cairo script that does that.

Him wrote:

3. If I want to have multiple outputs on my desktop (a bar in one part, for example, and a bar in another) do I need to run multiple conky's?

No, if you make the conky big enough, but it is better if you do create multiple conkys.
For example, depending on how you configure the conky "above" TEXT you may not be able to "right click" on your conky.

Him wrote:

Thanks in advance.

Your welcome

Last edited by Sector11 (2011-02-05 02:39:56)

Online

#1120 2011-02-05 03:24:54

Him
#! Junkie
From: Here
Registered: 2010-03-31
Posts: 306
Website

Re: Conky Help

Sector11 wrote:
Him wrote:

2. Is it possible to "tilt" or angle the text in a conky so that it goes in a specific direction, and, if so, how?

Not with pure conky commands.  But our friend wlourf has a LUA/Cairo script that does that.

Am I able to create bar graphs that do this as well?

Also, would any of you know how to input text in the same line after an object (for example, a bar and then text after it)? If so, how can I get this to do such?

EDIT: Currently trying to get conky to be transparent, but without a comp. manager. I think I did this once, by faking it or some such way. Do any of you guys know?
Also, is it possible to remove the border of a bar graph?

Thanks, yet again.

Last edited by Him (2011-02-05 05:08:08)


A world without what makes us, us. One without you or me.
A world with no differences, this is the world I see.

Offline

#1121 2011-02-05 10:56:56

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,263

Re: Conky Help

Him wrote:
Sector11 wrote:
Him wrote:

2. Is it possible to "tilt" or angle the text in a conky so that it goes in a specific direction, and, if so, how?

Not with pure conky commands.  But our friend wlourf has a LUA/Cairo script that does that.

Am I able to create bar graphs that do this as well?

Yup - you can get bar graphs that go sideways (like a normal Conky bar), vertically, angled, backwards, and in arcs.  I think I've even seen trapezoidal graphs generated with Lua scripts.

Online

#1122 2011-02-05 11:30:10

wlourf
#! CrunchBanger
Registered: 2010-02-13
Posts: 153
Website

Re: Conky Help

pvsage wrote:

Yup - you can get bar graphs that go sideways (like a normal Conky bar), vertically, angled, backwards, and in arcs.  I think I've even seen trapezoidal graphs generated with Lua scripts.

Yep, an example of bars with text can be found here : http://wlourf.deviantart.com/#/d349j2l.
or in arcs , here :
http://wlourf.deviantart.com/gallery/25879046#/d2ssg2t
for this one, only cpu and memory are "bargraph", others are "pie-chart"

Offline

#1123 2011-02-05 11:30:37

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

@ wlourf - you beat me by seconds.

Last edited by Sector11 (2011-02-05 11:32:19)

Online

#1124 2011-02-05 11:32:30

wlourf
#! CrunchBanger
Registered: 2010-02-13
Posts: 153
Website

Re: Conky Help

btw, i've never seen  trapezoidal bars !

Offline

Be excellent to each other!

#1125 2011-02-05 12:12:28

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,263

Re: Conky Help

^ Maybe I was thinking of a 2.5D effect...

Online

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