conky manager 1.2.0.1 + deluxe theme pack

Post links to your 64bit module repos here. Repo maintainers are responsible for resolving any issues caused by their xzm's.
Post Reply
User avatar
freestyler
Contributor
Contributor
Posts: 382
Joined: 17 Oct 2013, 14:21
Distribution: Porteus KDE4
Location: Traveller
Contact:

conky manager 1.2.0.1 + deluxe theme pack

Post#1 by freestyler » 23 Mar 2014, 00:23

Image

Conky Manager is a graphical front-end for managing Conky config files. It provides options to start/stop, browse and edit Conky themes installed on the system. This module contains conky-1.9.0, Deluxe conky theme pack and all dependencies.

conky-manager website
conky deluxe theme pack website

App Version: 1.2.0.1
Category: Ultilites
Distribution: Porteus 3.0
Architecture: 64 bit
Contains all deps: Yes
Download: conky-manager-1.2.0.1-x86_64.xzm
https://www.porteus-apps.org

cttan
Shogun
Shogun
Posts: 332
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 64bit KDE
Location: Malaysia

Re: conky manager 1.2.0.1 + deluxe theme pack

Post#2 by cttan » 03 Apr 2014, 17:54

Hi freestyler,

I have downloaded kriss's conky with lua and without lua. I have also downloaded conky manager. But when I activate them, I am not able to get conky working beautifully as per conky manager preview. See attached for comparison between preview and my conky.
Image

Eventually I have used usm -g conky to download another copy with all the deps as well.
1. gtk+3-3.8.2-x86_64-2.xzm
2. at-spi2-atk-2.8.1-x86_64-1.xzm
3. at-spi2-core-2.8.0-x86_64-1.xzm
4. libXevie-1.0.3-x86_64-1.xzm
5. lua-5.1.5-x86_64-1alien.xzm
6. audacious-3.3.4-x86_64-1.xzm
7. audacious-plugins-3.3.4-x86_64-1.xzm
8. imlib2-1.4.5-x86_64-1ponce.xzm
9. tolua++-1.0.93-x86_64-1ponce.xzm

The lua module must be from alien repo. As I have tried using lua-5.1.5-x86_64-3sl.xzm and it is not working as expected.
You must create a symlink for lua as well:-

Code: Select all

ln -s /usr/lib64/liblua.so.5 /usr/lib64/liblua.so
With correct lua, you will get the clock and all the rings working. Make sure ~/.conky/clock01_rings.lua exist.

My conkyrc in ~/conky-manager/themes/4 & 2 core blue/config/
I tried not to change the script too much. The changes I have done is mostly in the weather section for voffset and script execution timing where I change from 10 minutes to 1 hour.

Code: Select all

# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #
own_window yes
own_window_type normal
own_window_transparent no
own_window_transparent no
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 5

minimum_size 250 300
maximum_width 250

alignment top_right
gap_x 10
gap_y 0

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius

default_color FFFFFF

# Lua Load  #
lua_load ~/.conky/clock01_rings.lua
lua_draw_hook_pre clock_rings

own_window_argb_visual no
own_window_colour 000000
TEXT
#----------------------------------------------------------------------------------------------------------------------------------------
#					         Time and date 
#----------------------------------------------------------------------------------------------------------------------------------------
${voffset 7}${font Radio Space:size=16}${color 0ABFFF}${time %A}${font}$color${font Radio Space:size=38}${goto 167}${voffset -8} ${time %e}${font}
${font Radio Space:size=18}${voffset -30}${time %b}${font}${voffset -3} ${font Radio Space:size=20}${time %Y}${font}${color 0ABFFF} ${hr 1}
#----------------------------------------------------------------------------------------------------------------------------------------
#					         Battery Circle 
#----------------------------------------------------------------------------------------------------------------------------------------
${color FFFFFF}${goto 209}${voffset 34}${battery_percent}%
${color 0ABFFF}${goto 202}${voffset 25}Battery
#----------------------------------------------------------------------------------------------------------------------------------------
#						Weather 
#----------------------------------------------------------------------------------------------------------------------------------------
#${font conkyweather:size=35}${color FFFFFF}${goto 200}${voffset 20}${execpi 6000  sed -n '2p' ~/.conky/accu_weather/rss/weather}$color${font}${font Radio Space:size=11}${color 0ABFFF}${goto 202}${voffset 12}Kuala Lumpur
#${execi 600 bash ~/.conky/accu_weather/rss/acc_rss}${font Radio Space:size=15}${goto 201}${voffset -4}${execpi 600 sed -n '1p' ~/.conky/accu_weather/rss/weather|awk '{print $NF}'}${font}$color
#${font caviar dreams:size=8}${goto 47}${voffset 5}Uptime: ${uptime_short}
${font conkyweather:size=35}${color FFFFFF}${goto 200}${voffset 30}${execpi 3600  sed -n '2p' ~/.conky/accu_weather/rss/weather}$color${font}${font Radio Space:size=11}${color 0ABFFF}${goto 150}${voffset 12}Kuala Lumpur
${execi 3600 bash ~/.conky/accu_weather/rss/acc_rss}${font Radio Space:size=15}${goto 201}${voffset 0}${execpi 3600 sed -n '1p' ~/.conky/accu_weather/rss/weather|awk '{print $NF}'}${font}$color
${font caviar dreams:size=8}${goto 47}${voffset -13}Uptime: ${uptime_short}
#----------------------------------------------------------------------------------------------------------------------------------------
#					           CPU usage 
#----------------------------------------------------------------------------------------------------------------------------------------
${color #0ABFFF}${hr 1}$color
${color #0ABFFF}${voffset 6}Temp: $color ${acpitemp}°C
${color #0ABFFF}${voffset 6}Processes:$color $processes	
${color #0ABFFF}${voffset 6}Running: $color  $running_processes${goto 116}${voffset 8}${cpu cpu0}% ${color 0ABFFF}${goto 116}${voffset 13}CPU1$color${goto 191}${voffset -12}${cpu cpu1}% ${color 0ABFFF}${goto 191}${voffset 12}CPU2$color
${color #0ABFFF}${voffset -12}FREQ:$color ${freq}MHz
${color #0ABFFF}${voffset 6}Load:$color ${loadavg}
#----------------------------------------------------------------------------------------------------------------------------------------
#						Network
#----------------------------------------------------------------------------------------------------------------------------------------
${color 0ABFFF}${voffset 2}${hr 1}
${color 0ABFFF}${voffset 5}Hostname: $color$alignr$nodename
${color 0ABFFF}wlan0: $color$alignr${addr wlan0}
${color 0ABFFF}Current: $color${alignr}${execi 10 /sbin/iwconfig wlan0|grep Rate|cut -d"M" -f1|cut -b20-24} Mbits/sec
${color 0ABFFF}eth0: $color$alignr${addr eth0}

${color #0ABFFF}Down: $color${downspeed wlan0} k/s ${alignr}${color #0ABFFF}Up:$color ${upspeed wlan0} k/s
${downspeedgraph wlan0 30,120 000000 0ABFFF} ${alignr}${upspeedgraph wlan0 30,120 000000 0ABFFF}$color
${color #0ABFFF}Total:$color ${totaldown wlan0} ${alignr}${color #0ABFFF}Total:$color ${totalup wlan0}
#----------------------------------------------------------------------------------------------------------------------------------------
#					DISK/RAM/SWAP usage
#----------------------------------------------------------------------------------------------------------------------------------------
${color 0ABFFF}${voffset 2}${hr 1}
${color FFFFFF}${goto 7}${voffset 39}${fs_used_perc /}%
${color 0ABFFF}${goto 7}DISK
${color FFFFFF}${goto 102}${voffset -27}${memperc}%
${color 0ABFFF}${goto 102}RAM
${color FFFFFF}${goto 192}${voffset -26}${swapperc}%
${color 0ABFFF}${goto 191}SWAP
#----------------------------------------------------------------------------------------------------------------------------------------
#					   Running processes
#----------------------------------------------------------------------------------------------------------------------------------------
${color 0ABFFF}${voffset 2} ${hr 1}
${color #0ABFFF}${voffset 5}NAME${goto 122}PID${goto 163}CPU%${goto 210}MEM%$color${voffset 5}
${top name 1}${goto 115}${top pid 1}${goto 160}${top cpu 1}${goto 205}${top mem 1}
${top name 2}${goto 115}${top pid 2}${goto 160}${top cpu 2}${goto 205}${top mem 2}
${top name 3}${goto 115}${top pid 3}${goto 160}${top cpu 3}${goto 205}${top mem 3}
${top name 5}${goto 115}${top pid 5}${goto 160}${top cpu 5}${goto 205}${top mem 5}
${top name 6}${goto 115}${top pid 6}${goto 160}${top cpu 6}${goto 205}${top mem 6}
${top name 7}${goto 115}${top pid 7}${goto 160}${top cpu 7}${goto 205}${top mem 7}
${top name 8}${goto 115}${top pid 8}${goto 160}${top cpu 8}${goto 205}${top mem 8}
#----------------------------------------------------------------------------------------------------------------------------------------
#					     Computer info
#----------------------------------------------------------------------------------------------------------------------------------------
${color 0ABFFF}${voffset 2}${hr 1}${voffset 5}
${color 0ABFFF}Hostname:$color${alignr}${nodename}
${color 0ABFFF}OS:$color${alignr}${pre_exec cat /etc/issue.net} $machine
${color 0ABFFF}Kernel:$color${alignr}${kernel}$color
#----------------------------------------------------------------------------------------------------------------------------------------
#						Logging
#----------------------------------------------------------------------------------------------------------------------------------------
${color 0ABFFF}${voffset 2}${hr 1}$color
${color 0ABFFF}${alignc}SYSLOG:$color
${color 0ABFFF}${voffset -5}${hr 1}$color
${voffset 5}${execi 10 tail -n6 /var/log/syslog | awk '{print " ",$5,$6,$7,$8,$9,$10}' | fold -w40}
In conky manager, there is a missing script for collecting the weather information. I have downloaded it and put as per conky manager original folder and name:-
~/.conky/accu_weather/rss/acc_rss

Code: Select all

#!/bin/bash

#function: test_image
test_image () {
    case $1 in
     1|01)
       echo a
     ;;
     2|02)
       echo b
     ;;
     3|03)
       echo c
     ;;
     4|04)
       echo c
     ;;
     5|05)
       echo c
     ;;
     6|06)
       echo d
     ;;
     7|07)
       echo e
     ;;
     8|08)
       echo e
     ;;
     11)
       echo 0
     ;;
     12)
       echo h
     ;;
     13|14)
       echo g
     ;;
     15)
       echo l
     ;;
     16|17)
       echo k
     ;;
     18|26)
       echo i
     ;;
     19)
       echo p
     ;;
     20|21|23)
       echo o
     ;;
     22)
       echo r
     ;;
     24|31)
       echo E
     ;;
     25)
       echo u
     ;;
     29)
       echo v
     ;;
     30)
       echo 5
     ;;
     32)
       echo 6
     ;;
     33)
       echo A
     ;;
     34|36|37)
       echo B
     ;;
     35|38)
       echo C
     ;;
     39|40)
       echo G
     ;;
     41|42)
       echo K
     ;;
     43|44)
       echo O
     ;;
    esac
} 

#put your accuweather rss address here
address="http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=WMKK"

killall wget
wget -O $HOME/.conky/accu_weather/rss/weather_raw $address


if [[ -s $HOME/.conky/accu_weather/rss/weather_raw ]]; then

    egrep 'Currently|Forecast<\/title>|_31x31.gif' $HOME/.conky/accu_weather/rss/weather_raw > $HOME/.conky/accu_weather/rss/weather
    sed -i '/AccuWeather\|Currently in/d' $HOME/.conky/accu_weather/rss/weather
    sed -i -e 's/^[ \t]*//g' -e 's/<title>\|<\/title>\|<description>\|<\/description>//g' $HOME/.conky/accu_weather/rss/weather
    sed -i -e 's/<img src="/\n/g' $HOME/.conky/accu_weather/rss/weather
    sed -i '/^$/d' $HOME/.conky/accu_weather/rss/weather
    sed -i -e 's/_31x31.*$//g' -e 's/^.*\/icons\///g' $HOME/.conky/accu_weather/rss/weather
    sed -i -e '1s/.$//' -e '3s/.$//' -e '6s/.$//' $HOME/.conky/accu_weather/rss/weather
    for (( i=2; i<=8; i+=3 ))
        do
            im=$(sed -n ${i}p $HOME/.conky/accu_weather/rss/weather)
            sed -i $i"s/^.*$/$(test_image $im)/" $HOME/.conky/accu_weather/rss/weather
        done

fi
I've just change the locCode to WMKK for Kuala Lumpur weather locale and set the unit to Celsius using metric=1.
If you prefer Fahrenheit then just remove metric=1.
Location codes can be obtained here:-
http://wwwa.accuweather.com/phoenix2/he ... iation.htm

Conky weather TTF must be in ~/.fonts/ConkyWeather.ttf for the correct icons(sun/cloudy/storm) to be displayed.

Command to load conky:-
conky -c '/root/conky-manager/themes/4 & 2 core blue/config/conkyrc2core'

Finally if everything is done correctly, you will get this:-
Image

User avatar
freestyler
Contributor
Contributor
Posts: 382
Joined: 17 Oct 2013, 14:21
Distribution: Porteus KDE4
Location: Traveller
Contact:

Re: conky manager 1.2.0.1 + deluxe theme pack

Post#3 by freestyler » 03 Apr 2014, 22:46

nice one cttan, cheers for the write up
https://www.porteus-apps.org

Post Reply