From: Creamy Goodness Date: Mon, 6 Sep 2010 21:17:47 +0000 (-0600) Subject: changes to fix compilation under maemo5 - provided by Darren Long X-Git-Url: https://vcs.maemo.org/git/?p=monky;a=commitdiff_plain;h=9a0b29ec1f8a844e2ad24f6d4383de0f0792f31b changes to fix compilation under maemo5 - provided by Darren Long --- diff --git a/debian/conky.conf b/debian/conky.conf new file mode 100644 index 0000000..f58adbb --- /dev/null +++ b/debian/conky.conf @@ -0,0 +1,83 @@ +# Conky, a system monitor, based on torsmo +# +# Any original torsmo code is licensed under the BSD license +# +# All code written since the fork of torsmo is licensed under the GPL +# +# Please see COPYING for details +# +# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen +# Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) +# All rights reserved. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# $Id: conky.conf 1193 2008-06-21 20:37:58Z ngarofil $ + +alignment top_left +background no +maximum_width 800 +border_width 1 +cpu_avg_samples 2 +default_color white +default_outline_color white +default_shade_color white +draw_borders no +draw_graph_borders yes +draw_outline no +draw_shades no +use_xft yes +xftfont Droid Sans Mono:size=11 +xftalpha 0.8 +double_buffer yes +gap_x 20 +gap_y 60 +minimum_size 5 5 +net_avg_samples 2 +no_buffers yes +out_to_console no +own_window yes +own_window_class Conky +own_window_type normal +own_window_transparent yes +own_window_hints below,sticky +stippled_borders 0 +update_interval 3.0 +uppercase no +use_spacer none +show_graph_scale no +show_graph_range no + +TEXT +$alignc $nodename - $sysname $kernel on $machine ${color yellow}Uptime:$color $uptime +${color ff8a00}$stippled_hr +${color yellow}Frequency:$color $freq MHz $alignc ${color yellow}Load:$color $loadavg $alignr ${color yellow}Processes:$color $processes ${color yellow}Running:$color $running_processes +${color yellow}CPU Usage:$color${goto 110}$cpu% ${goto 350}${color red}${cpubar 10} +${color yellow}CPU:${color black}${cpugraph 16,300 ff0000 ff0000}${color yellow} Lo:${color black}${loadgraph 1 16,105 ffe400 ffe400}${color yellow} Dio:${color black}${diskiograph /dev/mmcblk0 16,105 00ff00 00ff00}${color yellow} Mem:${color black}${memgraph 16,105 ff0000 ff0000} +${color yellow}RAM Usage:$color${goto 110}$mem${goto 190}| $memmax${goto 310}$memperc%${goto 350}${color green}${membar 10} +${color yellow}Swap Usage:$color${goto 110}$swap${goto 190}| $swapmax${goto 310}$swapperc%${goto 350}${color green}${swapbar 10} +${color ff8a00}$stippled_hr +${color yellow}rootfs${goto 110}$color${fs_free /}${goto 190}| ${fs_size /} ${color grey}${goto 310}free${goto 350}${color green}${fs_bar 10 /} +${color yellow}home${goto 110}$color${fs_free /home}${goto 190}| ${fs_size /home} ${color grey}${goto 310}free${goto 350}${color green}${fs_bar 10 /home} +${if_mounted /home/user/MyDocs}${color yellow}MyDocs${goto 110}$color${fs_free /home/user/MyDocs}${goto 190}| ${fs_size /home/user/MyDocs} ${color grey}${goto 310}free${goto 350}${color green}${fs_bar 10 /home/user/MyDocs}$endif +${if_mounted /media/mmc1}${color yellow}mmc1${goto 110}$color${fs_free /media/mmc1}${goto 190}| ${fs_size /media/mmc1} ${color grey}${goto 310}free${goto 350}${color green}${fs_bar 10 /media/mmc1}$endif +${color ff8a00}$stippled_hr +${if_up gprs0}${color yellow}gprs0: ${color yellow}Up:$color ${upspeed gprs0} kB/s${color grey} - ${color yellow}Down:$color ${downspeed gprs0} kB/s $else${color yellow}gprs0: ${color red} Not Connected$endif +${if_empty ${wireless_essid wlan0}}${color yellow}wlan0: ${color red}Not Connected $else${color yellow}wlan0 ESSID: $color${wireless_essid wlan0} ${color yellow}Rate: ${color}${wireless_bitrate wlan0} ${color yellow}Connection Quality: $color${wireless_link_qual_perc wlan0}% ${color yellow}Up:$color ${upspeed wlan0} kB/s ${color grey} - ${color yellow}Down:$color ${downspeed wlan0} kB/s $endif +${if_up gprs0}${color yellow}gprs0 Up: ${color black}${upspeedgraph gprs0 20,290 ff0000 00ff00}$alignr${color yellow}gprs0 Down: ${color black}${downspeedgraph gprs0 20,290 00ff0000 ff0000}$else${if_empty ${wireless_essid wlan0}}$else${color yellow}wlan0 Up: ${color black}${upspeedgraph wlan0 20,290 00ff00 ff0000}$alignr${color yellow}wlan0 Down: ${color black}${downspeedgraph wlan0 20,290 ff0000 00ff00}$endif$endif +${color ff8a00}$stippled_hr +${color lightgrey}Name PID CPU% MEM% +${color #ff6000} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} +${color #ffa800} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} +${color #fffc2a} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} +${color #24ff00} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} \ No newline at end of file diff --git a/debian/conky.desktop b/debian/conky.desktop new file mode 100644 index 0000000..4021fe0 --- /dev/null +++ b/debian/conky.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=Conky +Icon=conky +Exec=/usr/bin/conky.sh +Type=Application diff --git a/debian/conky.sh b/debian/conky.sh new file mode 100644 index 0000000..34f071e --- /dev/null +++ b/debian/conky.sh @@ -0,0 +1,8 @@ +#! /bin/sh +x + +if [ -e /home/user/MyDocs/conky.conf ] +then + `which conky` -d -c /home/user/MyDocs/conky.conf +else + `which conky` -d -c /etc/conky/conky.conf +fi \ No newline at end of file diff --git a/debian/conkylogo48.png b/debian/conkylogo48.png new file mode 100644 index 0000000..bf28bca Binary files /dev/null and b/debian/conkylogo48.png differ diff --git a/debian/conkylogo64.png b/debian/conkylogo64.png new file mode 100644 index 0000000..a336c38 Binary files /dev/null and b/debian/conkylogo64.png differ diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..1fbfa90 --- /dev/null +++ b/debian/files @@ -0,0 +1,2 @@ +conky_1.8.0-1_all.deb user/desktop extra +conky-all_1.8.0-1_armel.deb user/desktop optional diff --git a/debian/optify b/debian/optify new file mode 100644 index 0000000..865faf1 --- /dev/null +++ b/debian/optify @@ -0,0 +1 @@ +auto diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..abc2ec2 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,44 @@ +#! /bin/sh +# +# conky - postinst +# +# Copyright 2008 -2009 Faheem Pervez and Valério Valério +# +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + +if [ -r /etc/osso-af-init/af-defines.sh ]; then + source /etc/osso-af-init/af-defines.sh +fi + +if [ -x /usr/bin/dbus-send -a -x /usr/bin/gtk-update-icon-cache ]; then + dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Updating icon cache" || true +fi + +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -f /usr/share/icons/hicolor || true +fi + +case "$1" in + configure) + [ -z "$2" ] && \ + if [ -x /usr/bin/maemo-select-menu-location ]; then + maemo-select-menu-location conky.desktop + fi + ;; +esac + +exit 0