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
double_buffer yes
minimum_size 200 1250
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color blue
default_outline_color white
alignment top_right
gap_x 12
gap_y 32
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
undecorated,below,sticky,skip_taskbar,skip_pager
TEXT
${font sans-serif:bold:size=20}$alignc ArchLinux
${font sans-serif:bold:size=8}SYSTEM ${hr 2}
${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
Uptime:$alignr$uptime
#File System: $alignr${fs_type}
#Mail: $alignr ${execi 300 python ~/.scripts/gmail.py}
${font sans-serif:bold:size=8}Intel Core2 Duo E6300${hr 2}
${font sans-serif:normal:size=8}${cpugraph cpu1}
Core 1: ${cpu cpu1}% ${cpubar cpu1}
${font sans-serif:normal:size=8}${cpugraph cpu2}
Core 2: ${cpu cpu2}% ${cpubar cpu2}
${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}HDD ${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}
${font sans-serif:normal:size=8}Seagate $alignc ${fs_used /media/SEA_DISC} / ${fs_size /media/SEA_DISC} $alignr ${fs_used_perc /media/SEA_DISC}%
${fs_bar /media/SEA_DISC}
${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 sans-serif:bold:size=8}NETWORK ${hr 2}
${font sans-serif:normal:size=8}IP address: $alignr ${addr eth0}
${downspeedgraph eth0}
DLS:${downspeed eth0} kb/s $alignr total: ${totaldown eth0}
${upspeedgraph eth0}
ULS:${upspeed eth0} kb/s $alignr total: ${totalup eth0}
${color FFFFFF}${font LCDMono:Bold:size=10}${alignc}A Dance of Dragons${font}${color}
${alignc}Release Date
${font LCDMono:Bold:size=10}${color AAAAFF} ${alignc}${exec ~/Apps/countdown.sh}${color}${font}
${execi 10 ~/Apps/mocp.sh | fold -w55 -s}
Here is the mocp.sh script that is dumping my mocp content…
#!/bin/sh
TITLE=”`mocp -i | grep ‘Title:’ | sed -e ‘s/^.*: //’`”;
if [ “$TITLE” != “” ]; then
ARTIST=”`mocp -i | grep ‘Artist:’ | sed -e ‘s/^.*: //’`”;
SONGTITLE=”`mocp -i | grep ‘SongTitle:’ | sed -e ‘s/^.*: //’`”;
ALBUM=”` mocp -i | grep ‘Album:’ | sed -e ‘s/^.*: //’`”;
if [ “ARTIST” != “” ]; then ARTIST=”$ARTIST - “; fi
if [ “ALBUM” != “” ]; then ALBUM=”($ALBUM)”; fi
echo $ARTIST $SONGTITLE $ALBUM
else echo MOC not running
fi
And this is the little countdown script…
#!/bin/bash
START=$(date +%s)
END=$(date +%s -d “2011-7-12 00:00”)
SECONDS=$(( END - START ))
MINUTES=$(( SECONDS / 60 ))
SECONDS=$(( SECONDS - MINUTES*60 ))
HOURS=$(( MINUTES / 60 ))
MINUTES=$(( MINUTES - HOURS*60 ))
DAYS=$(( HOURS / 24 ))
HOURS=$(( HOURS - DAYS*24 ))
echo “${DAYS}d ${HOURS}h ${MINUTES}m ${SECONDS}s”
No comments:
Post a Comment