topic title: Conky configuration
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#46
I usually make a new directory named /home/harry/Backups. Any Text files I wish to edit from /etc/fstab, /etc/X11/xorg.conf.d, and .conkyrc. The originals get copied into that folder as a safety net. I do this after every install out of habit now.

Learned this the hard way way back when.
Posts: 299
Cuttlefish
Joined: 18 Dec 2008
#47
roky, when you save something as a backup, how do you save it? What type of file and what application do you use?
Posts: 299
Cuttlefish
Joined: 18 Dec 2008
#48
Thinking about this I must use nano. If I go into the terminal and type nano .conkyrc, the .conkyrc will open up in nano. I'm just not sure how to paste it to a file. Or of course I could be completely wrong. __{{emoticon}}__

To save do I use the CTRL o combination?
Last edited by Cuttlefish on 03 Oct 2011, 00:55, edited 1 time in total.
Posts: 117
buttcoffee
Joined: 20 Aug 2010
#49
I think he just adds .backup to the end or something when he backs up duplicate files. That's how i've seen him do it before.

Now for my amazing conky config. It's so bland that it's amazing. I copied it from someone else but I forgot who.

Image
Posts: 299
Cuttlefish
Joined: 18 Dec 2008
#50
Thanks buttcoffee. By the way, that's some interesting wallpaper you've got there!!!! __{{emoticon}}__ __{{emoticon}}__

Edit: I don't think I understand quite what to do?
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#51
roky, when you save something as a backup, how do you save it? What type of file and what application do you use? Edit: I don't think I understand quite what to do?
Easy way in terminal . You gotta use sux though if copying and backing up anything in / directories though like /etc/fstab and such. Also it is a good idea to backup .xinitrc also. Note the .bk stands for backup.

Code: Select all

cp /home/harry/.conkyrc. /home/harry/Backups/conkyrc.bk
so I can see it or you can do it this way to keep backup in same directory (instead of Backups folder)

Code: Select all

cp /home/harry/.conkyrc /home/harry/.conkyrc.bk
substitute harry for your user name.


__{{emoticon}}__
Posts: 299
Cuttlefish
Joined: 18 Dec 2008
#52
Thanks roky. That was a good exercise in understanding file structure too. __{{emoticon}}__ Those are the kinds of things I really need to focus on. Being proficient at changing wallpaper, like I am, can only get one so far. __{{emoticon}}__ __{{emoticon}}__

I know that I've been exposed to solutions like that before, but I'm never really ready to understand them until I'm ready to understand them. Ya' know? Thanks for being patient.

Dave
Posts: 299
Cuttlefish
Joined: 18 Dec 2008
#53
Here goes it folks. Thank you okiipapasan for the .conkyrc.
It's still a work in progress. I already see a few things I need to fix, but I think it looks pretty cool.

Dave

Hey, the things I needed to fix repaired themselves at reboot...Love it when that happens. __{{emoticon}}__
Posts: 173
DeepDayze
Joined: 09 Sep 2011
#54
Nice desktop Cuttlefish...very well done!

Thinking of trying to replicate AntiX using a 64 bit base so that I can have a 64 bit system that FLIES __{{emoticon}}__
Posts: 299
Cuttlefish
Joined: 18 Dec 2008
#55
Nice desktop Cuttlefish...very well done!
Thanks, but I really just lifted it. Nothing original. __{{emoticon}}__
Dave
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#56
Simple, elegant, pleasing to the eye and informative. No lua on this one.

Link to screenshot
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://i41.tinypic.com/fxglx.jpg"
linktext was:"http://i41.tinypic.com/fxglx.jpg"
====================================

Code: Select all

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

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
 font 8x12
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont gentium:size=10

own_window_transparent yes
own_window_colour black
own_window_type desktop

# Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
own_window yes

# Text alpha when using Xft
xftalpha 0.8

#on_bottom no

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1

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

# Minimum size of text area
minimum_size 10 10
maximum_width 300
max_user_text 90000

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 10

# border width
border_width 2

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

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

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

# Subtract file system buffers from used memory?
no_buffers yes

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

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
#      Variable         Arguments                  Description                
#  acpiacadapter                     ACPI ac adapter state.                   
#  acpifan                           ACPI fan state                           
#  acpitemp                          ACPI temperature.                        
#  adt746xcpu                        CPU temperature from therm_adt746x       
#  adt746xfan                        Fan speed from therm_adt746x             
#  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           
#  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               
#
#  seti_prog                         Seti@home current progress
#  seti_progbar      (height)        Seti@home current progress bar
#  seti_credit                       Seti@hoome total user credit
## antiX additives examples. Add below Text##
##${color cccccc}battery: ${color cccccc}$acpiacadapter, ${battery_percent BAT1}% 
##${color}battery:${color} ${battery}
##Witeless example##
#${color cccccc}Wireless:
#${color cccccc}essid: ${wireless_essid wlan0}
#${color cccccc}IP:${color cccccc} ${addr wlan0}
#${color cccccc}speed: ${color cccccc} ${wireless_bitrate wlan0}
#${color cccccc}link strength: ${color cccccc} ${wireless_link_bar 7,50 wlan0}

# stuff after 'TEXT' will be formatted on screen

TEXT
${image /home/harry/Icons/antix-logo.png 105x85}
${color}AntiX-M11-base-686 Fluxbox
${color}$sysname $kernel
${color}Kernel:${exec /home/harry/Documents/kernelname}
${color}Uptime: $uptime
${color}${time %a %d %b %k:%M}
${color}Monitors:
${color}Cpu: ${color}${cpu}%
${color}Fan: ${color}${hwmon fan 1}
${color}Temp: ${color} ${hwmon temp 1}C
${color}Ram : ${color}$mem${color}/${color}$memmax ${color}- ${color}$memperc%
${color}Swap: ${color}$swap${color}/${color}$swapmax ${color}- ${color}$swapperc%
${color}Processes: ${color}$processes  ${color}running: ${color}$running_processes
${color}Link Strength: ${color} ${wireless_link_bar 7,50 wlan0}
${color}Root:${color} ${fs_free /} ${color}= ${fs_free_perc /}%
${execi 300 /home/harry/.weather.sh 79772}
kernelname script

Code: Select all

#! /bin/bash
#
[ -h /usr/src/linux ] && namesource=`readlink /usr/src/linux`
name=`grep NAME /usr/src/$namesource/Makefile | cut -c 8-`
echo $name
exit
.weather.sh script

Code: Select all

#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#Requires curl and perl.
#USAGE: weather.sh <locationcode>
#
#(c) Michael Seiler 2007

METRIC=0 #Should be 0 or 1; 0 for F, 1 for C

if [ -z $1 ]; then
    echo
    echo"USAGE: weather.sh <79772>"
    echo
    exit 0;
fi

curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print"$1"; }'
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#57
rokytnji wrote:Simple, elegant, pleasing to the eye and informative. No lua on this one.
and the conky is too! __{{emoticon}}__
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#58
Playing with the old IBM T23 AntiX 8.5 Full I686 with Fluxbox only and Tint2 panel .

Screenshot:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://i44.tinypic.com/nld6r8.jpg"
linktext was:"http://i44.tinypic.com/nld6r8.jpg"
====================================


Just installed byteonpanel from

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://bitbucket.org/mozbugbox/byteonpanel/overview"
linktext was:"https://bitbucket.org/mozbugbox/byteonpanel/overview"
====================================

which shows in screenshot under the clock in tint2.

~/.config/tint2/tint2rc

Code: Select all

.#---------------------------------------------
# TINT2 CONFIG FILE mouseover
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
#1 panel background
rounded = 7
border_width = 1
#background_color = #002050 00
background_color = #000510 70
#background_color = #404040 20
border_color = #ffffff 18

#2 active window
rounded = 5
border_width = 1
background_color = #ffffff 18
border_color = #ffff00 100

#3 normal window
rounded = 5
border_width = 2
background_color = #ffffff 18
border_color = #ffffff 0

#4 urgent window
rounded = 5
border_width = 0
background_color = #ba5d00 100
border_color = #ffffff 50

#5 systray
rounded = 2
border_width = 0
background_color = #000000 0
border_color = #ffffff 40

#6 hovered window
rounded = 5
border_width = 1
background_color = #ffffff 18
border_color = #ffffff 100

#7 hovered active window
rounded = 5
border_width = 1
background_color = #ffffff 18
border_color = #aaaa55 100

#8 hovered urgent window
rounded = 5
border_width = 1
background_color = #ba5d00 100
border_color = #ffffff 100

#9 tooltip background
rounded = 7
border_width = 1
background_color = #000000 0
border_color = #ffffff 18

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_items = CSTL
panel_monitor = all
panel_position = bottom right vertical
#panel_position = bottom right horizontal
panel_size = 100% 152
panel_margin = 0 0
panel_padding = 5 0
font_shadow = 0
panel_background_id = 1
wm_menu = 1
panel_dock = 0
strut_policy = follow_size
#strut_policy = none
panel_layer = top

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = multi_desktop
taskbar_padding = 2 3 2
taskbar_background_id = 0

taskbar_name = 1
taskbar_name_padding = 6 3
taskbar_name_font = Liberation Sans 8
taskbar_name_font_color = #ffffff 100
taskbar_name_active_font_color = #ffffff 100
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 1
task_maximum_size = 140 35
task_centered = 1
task_padding = 6 3
task_font = Liberation Sans 8
task_font_color = #ffffff 100
task_background_id = 3
task_icon_asb = 100 0 0
# replace STATUS by 'urgent', 'active' or 'iconfied'
#task_STATUS_background_id = 2
#task_STATUS_font_color = #ffffff 85
#task_STATUS_icon_asb = 100 0 0
# example:
task_active_background_id = 2
task_urgent_background_id = 4
# use STATUShovered for mouseover effects
task_normalhovered_background_id = 6
task_activehovered_background_id = 7
task_urgenthovered_background_id = 8
urgent_nb_of_blink = 100000

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 4 4 4
systray_background_id = 5
systray_sort = left2right
# maximum icon size
systray_icon_size = 28
systray_icon_asb = 100 0 0

#---------------------------------------------
# APPLICATION LAUNCHER
#---------------------------------------------
launcher_padding = 2 4 2
launcher_background_id = 5
# Icon size
launcher_icon_size = 32

# Each launcher_item_app must be a full path to a .desktop file
launcher_item_app = /usr/share/applications/iceape-mailnews.desktop

launcher_item_app = /usr/share/applications/iceape-navigator.desktop
launcher_item_app = /usr/share/applications/iron.desktop

launcher_item_app = /usr/share/applications/geany.desktop

launcher_item_app = /usr/share/applications/gimp.desktop

launcher_item_app = /usr/share/applications/vlc.desktop
launcher_item_app = /usr/share/applications/gksu.desktop

launcher_item_app = /usr/share/applications/roxterm.desktop

launcher_item_app = /usr/share/applications/Thunar.desktop

launcher_item_app = /usr/share/applications/rox-filer.desktop
#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %H:%M
time1_font = sans bold 9
time2_format = %A %d %B
time2_font = Liberation Sans 8
clock_font_color = #ffffff 90
clock_padding = 1 0
clock_background_id = 0
clock_lclick_command = korganizer
clock_rclick_command = zenity --calendar --text""
clock_tooltip = %A %0d %B %Y %nWeek %W
#time1_timezone = :US/Hawaii
#time2_timezone = :Europe/Berlin
#clock_tooltip_timezone = :/usr/share/zoneinfo/Europe/Paris

#---------------------------------------------
# BATTERY
#---------------------------------------------
#battery = 0
#battery_hide = 80
#battery_low_status = 10
#battery_low_cmd = notify-send -u critical -t 1000000 -i battery-caution"Low battery""Level: 10%"
#bat1_font = sans 8
#bat2_font = sans 6
#battery_font_color = #ffaa00 100
#battery_padding = 1 0
#battery_background_id = 0

#---------------------------------------------
# TOOLTIP
#---------------------------------------------
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.3
tooltip_hide_timeout = 0.1
tooltip_background_id = 9
tooltip_font_color = #ffffcc 100
tooltip_font = Sans 8

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#---------------------------------------------
# AUTOHIDE OPTIONS
#---------------------------------------------
autohide = 1
autohide_show_timeout = 0.1
autohide_hide_timeout = 0.1
autohide_height = 2
~/.conkyrc

Code: Select all

# stuff after 'TEXT' will be formatted on screen
##TEXT

background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 250
maximum_width 200
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
#default_color FFFF00
#default_color C0C0C0
#default_color F5F5F5
#default_color FF69B4
#default_color black
#default_color grey
#default_color red
#default_color tan2
#default_color dimgrey
#default_color CCCC33
#default_color 800000
#default_color 99FF99
#default_color 99FFFF
default_shade_color black
default_outline_color white
#alignment top_right
alignment top_left
gap_x 12
gap_y 80
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
${font sans-serif:bold:size=8}LINUX BIKER
${font sans-serif:bold:size=8}SYSTEM ${hr 2}
${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
Time: ${time %a %d %b %l:%M:%S%p}
Uptime:$alignr$uptime
File System: $alignr${fs_type}
Weather: ${execi 300 /home/harry/.weather.sh 79772}
Battery: ${battery_bar 8,80 BAT0} ${execi 1 /home/harry/.battery.sh}
LAPPY TEMP:  ${acpitemp}c
${font sans-serif:bold:size=8}PROCESSORS ${hr 2}
${font sans-serif:normal:size=8}${cpugraph cpu1}
CPU1: ${cpu cpu1}% ${cpubar cpu1}

${font sans-serif:bold:size=8}MEMORY ${hr 2}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
${font sans-serif:bold:size=8}DISKS ${hr 2}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
${font sans-serif:normal:size=8}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}%
${fs_bar /home}
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
${font sans-serif:bold:size=8}TOP PROCESSES ${hr 2}
${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %

${font sans-serif:bold:size=8}NETWORK ${hr 2}
${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}
#${font sans-serif:normal:size=8}IP address: $alignr ${addr wlan0}
#ESSID: $alignr ${wireless_essid wlan0}
Connection quality: $alignr ${wireless_link_qual_perc wlan0}%
${downspeedgraph wlan0}
DLS:${downspeed wlan0} kb/s $alignr total: ${totaldown wlan0}
${upspeedgraph wlan0}
ULS:${upspeed wlan0} kb/s $alignr total: ${totalup wlan0}
Right now. I launch byteonpanel in tint2 manually (I just installed it to see if it works in tint2) by left clicking in rox file mnager
~/byteonpanel-0.1.0/byteonpanel.py

and seen in screenshot. It launches and works in tint2 panel. I have tint2 panel set to autohide till I mouse over on it also.

Struggling with figuring out how to auto-launch , byteonpanel.py, with slim login into fluxbox and have it autostart in tint2. Still learning
Posts: 299
Cuttlefish
Joined: 18 Dec 2008
#59
Really cool roky.

Is there a pc you haven't tried and configured antiX? __{{emoticon}}__
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#60
Cuttlefish wrote:Really cool roky.

Is there a pc you haven't tried and configured antiX? __{{emoticon}}__
It is the only way I can learn anything new is by tinkering, maybe even breaking my installs, but sometimes I get a flash of a idea on how to do something I can't even find on the net on how to do something.

Update: after sleeping on it. You know how you gnaw on a problem in your mind while you dream.
I figured out how to try and get a static .py to autostart in fluxbox.

I moved the byteonpanel-0.1.0 folder to /opt first in rox file manager from ~/byteonpanel-0.1.0 using root terminal to open rox file manager as root. Just drag and drop with 2 root rox file managers open.

The I opened /opt/byteonpanel-0.1-.0 to see the byteonpanel.py. I went to the other root rox file manager window and maneuvered to /usr/bin. I dragged and dropped the /opt/byteonpanel-0.1-.0/ byteonpanel.py to /usr/bin and picked symlink (relative)

closed everything. Went to add startup in my menu (I added this in AntiX 8.5 menu a long time ago).

added into ~//fluxbox/startup text file.

Code: Select all

#Here is where we start byteonpanel.py
sleep 2 && byteonpanel.py &
__{{emoticon}}__