SEARCH

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

You are not logged in.

#1 2012-05-22 15:19:40

Vali
Member
Registered: 2012-01-28
Posts: 37

multiple conky problems

Hello! I think the post place!?
Use #! 10 and I have a problem with multiple conky. Not run at all. Conkyrc and conkyrc1 of home / xxxx / start_conky.sh
The message to click: "Can not ... (No such file or directory)." What can I do? sad

Offline

Help fund CrunchBang, donate to the project!

#2 2012-05-22 15:24:37

machinebacon
#! unstable
From: PRC
Registered: 2009-07-02
Posts: 6,212
Website

Re: multiple conky problems

Hello,

start_conky.sh

#!/bin/sh
conky -c ~/.config/conkyrc
conky -c ~/.config/conky1rc

check, where is conkyrc and conky1rc

chmod +x start_conky.sh

Try in terminal first.
Is it okay then?


Start Distrohopping here! -> Break your own... cool  VSIDO  cool LinuxCNC  kiss Frugalware <- It's all just a kernel.

Offline

#3 2012-05-22 15:44:40

Vali
Member
Registered: 2012-01-28
Posts: 37

Re: multiple conky problems

be and the setup?
.conkyrc

background no
Update interval in seconds
update_interval 1.0
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
#default_bar_size 70 10
#default_graph_size 70 10
double_buffer yes
no_buffers yes
text_buffer_size 1024
imlib_cache_size 0
own_window no
own_window_type override
own_window_transparent no
own_window_colour white
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 100
minimum_size 1400 1200
maximum_width 1024
max_user_text 90000
alignment tl
gap_x 0
gap_y 30
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
use_xft yes
# xftfont Trebuchet MS:bold:size=10
xftfont sans:style=Regular:size=7
xftalpha 1
if_up_strictness address
color1 D3D7CF
color2 3465A4
uppercase no

# http://conky.sourceforge.net/variables.htm
TEXT

.conkyrc1

# conky configuration
# edited by kaivalagi

# set to yes if you want Conky to be forked in the background
background no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:size=9

# Text alpha when using Xft
xftalpha 0.8

# Update interval in seconds
update_interval 5.0

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

# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
minimum_size 300 5
maximum_width 300

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

# own window options
own_window        yes
own_window_transparent    yes
own_window_type        override
own_window_hints    undecorated,below,sticky,skip_taskbar,skip_pager

# 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
# same thing as passing -x at command line
gap_x 1
gap_y 430

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

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

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

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

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# stuff after 'TEXT' will be formatted on screen

TEXT

nothing happens

Offline

#4 2012-05-22 15:49:31

machinebacon
#! unstable
From: PRC
Registered: 2009-07-02
Posts: 6,212
Website

Re: multiple conky problems

You have nothing to display in conky. After TEXT you need things smile

http://crunchbanglinux.org/forums/topic … ky-thread/

Have a look there.

Another thing:
If in start_conky.sh you have conky -c ~/.config/conky/conkyrc and conky ~/.config/conky/conkyrc1 , you have to save the two configuration files in ~/.config/conky/


Start Distrohopping here! -> Break your own... cool  VSIDO  cool LinuxCNC  kiss Frugalware <- It's all just a kernel.

Offline

#5 2012-05-22 15:58:03

Vali
Member
Registered: 2012-01-28
Posts: 37

Re: multiple conky problems

.conkyrc

${goto 46}${color2}${font Caviar Dreams:bold:size=18}${time %A}${font Caviar Dreams:bold:size=40}${goto 175} ${color2}${voffset 0}${time %d}${color2}
${color2}${voffset -55}${font Caviar Dreams:bold:size=24}${goto 46}${time %b}${font Caviar Dreams:bold:size=16}${goto 128}${color1}${voffset 6}${time %Y}${color2}
${voffset -60}${execpi 3600 /home/vali/.horical.sh}
${voffset -2}${goto 198}${color2}${hr 1}
${goto 198}${voffset -3}${color1}${font Tuffy:style=Italic:size=9}${execi 120 fortune -s ~/maxime | fold -w160}                                            
                                                                                                                                                                                                                                                                                
${goto 46}${voffset -19}${font Caviar Dreams:bold:size=24}${color2}${time %H}.${color1}${time %M}       
${goto 6}${color2}${font Caviar Dreams:bold:size=10}uptime            ${goto 100}${color1}${font mono:Bold:size=10}${uptime}                                  
${goto 6}${color2}${font Caviar Dreams:bold:size=10}cpu          ${goto 100}${color1}${font mono:Bold:size=10}${cpu cpu0} % / ${cpu cpu1} %     
${goto 6}${color2}${font Caviar Dreams:bold:size=10}mem         ${goto 100}${color1}${font mono:Bold:size=10}${mem} / ${memmax}                    
${goto 6}${color2}${font Caviar Dreams:bold:size=10}swap         ${goto 100}${color1}${font mono:Bold:size=10}${swap} / ${swapmax}                    


${goto 6}${color2}${font Caviar Dreams:bold:size=10}/root          ${goto 100}${color1}${font mono:Bold:size=10}${fs_used /} / ${fs_size /}
${goto 6}${color2}${font Caviar Dreams:bold:size=10}/home       ${goto 100}${color1}${font mono:Bold:size=10}${fs_used /home} / ${fs_size /home}
${goto 6}${color2}${font Caviar Dreams:bold:size=10}/sda4        ${goto 100}${color1}${font mono:Bold:size=10}${fs_used /media/sda4} / ${fs_size /media/sda4}                                                                                        
${goto 6}${color2}${font Caviar Dreams:bold:size=10}${if_mounted /media/usb0}/usb0  ${goto 100}${color1}${font mono:Bold:size=10}${fs_used /media/usb0} / ${fs_size /media/usb0} ${else}/usb0  ${goto 100}${color1}${font mono:Bold:size=10}Not Mounted${endif}


${goto 6}${color2}${font Caviar Dreams:bold:size=10}essid ${color1}${font mono:Bold:size=10}${wireless_essid wlan0} (${wireless_link_qual_perc wlan0} %)                            
${goto 6}${color2}${font Caviar Dreams:bold:size=10}g-mail ${color1}${execi 10 conkyEmail --servertype=IMAP --servername=imap.googlemail.com --username=xxxxxx --password=xxxxxx --ssl}${font}    ${goto 105}${voffset -4}${color2}${font Caviar Dreams:bold:size=10}yahoo ${voffset 0}${color1}${execi 10 conkyEmail --servertype=IMAP --servername=imap.mail.yahoo.com --port 993 --username=xxxxx --password=xxxxxx --ssl}${font}                                                                                                                 
${goto 6}${color2}${font Caviar Dreams:bold:size=10}update ${color1}${execi 3600 aptitude search "~U" | wc -l | tail} package (s)

and .conkyrc1

${goto 6}${color2}${font Caviar Dreams:bold:size=9}${execi 3600 python ~/.conkyGlobalWeather.py LRCL M I I S}                  
${goto 6}${color1}${voffset 2}${font Weather:size=36}${execi 3600 python ~/.conkyGlobalWeather.py LRCL M I I F}${font}   ${goto 60}${color2}${voffset -16}${font Caviar Dreams:bold:size=8}${execi 3600 python ~/.conkyGlobalWeather.py LRCL M I I T}    ${goto 140}${voffset 0}${font Caviar Dreams:bold:size=8}${execi 3600 python ~/.conkyGlobalWeather.py LRCL M I I C}   
${goto 6}${voffset 0}${color2}${font Caviar Dreams:bold:size=8}${execi 3600 python ~/.conkyGlobalWeather.py LRCL M I I D}           ${goto 140}${voffset 0}${font Caviar Dreams:bold:size=8}${execi 3600 python ~/.conkyGlobalWeather.py LRCL M I I W}                                                                                    

I added conkyrc1 in conkyrc, but does not appear and restart options for the weather. must give restart conky. just what I want to avoid
http://imgur.com/qE6TG

Last edited by Vali (2012-05-22 16:05:58)

Offline

#6 2012-05-22 16:07:47

machinebacon
#! unstable
From: PRC
Registered: 2009-07-02
Posts: 6,212
Website

Re: multiple conky problems

copy the files to a place you know. For example ~/

then try to start each conky:

conky -c ~/conkyrc
conky -c ~/conkyrc1

if it works, make start_conky.sh:

#!/bin/sh
conky -c ~/conkyrc &&
conky -c ~/conkyrc1 &&

save in ~/
then:

chmod +x start_conky.sh

then:

sh start_conky.sh

Start Distrohopping here! -> Break your own... cool  VSIDO  cool LinuxCNC  kiss Frugalware <- It's all just a kernel.

Offline

#7 2012-05-22 16:12:34

Vali
Member
Registered: 2012-01-28
Posts: 37

Re: multiple conky problems

hmm... neutral

┌────[vali@crunchbang]──────────────────────────────────────────────────────[19:09:53]────┐ 
└───>[/home/vali] $ chmod +x start_conky.sh
┌────[vali@crunchbang]──────────────────────────────────────────────────────[19:10:11]────┐ 
└───>[/home/vali] $ sh start_conky.sh
Conky: invalid configuration file '/home/vali/conkyrc'

Conky: /home/vali/.conkyrc: 2: no such configuration: 'Update'
Conky: desktop window (102) is root window
Conky: drawing to desktop window
Conky: drawing to double buffer
cat: /proc/acpi/battery/BAT0/state: No such file or directory
cat: /proc/acpi/battery/BAT0/state: No such file or directory
cat: /proc/acpi/battery/BAT0/state: No such file or directory
cat: /proc/acpi/battery/BAT0/state: No such file or directory
cat: /proc/acpi/battery/BAT0/state: No such file or directory
cat: /proc/acpi/battery/BAT0/state: No such file or directory

Offline

#8 2012-05-22 16:18:43

machinebacon
#! unstable
From: PRC
Registered: 2009-07-02
Posts: 6,212
Website

Re: multiple conky problems

OK, got it:

conkyrc file - remove the 2. line
"Update interval in seconds"

Please be careful: .conkyrc and conkyrc are not the same. Please check the file name: .conkyrc is a hidden file, conkyrc is not hidden.

Also, change the BAT0, it should be BAT1.


Start Distrohopping here! -> Break your own... cool  VSIDO  cool LinuxCNC  kiss Frugalware <- It's all just a kernel.

Offline

#9 2012-05-22 16:38:01

Vali
Member
Registered: 2012-01-28
Posts: 37

Re: multiple conky problems

after change

Conky: '/home/vali/.conkyrc' modified, reloading...
Conky: desktop window (102) is root window
Conky: drawing to desktop window
Conky: drawing to double buffer
cat: /proc/acpi/battery/BAT1/state: No such file or directory
cat: /proc/acpi/battery/BAT1/state: No such file or directory
cat: /proc/acpi/battery/BAT1/state: No such file or directory
Conky: '/home/vali/.conkyrc' modified, reloading...
Conky: desktop window (102) is root window
Conky: drawing to desktop window
Conky: drawing to double buffer
cat: /proc/acpi/battery/BAT1/state: No such file or directory
cat: /proc/acpi/battery/BAT1/state: No such file or directory
cat: /proc/acpi/battery/BAT1/state: No such file or directory

„cat: /proc/acpi/battery/BAT1/state: No such file or directory” - here even as I have no directory called battery and still working

Offline

#10 2012-06-01 18:05:20

Vali
Member
Registered: 2012-01-28
Posts: 37

Re: multiple conky problems

Hi! Back ... with ... news smile I managed to run two conkyrc files but ... I have other problems ... do not overlap well as calendar (. conky1rc) above. conkyrc?

http://i.imgur.com/rjNEZ.png

vali@crunchbang:~$ sh .start_conky.sh
WARNING: gnome-keyring:: couldn't connect to: /home/vali/.cache/keyring-8wYyD1/pkcs11: No such file or directory
Conky: forked to background, pid is 4941

WARNING: gnome-keyring:: couldn't connect to: /home/vali/.cache/keyring-8wYyD1/pkcs11: No such file or directory
Conky: use_spacer should have an argument of left, right, or none.  'yes' seems to be some form of 'true', so defaulting to right.
Conky: forked to background, pid is 4947
vali@crunchbang:~$ Conky: desktop window (aa) is root window
Conky: window type - desktop
Conky: drawing to created window (0x3400002)

Conky: drawing to double buffer
Conky: desktop window (aa) is root window
Conky: window type - normal
Conky: drawing to created window (0x3600001)
Conky: drawing to double buffer
vali@crunchbang:~$ 

Offline

#11 2012-06-01 18:40:48

machinebacon
#! unstable
From: PRC
Registered: 2009-07-02
Posts: 6,212
Website

Re: multiple conky problems

Hi Vali,

i think the best idea is to post your conky questions here: http://crunchbanglinux.org/forums/topic … ky-thread/

There it gets more attention from the experts wink


Start Distrohopping here! -> Break your own... cool  VSIDO  cool LinuxCNC  kiss Frugalware <- It's all just a kernel.

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.

Debian Logo