Pwidgets/Conky, a question

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

Pwidgets/Conky, a question

#1 Post by DaveS »

Pwidgets, whilst a brilliant piece of work, does not work for me quite as well as Conky. In 4.2, I can turn off Pwidgets via the gui, and load conky using conky -d in .xinitrc, but

Code: Select all

xli -fillscreen -onroot /root/Choices/ROX-background.jpg 
to set the background for conky does not work. What am I missing? I HAVE put the .jpg file in the path and re-named to ROX-background.jpg.
Conky displays just fine, but with a black background instead of pseudo-transparency.
Spup Frugal HD and USB
Root forever!

User avatar
`f00
Posts: 807
Joined: Thu 06 Nov 2008, 19:13
Location: the Western Reserve

#2 Post by `f00 »

mm, conky was fine before or is this a new /root/.conkyrc file? (yep, I cheat regular and recycle old ones to start with ..)

You might try override in the .conkyrc after
# If own_window is yes, you may use type normal, desktop or override
own_window_type override

I dither between using the menu->system->conky, .xinitrc or a /root/Startup/<script> to do the job depending .. never bothered too much with setting the bg manually but conky does sometimes need a delay if the bg is not quick to be drawn (it takes whatever is available and if wallpapersetter was used that should be the Rox bg as indicated)

Did you also get rid of the /root/Startup/pwidgets dingus? As I recall it put a sizeable .png in ../backgrounds dir and did odd things with curtain fx and all that .. hth

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#3 Post by 01micko »

DaveS

What /root/.conkyrc are you using since there is not one in 4.2.1?

Patriot recompiled conky with a roxdesktop option especially for Pwidgets. You could try that option and see what happens.

*own_window_type roxdesktop*

It will be interesting to see the result.

Cheers
Puppy Linux Blog - contact me for access

User avatar
`f00
Posts: 807
Joined: Thu 06 Nov 2008, 19:13
Location: the Western Reserve

#4 Post by `f00 »

Since widgets are fairly closely related :) .. it may likely not even be needful to include the xli line as in the instruction for conky-1.6.1 (have run across that in setting blackbox bg, it'll do fine with a rox -p=Default or what ever works for a bg). Or widgetize your old conky :lol:

aye, once upon a time there was ;) sláinte

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#5 Post by DaveS »

Thanks for the replies. *own_window_type roxdesktop* works in .conkyrc to set pseudo-transparency thanks 01micko, and starting from a scrippt /root/startup loads it correctly. Loading from .xinitrc does not thanks 'foo, so I now have it working as it should. I use a .conkyrc that I put together a while ago for 4.1. After all, why re-invent the wheel .........
Spup Frugal HD and USB
Root forever!

User avatar
Tweenman
Posts: 19
Joined: Mon 27 Oct 2008, 22:05

reply: 01micko

#6 Post by Tweenman »

Soo, how do I make the normal .conkyrc type edits?

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

Re: reply: 01micko

#7 Post by DaveS »

Tweenman wrote:Soo, how do I make the normal .conkyrc type edits?
Not quite sure what you mean? Just edit the hidden file /root/.conkyrc using Geany. Here is a copy of the file I use:

Code: Select all

# torsmo configuration

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

# X font used, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font Fixed
# font *mintsmild.se*
# font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
use_xft yes
xftfont Fixed:Bold SemiCondensed:size=12

# Text alpha when using Xft
xftalpha 0.5

# mail spool
# mail_spool $MAIL

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

# If own_window is yes, you may use type normal, desktop or override
own_window_type override

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use pseudo transparency with own_window?
own_window_transparent yes

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

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

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

# Update interval in seconds
update_interval 5.0

# Minimum size of text area
minimum_size 160 5

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 2

# 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 red

# 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 6
gap_y 6

# Subtract file system buffers from used memory?
no_buffers yes

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

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

# Possible variables to be used:
#
#      Variable         Arguments                  Description                
#  acpiacadapter                     ACPI ac adapter state.                   
#  acpifan                           ACPI fan state                           
#  acpitemp                          ACPI temperature.                        
#  battery           (num)           Remaining capasity in ACPI or APM        
#                                    battery. ACPI battery number can be      
#                                    given as argument (default is BAT0).     
#  buffers                           Amount of memory buffered                
#  cached                            Amount of memory cached                  
#  color             (color)         Change drawing color to color            
#  cpu                               CPU usage in percents                    
#  cpubar            (height)        Bar that shows CPU usage, height is      
#                                    bar's height in pixels                   
#  downspeed         net             Download speed in kilobytes              
#  downspeedf        net             Download speed in kilobytes with one     
#                                    decimal                                  
#  exec              shell command   Executes a shell command and displays    
#                                    the output in torsmo. warning: this      
#                                    takes a lot more resources than other    
#                                    variables. I'd recommend coding wanted   
#                                    behaviour in C and posting a patch :-).  
#  execi             interval, shell Same as exec but with specific interval. 
#                    command         Interval can't be less than              
#                                    update_interval in configuration.        
#  fs_bar            (height), (fs)  Bar that shows how much space is used on 
#                                    a file system. height is the height in   
#                                    pixels. fs is any file on that file      
#                                    system.                                  
#  fs_free           (fs)            Free space on a file system available    
#                                    for users.                               
#  fs_free_perc      (fs)            Free percentage of space on a file       
#                                    system available for users.              
#  fs_size           (fs)            File system size                         
#  fs_used           (fs)            File system used space                   
#  hr                (height)        Horizontal line, height is the height in 
#                                    pixels                                   
#  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
#                                    may be omitted if you have only one I2C  
#                                    device. type is either in (or vol)       
#                                    meaning voltage, fan meaning fan or temp 
#                                    meaning temperature. n is number of the  
#                                    sensor. See /sys/bus/i2c/devices/ on     
#                                    your local computer.                     
#  kernel                            Kernel version                           
#  loadavg           (1), (2), (3)   System load average, 1 is for past 1     
#                                    minute, 2 for past 5 minutes and 3 for   
#                                    past 15 minutes.                         
#  machine                           Machine, i686 for example                
#  mails                             Mail count in mail spool. You can use    
#                                    program like fetchmail to get mails from 
#                                    some server using your favourite         
#                                    protocol. See also new_mails.            
#  mem                               Amount of memory in use                  
#  membar            (height)        Bar that shows amount of memory in use   
#  memmax                            Total amount of memory                   
#  memperc                           Percentage of memory in use              
#  new_mails                         Unread mail count in mail spool.         
#  nodename                          Hostname                                 
#  outlinecolor      (color)         Change outline color                     
#  pre_exec          shell command   Executes a shell command one time before 
#                                    torsmo displays anything and puts output 
#                                    as text.                                 
#  processes                         Total processes (sleeping and running)   
#  running_processes                 Running processes (not sleeping),        
#                                    requires Linux 2.6                       
#  shadecolor        (color)         Change shading color                     
#  stippled_hr       (space),        Stippled (dashed) horizontal line        
#                    (height)        
#  swapbar           (height)        Bar that shows amount of swap in use     
#  swap                              Amount of swap in use                    
#  swapmax                           Total amount of swap                     
#  swapperc                          Percentage of swap in use                
#  sysname                           System name, Linux for example           
#  temp1                             Temperature #1 from i2c-sensors, same as 
#                                    ${i2c temp 1}                            
#  temp2                             Temperature #2 from i2c-sensors, same as 
#                                    ${i2c temp 2}                            
#  time              (format)        Local time, see man strftime to get more 
#                                    information about format                 
#  totaldown         net             Total download, overflows at 4 GB on     
#                                    Linux with 32-bit arch and there doesn't 
#                                    seem to be a way to know how many times  
#                                    it has already done that before torsmo   
#                                    has started.                             
#  totalup           net             Total upload, this one too, may overflow 
#  updates                           Number of updates (for debugging)        
#  upspeed           net             Upload speed in kilobytes                
#  upspeedf          net             Upload speed in kilobytes with one       
#                                    decimal                                  
#  uptime                            Uptime                                   
#  uptime_short                      Uptime in a shorter format               


# 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
#$nodename
#${font DejaVu Sans:book:size=12}$sysname $kernel $alignr $machine
#${color grey}New Mail:${color red}                 ${new_mails /root/.mozilla/default/n44rjsz7.slt/Mail/pop.freeuk.net/Inbox}

TEXT
${color grey}New Mail:${color yellow}                       ${new_mails /root/.mozilla/default/n44rjsz7.slt/Mail/pop.freeuk.net/Inbox}
${color grey}Networking:   ${wireless_essid wlan0}
${color grey}IP: ${color} ${addr wlan0} ${color grey}wifi signal: ${color green} ${wireless_link_qual_perc wlan0} 
${color grey}Down:$color ${downspeed wlan0} k/s -       ${color grey}Up:$color ${upspeed wlan0} k/s
${color #888888}${downspeedgraph wlan0 25,100 ff0000 0000ff}      ${color #888888}${upspeedgraph wlan0 25,100 0000ff ff0000}
${color blue}$hr
${color grey}Processes:$color $processes
${color grey}CPU Usage:$color $cpu%
         ${color grey}${cpubar 3}
${color grey}Save File
          $color${fs_free /}  /${fs_size /}   
         ${color grey}${fs_bar 3 /}
${color red}$hr
${color grey}Uptime:   $color $uptime
${color #ddd}Battery:  $color ${battery}
${color green}$hr$color
$sysname $kernel on $machine
${color yellow}$hr 

Setting up conky the way you want is a big subject that Pwidgets addresses pretty well, but some prefer the basic conky display, like me (mostly).
Spup Frugal HD and USB
Root forever!

User avatar
Tweenman
Posts: 19
Joined: Mon 27 Oct 2008, 22:05

#8 Post by Tweenman »

I know where its supposed to be, its not there.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#9 Post by 01micko »

I know where its supposed to be, its not there.
Ok, using 4.2x are you? There isn't one. Google for one or download a conky version and don't install it. Rename it to conky-1.61.pet.tar.gz (for example), open it with Xarchiver (just click on it), it will spit out an error, ignore it, find the 'root' folder and .conkyrc should be in there, copy it to your root directory, edit it to suit your self, , start conky from a terminal and away you go.

OR

Copy and paste the entire contents of the one above, which DaveS kindly supplied, to you favorite text editor, save it in /root as '.conkyrc'. Don't forget the dot.

Hope that helps
Puppy Linux Blog - contact me for access

Post Reply