You are not logged in.
doesnt transparency get annoying after the novelty wears off?
Offline
The only things that stay transparent are the terminals. Everything else I did so the wallpaper was visible.
Offline
Offline
Offline
Another one with dzen2.
Wow, really nice dzen script. Would you mind sharing your script ?
Offline
Corsair wrote:Another one with dzen2.
Wow, really nice dzen script. Would you mind sharing your script ?
Sure~ Thanks :-D The system information is acquired with conky-cli.
The conky-cli script (.conky-clirc and .conky-mpd.rc):
update_interval 1
mail_spool /var/mail/corsair
TEXT
${freq_g}|${cpu cpu1}|${cpu cpu2}|${downspeed eth0}|${upspeed eth0}|${memperc}|${battery_percent}|${acpiacadapter}|${mails}
update_interval 2
TEXT
${mpd_artist}|${mpd_title 20}|${mpd_status}
And dzen2 is started by a zsh script:
#!/bin/zsh
# Time-stamp: <corsair 2008-01-17 16:36:50>
IFS_BAK=$IFS
INTERVAL=1
ICONPATH="/home/corsair/.fvwm/icons/little"
ICONPATH_ALT="/home/corsair/.fvwm/icons/dzen-bitmaps"
BAR_FG="#aecf96"
BAR_BG="gray22"
COLOR_ICON="#0e5eb1"
BAR_H=7
BAR_W=40
printVol()
{
percentage=$(amixer |grep -A 6 \'Surround\' |awk {'print $5'} |grep -m 1 % |sed -e 's/[][%]//g')
ismute=$(amixer |grep -A 6 \'Surround\'|awk {'print $7'} |grep -m 1 "[on|off]" | sed -e 's/[][]//g')
if [[ $ismute == "off" ]]; then
print -n "^fg($COLOR_ICON)^i($ICONPATH/vol-mute.xbm)^fg()"$(echo "0" | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W)
else
print -n "^fg($COLOR_ICON)^i($ICONPATH/vol-hi.xbm)^fg()"$(echo $percentage |gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W)
fi
return
}
printMem()
{
MemTotal=`grep "MemTotal:" /proc/meminfo | awk '{print $2;}'`
MemCached=`grep "Cached:" /proc/meminfo | head -n 1 | awk '{print $2;}'`
MemUsed=`echo $MemTotal"-"$MemCached | bc`
print -n `echo $MemUsed | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W -max $MemTotal`
return
}
CPUFreq=0
CPULoad0=0
CPULoad1=0
NetUp=0
NetDown=0
MPDArtist=
MPDTitle=
MPDStatus=
NewMail=0
printCPUInfo()
{
CPUTemp=$(~/getcput.sh)
echo -n "^fg($COLOR_ICON)^i($ICONPATH/cpu.xbm)^fg()^fg()"$(echo $CPULoad0 | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w 25)$(echo $CPULoad1 | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w 25) @${CPUFreq}GHz"^fg($COLOR_ICON)^i($ICONPATH/temp.xbm)^fg()"$CPUTemp
return
}
printMemInfo()
{
echo -n "^fg($COLOR_ICON)^i($ICONPATH/mem.xbm)^fg()"$(echo $MemUsed | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W)
return
}
printNetInfo()
{
echo -n "^fg($COLOR_ICON)^i($ICONPATH/down.xbm)^fg()"${NetDown}K/s"^fg($COLOR_ICON)^i($ICONPATH/up.xbm)^fg()"${NetUp}K/s
return
}
printMPDInfo()
{
if [[ $MPDStatus = "MPD not responding" ]]; then
echo -n "^fg($COLOR_ICON)^i($ICONPATH/mpd.xbm)^fg()^fg(red)--^fg()"
else
echo -n "^fg($COLOR_ICON)^i($ICONPATH/mpd.xbm)^fg(#e76700)["$MPDStatus"]^fg()" $MPDTitle "^fg(blue)by^fg()" $MPDArtist
fi
return
}
printBattery()
{
if [[ $ACStat = "on-line" ]]; then
echo -n "^fg($COLOR_ICON)^i($ICONPATH/power-ac.xbm)^fg()"$(echo $BatRemain | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W)
else
echo -n "^fg($COLOR_ICON)^i($ICONPATH/power-bat.xbm)^fg()"$(echo $BatRemain | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W)
fi
return
}
printDate()
{
echo -n $(date "+%Y-%m-%d ^fg(green)%H:%M")
return
}
printMail()
{
if [[ $NewMail != "0" ]]; then
echo -n "^fg()^i($ICONPATH_ALT/envelope.xbm)"$NewMail
fi
return
}
printBetween()
{
echo -n " ^fg(#5e0000)^r(4x4)^fg() "
return
}
getConkyInfoAndPrintAll()
{
while true; do
IFS='|'
read CPUFreq CPULoad0 CPULoad1 NetDown NetUp MemUsed BatRemain ACStat NewMail
IFS=$IFS_BAK
printCPUInfo
printBetween
printMemInfo
printBetween
printNetInfo
printBetween
printBattery
printBetween
printVol
printBetween
printDate
echo " "
done
return
}
getMPDAndPrint()
{
while true; do
IFS='|'
read MPDArtist MPDTitle MPDStatus
# Info=($=Info)
IFS=$IFS_BAK
printMPDInfo
echo
done
return
}
conky-cli -c ~/.conky-clirc -u $INTERVAL | getConkyInfoAndPrintAll | dzen2 -x 300 -w 980 -fn "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*" -ta r &
exec conky-cli -c ~/.conky-mpd.rc | getMPDAndPrint | dzen2 -w 300 -fn "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*" -ta l
Fear is the path to the darkside.
{My Config}
Offline
I think I may have found one to stick with.
The clock on the Desktop - this is not a widget, is it?
Offline
mascanho wrote:Corsair wrote:Another one with dzen2.
Wow, really nice dzen script. Would you mind sharing your script ?
Sure~ Thanks :-D The system information is acquired with conky-cli.
The conky-cli script (.conky-clirc and .conky-mpd.rc):
update_interval 1 mail_spool /var/mail/corsair TEXT ${freq_g}|${cpu cpu1}|${cpu cpu2}|${downspeed eth0}|${upspeed eth0}|${memperc}|${battery_percent}|${acpiacadapter}|${mails}
update_interval 2 TEXT ${mpd_artist}|${mpd_title 20}|${mpd_status}
And dzen2 is started by a zsh script:
#!/bin/zsh # Time-stamp: <corsair 2008-01-17 16:36:50> IFS_BAK=$IFS INTERVAL=1 ICONPATH="/home/corsair/.fvwm/icons/little" ICONPATH_ALT="/home/corsair/.fvwm/icons/dzen-bitmaps" BAR_FG="#aecf96" BAR_BG="gray22" COLOR_ICON="#0e5eb1" BAR_H=7 BAR_W=40 printVol() { percentage=$(amixer |grep -A 6 \'Surround\' |awk {'print $5'} |grep -m 1 % |sed -e 's/[][%]//g') ismute=$(amixer |grep -A 6 \'Surround\'|awk {'print $7'} |grep -m 1 "[on|off]" | sed -e 's/[][]//g') if [[ $ismute == "off" ]]; then print -n "^fg($COLOR_ICON)^i($ICONPATH/vol-mute.xbm)^fg()"$(echo "0" | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W) else print -n "^fg($COLOR_ICON)^i($ICONPATH/vol-hi.xbm)^fg()"$(echo $percentage |gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W) fi return } printMem() { MemTotal=`grep "MemTotal:" /proc/meminfo | awk '{print $2;}'` MemCached=`grep "Cached:" /proc/meminfo | head -n 1 | awk '{print $2;}'` MemUsed=`echo $MemTotal"-"$MemCached | bc` print -n `echo $MemUsed | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W -max $MemTotal` return } CPUFreq=0 CPULoad0=0 CPULoad1=0 NetUp=0 NetDown=0 MPDArtist= MPDTitle= MPDStatus= NewMail=0 printCPUInfo() { CPUTemp=$(~/getcput.sh) echo -n "^fg($COLOR_ICON)^i($ICONPATH/cpu.xbm)^fg()^fg()"$(echo $CPULoad0 | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w 25)$(echo $CPULoad1 | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w 25) @${CPUFreq}GHz"^fg($COLOR_ICON)^i($ICONPATH/temp.xbm)^fg()"$CPUTemp return } printMemInfo() { echo -n "^fg($COLOR_ICON)^i($ICONPATH/mem.xbm)^fg()"$(echo $MemUsed | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W) return } printNetInfo() { echo -n "^fg($COLOR_ICON)^i($ICONPATH/down.xbm)^fg()"${NetDown}K/s"^fg($COLOR_ICON)^i($ICONPATH/up.xbm)^fg()"${NetUp}K/s return } printMPDInfo() { if [[ $MPDStatus = "MPD not responding" ]]; then echo -n "^fg($COLOR_ICON)^i($ICONPATH/mpd.xbm)^fg()^fg(red)--^fg()" else echo -n "^fg($COLOR_ICON)^i($ICONPATH/mpd.xbm)^fg(#e76700)["$MPDStatus"]^fg()" $MPDTitle "^fg(blue)by^fg()" $MPDArtist fi return } printBattery() { if [[ $ACStat = "on-line" ]]; then echo -n "^fg($COLOR_ICON)^i($ICONPATH/power-ac.xbm)^fg()"$(echo $BatRemain | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W) else echo -n "^fg($COLOR_ICON)^i($ICONPATH/power-bat.xbm)^fg()"$(echo $BatRemain | gdbar -fg $BAR_FG -bg $BAR_BG -h $BAR_H -w $BAR_W) fi return } printDate() { echo -n $(date "+%Y-%m-%d ^fg(green)%H:%M") return } printMail() { if [[ $NewMail != "0" ]]; then echo -n "^fg()^i($ICONPATH_ALT/envelope.xbm)"$NewMail fi return } printBetween() { echo -n " ^fg(#5e0000)^r(4x4)^fg() " return } getConkyInfoAndPrintAll() { while true; do IFS='|' read CPUFreq CPULoad0 CPULoad1 NetDown NetUp MemUsed BatRemain ACStat NewMail IFS=$IFS_BAK printCPUInfo printBetween printMemInfo printBetween printNetInfo printBetween printBattery printBetween printVol printBetween printDate echo " " done return } getMPDAndPrint() { while true; do IFS='|' read MPDArtist MPDTitle MPDStatus # Info=($=Info) IFS=$IFS_BAK printMPDInfo echo done return } conky-cli -c ~/.conky-clirc -u $INTERVAL | getConkyInfoAndPrintAll | dzen2 -x 300 -w 980 -fn "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*" -ta r & exec conky-cli -c ~/.conky-mpd.rc | getMPDAndPrint | dzen2 -w 300 -fn "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*" -ta l
Wow, tanks man it really worked, except a file/script called getcput.sh, is it another script you did or i can download it from some place ?
Last edited by mascanho (2008-01-17 09:51:53)
Offline
Dark colors are for real h4ck3r5
Offline
Corsair wrote:mascanho wrote:Wow, really nice dzen script. Would you mind sharing your script ?
Sure~ Thanks :-D The system information is acquired with conky-cli.
The conky-cli script (.conky-clirc and .conky-mpd.rc):
And dzen2 is started by a zsh script:
Wow, tanks man it really worked, except a file/script called getcput.sh, is it another script you did or i can download it from some place ?
It's a simple script I wrote. It just reads current CPU temperature from a file in /sys. Nothing more. I didn't put this script on because It seems that different machines have different files for it. (Mine is a Macbook. And the file is /sys/devices/platform/coretemp.0/temp1_input) Also, you may get CPU temp with conky-cli.
Last edited by Corsair (2008-01-17 13:23:47)
Fear is the path to the darkside.
{My Config}
Offline
while true; do
IFS='|'
read CPUFreq CPULoad0 CPULoad1 NetDown NetUp MemUsed BatRemain ACStat NewMail
Neat idea!
Cthulhu For President!
Offline
Reasons wrote:I think I may have found one to stick with.
The clock on the Desktop - this is not a widget, is it?
Nope, just conky. For little things (time, music, torrent, etc.) I like to keep things light.
Offline
Corsair wrote:while true; do
IFS='|'
read CPUFreq CPULoad0 CPULoad1 NetDown NetUp MemUsed BatRemain ACStat NewMailNeat idea!
Thanks, buddy
Fear is the path to the darkside.
{My Config}
Offline
3 o'clock boredom:
http://img244.imageshack.us/img244/6286 … xh9.th.png
it's wintertime.
openbox, wbar, conky.vlad
DonVia, your conky setup is amazing,
can you share your setting with us?
(yep I am a conky lazy beginner)
Offline
Weseven, mind posting your conkyrc?
not at all.
here you are:
http://pastebin.com/f6f491e17
for the mail thing (gmail) you'll need this script in ~/scripts (edit with your user and pass and call it gmail.py):
http://pastebin.com/d32b4517
Offline
dawn, could you please share that wallpaper?
Yes. I don't remember from where I got it so I can only share the 1280x800 px version.
PS: actually I found the source: http://wallpaperstock.net/black-floor-w … w6854.html
Last edited by dawn (2008-01-17 15:51:53)
Offline
Stalafin wrote:Reasons wrote:I think I may have found one to stick with.
The clock on the Desktop - this is not a widget, is it?
Nope, just conky. For little things (time, music, torrent, etc.) I like to keep things light.
Could you tell me, how you did that?
Offline
So heres my screenie. I've got fluxbox with 2 conky's gnome-terminal tabbed with pidgin and XMMS. no ugly icons cluttering everything up.
it's enough to make my windows friends envious
Hofstadter's Law:
It always takes longer than you expect, even when you take into account Hofstadter's Law.
Offline
Reasons wrote:Stalafin wrote:The clock on the Desktop - this is not a widget, is it?
Nope, just conky. For little things (time, music, torrent, etc.) I like to keep things light.
Could you tell me, how you did that?
What do you mean, I installed conky and make my ~/.conkyrc. Here it is if you want it though you probably don't have the font.
~/.conkyrc
background yes
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
use_xft yes
xftfont Myriad Pro Semi-Condensed:size=9
xftalpha 0.8
mail_spool $MAIL
update_interval 1
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 135 2
maximum_width 145 2
draw_shades yes
default_shade_color 666666
default_outline_color 555555
draw_outline yes
draw_borders no
stippled_borders no
border_margin 1
border_width 1
gap_x 30
gap_y 30
alignment top_right
use_spacer no
no_buffers yes
uppercase no
mpd_host localhost
mpd_port 6600
TEXT
${font Myriad Pro Semi-Condensed:size=36}${time %l:%M}
$font${alignc}${voffset -40}${time %a,} ${time %B %e}
Offline
Sjoden wrote:Weseven, mind posting your conkyrc?
not at all.
here you are:
http://pastebin.com/f6f491e17
for the mail thing (gmail) you'll need this script in ~/scripts (edit with your user and pass and call it gmail.py):
http://pastebin.com/d32b4517
Thanks!
Offline
zodmaner wrote:dawn, could you please share that wallpaper?
Yes. I don't remember from where I got it so I can only share the 1280x800 px version.
PS: actually I found the source: http://wallpaperstock.net/black-floor-w … w6854.html
Looks like you found some stolen content there...
The original wallpaper pack can be found on Deviantart: Dark Wood by zygat3r
Last edited by Stalafin (2008-01-17 17:35:35)
Offline
dawn wrote:zodmaner wrote:dawn, could you please share that wallpaper?
Yes. I don't remember from where I got it so I can only share the 1280x800 px version.
PS: actually I found the source: http://wallpaperstock.net/black-floor-w … w6854.html
Looks like you found some stolen content there...
The original wallpaper pack can be found on Deviantart: Dark Wood by zygat3r
Thanks for pointing that out.
I have a question: can dzen2 be used as a taskbar as well?
Offline
Still a work in progress...
where do you guys get those icons displayed on dzen ?'
Xmonad is a Wm with potencial
Offline