cd /dev/shm
wget http://sourceforge.net/projects/conky/files/conky/1.8.1/conky-1.8.1.tar.bz2/download
cd /dev/shm
tar -xjvf conky-1.8.1.tar.bz2
cd conky-1.8.1
./configure --prefix=/usr --enable-wlan --disable-lua --enable-x11 --enable-curl
make -j2
#make install
/dev/shm/conky-1.8.1/src/conky
cat > ~/.conkyrc << "EOF"
# set to yes if you want Conky to be forked in the background
background yes
# Use Xft?
use_xft yes
# Set conky on the bottom of all other applications
#on_bottom yes
# Xft font when Xft is enabled
xftfont Deja Vu Sans Mono:size=7.5
# Text alpha when using Xft
xftalpha 0.15
# 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
# If own_window is yes, you may use type normal, desktop or overide
#own_window_type desktop
# Use pseudo transparency with own_window?
#own_window_transparent yes
# If own_window is yes, these window manager hints may be used
#own_window_hints undecorated,below,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 280 5
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 8 no
# border margins
#border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 12
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase yes
# 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 none
# 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
$color
${color orange}SYSTEM ${hr 2}$color
$nodename $sysname $kernel on $machine
${color orange}CPU ${hr 2}$color
${freq}MHz   Load: ${loadavg}   Temp: ${acpitemp}
$cpubar
${cpugraph 000000 ffffff}
NAME             PID       CPU%      MEM%
${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
${color orange}MEMORY / DISK ${hr 2}$color
RAM:   $memperc%   ${membar 6}$color
Swap:  $swapperc%   ${swapbar 6}$color
Root:  ${fs_free_perc /}%   ${fs_bar 6 /}$color
${color orange}NETWORK (${addr eth1}) ${hr 2}$color
Down: $color${downspeed eth1} k/s ${alignr}Up: ${upspeed eth1} k/s
${downspeedgraph eth1 25,140 000000 ff0000} ${alignr}${upspeedgraph eth1 25,140 000000 00ff00}$color
Total: ${totaldown eth1} ${alignr}Total: ${totalup eth1}
${execi 30 netstat -ept | grep ESTAB | awk '{print $9}' | cut -d: -f1 | sort | uniq -c | sort -nr}
$color Wifi Quality: ${color #07dbf4}${wireless_link_bar eth1}
${color orange}Battery: ${color #ec0000}
${battery BAT1} $color
${battery_bar BAT1}
${color orange}Master Volume:${color}${execi 3 ~/conky_volume.sh}
#The next line does not work if the script outputs text, such as mute.  Need to fix this.
${execibar 3 ~/conky_volume.sh}
EOF
cat > ~/conky_volume.sh << "EOF"
#!/bin/bash
amixer get Master | awk -F'[]%[]' '/%/ {if ($7 == "off") { print "Mute" } else { print $2"%" }}'
EOF
chmod +x ~/conky_volume.sh
 
No comments:
Post a Comment