You are not logged in.

#576 2010-08-04 08:22:05

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: conky configs and screenshots!

cairo dock in openbox.. interesting, will try that too.

Offline

#577 2010-08-05 07:23:52

JohnWittle
Member
Registered: 2010-03-06
Posts: 8

Re: conky configs and screenshots!

A year ago, I decided to see if I was smart enough to throw together a script. I've never done any programming beyond little hello world things, so it was a momentous task for me.

Anyway, I wanted a way to put the text of the last IM i recieved into conky. I wrote it and used it for a year, and then I decided that I wanted to get rid of the "ding" notification, but just having the conky text change wasn't enough to catch my eye, so I decided to have it rotate through colors as I recieved IMs. Red to green to orange etc. It catches my eye every time I get an IM, and is very unobtrusive (unlike, say, the pidgin icon that sits in a dock.)

Here is it in action! http://treefire.wetfish.net/first.png
http://treefire.wetfish.net/second.png
http://treefire.wetfish.net/third.png

The script is VERY SHODDILY WRITTEN. This was my first program ever, and I haven't written anything since. You have to change the file in the script to whatever file you want to use, and then in conky just ${exec cat ~/.file} or whatever.

the script is here: http://treefire.wetfish.net/getlastim.py

if you'd like to improve it, please do big_smile

Last edited by JohnWittle (2010-08-05 07:30:10)

Offline

#578 2010-08-08 21:32:41

Gazhole
Member
Registered: 2010-08-03
Posts: 2

Re: conky configs and screenshots!

tawan wrote:

cairo dock in openbox.. interesting, will try that too.

Its good!

I liked wbar so i used that for a while, but it was playing up with xcompmgr drop shadows. Managed to stop conky having a shadow, but wbar wasn't playing ball with anything i tried so switched to cairo and it's working great!

smile

Offline

#579 2010-08-10 08:45:41

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: conky configs and screenshots!

there are some cool tools including a dock here (My favourite of his is the trans-follow script that makes windows in the background fade automatically)

Offline

#580 2010-08-11 12:03:02

Doctor Drive
Member
From: Ukraine
Registered: 2010-08-11
Posts: 167
Website

Re: conky configs and screenshots!

--mod edit: please only post thumbnails: http://wiki.archlinux.org/index.php/For … s_and_Code --

http://docd.zx6.ru/desktop/conky.zip

The volume ring gets data from volume.sh script which shows from amixer get Master smile
The volume ring is not a regular ring so it's defined in separate function in lua script.
Oh.. and you'd better delete  rings-v1.2.lua.dumb ... i've experimented in it and it didn't work

Last edited by Doctor Drive (2010-08-11 12:13:35)

Offline

#581 2010-08-11 15:31:13

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 154
Website

Re: conky configs and screenshots!

It's a very, very impressive! Many thanks for configs!

Offline

#582 2010-08-14 18:55:33

zero_one
Member
Registered: 2010-07-07
Posts: 104

Re: conky configs and screenshots!

I'm constantly messing with conky, this is what i currently have. Never satisified I guess, or I have too much free time at the moment.


 
alignment middle_right
double_buffer yes
out_to_console no
color6 Red
cpu_avg_samples 2
net_avg_samples 2
format_human_readable yes
gap_x 5
gap_y 10
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no

own_window yes
own_window_type normal
#own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

uppercase no
show_graph_scale no
show_graph_range no
update_interval 1
use_xft yes
xftfont Sans serif:size=8
#own_window_argb_visual
#own_window_argb_value 0
# Network interface must have an ip address to be considered up
if_up_strictness address

TEXT

${image /home/jay/archlinux-logo-light-90dpi.png -p 0,0 -s 220x70}


${alignc -20}${color2}${font Sans serif:size=8}$color$sysname $kernel
#$hr

${color 1792D0}${font Sans serif:size=10:style=Bold}${alignc}${time %B} ${time %Y}${font}${color}

${font Bitstream Vera Sans Mono:size=9}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color6}'"$DJS"'${color1}'" "/}
#$hr

${font Sans serif:size=10}${color grey}Local ${alignc -16}Zulu ${alignr}Iraq${color} 
${time %H:%M} ${alignc -20} ${tztime UTC %H:%M} ${alignr} ${tztime Asia/Baghdad %H:%M}${font}

${color grey}${font Sans:size=8:style=Bold}System:${font} $hr

${color grey}Battery:$color ${battery} ${color grey}Life:${color6} ${battery_time}
${color grey}Uptime:$color $uptime
${color grey}Temperature: $color${acpitemp}°C
${color grey}Core1:  $color ${cpu cpu1}%${color grey}
${color grey}Core1 Freq:$color ${freq_g cpu1} (GHz)
${color grey}Core2:  $color ${cpu cpu2}%${color grey}
${color grey}Core2 Freq:$color ${freq_g cpu2} (GHz)
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
#${color grey}${font Sans serif:size=8}$color$sysname $kernel
${color grey}${cpugraph cpu0 26,220 FF3300 00FF00} 
${color grey}${font Sans serif:size=8:style=Bold}Memory:${font} $hr

${color grey}RAM Usage:$color $mem/$memmax${alignr}$memperc%
${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax${alignr}$swapperc% 
${swapbar 4}

${color grey}${font Sans serif:size=8:style=Bold}File Systems:${font} $hr

${color grey}root:${color }${fs_free /}/${fs_size /}${alignr}${fs_free_perc /}%
${fs_bar 4 /}
${color grey}home:${color }${fs_free /home}/${fs_size /home}${alignr}${fs_free_perc /home}%
${fs_bar 4 /home}

${color grey}${font Sans serif:size=8:style=Bold}Networking:${font} $hr

#${if_empty ${exec cat /proc/net/arp | grep eth0}}${if_empty ${exec ps -e | grep pppd}}${color
${if_up wlan0}
lightgrey}wlan0: ${color 00FF00}${addrs wlan0}
${color lightgrey}Wireless network: $color${wireless_essid wlan0}
${color lightgrey}Wireless signal: $color${wireless_link_qual_perc wlan0}%

${color lightgrey}Up:$color ${upspeedf wlan0} kb/s${color lightgrey} - Down:$color ${downspeedf wlan0} kb/s
${else}${color lightgrey}eth0: ${color 00FF00}${addrs eth0}

${color lightgrey}Up:${upspeedf eth0} kb/s${color lightgrey} - Down:${downspeedf eth0} kb/s
${endif}
${texeci 600 feh --bg-scale '/home/jay/docs/backgrounds/new-york-madness.jpg'}

Offline

#583 2010-08-15 00:09:13

shemz
Member
Registered: 2010-04-23
Posts: 135

Re: conky configs and screenshots!

Doctor Drive wrote:

The volume ring gets data from volume.sh script which shows from amixer get Master smile
The volume ring is not a regular ring so it's defined in separate function in lua script.
Oh.. and you'd better delete  rings-v1.2.lua.dumb ... i've experimented in it and it didn't work

Its good. Could you also explain a bit about how to get the weather script working with your conkyrc? Specifically, which service provider do you use, and where to put the web address.

Edit: Nevermind. Installed conky_forcast from AUR.

Last edited by shemz (2010-08-15 00:15:19)

Offline

#584 2010-08-15 09:12:38

skull-y
Member
From: Germany/Saxony-Anhalt /Halle
Registered: 2009-01-25
Posts: 29

Re: conky configs and screenshots!

Gazhole wrote:

Haven't been using Arch for long, but got this in Openbox running 4 conkys, cairo-dock, and tint2 panel. A lot of it was done using ideas and help posted in this very thread, so thankyou! I love my desktop now smile

http://img155.imageshack.us/img155/6608 … tin.th.jpg

Uploaded with ImageShack.us

Can post configs for all this stuff if anybody wants. Like i said, most of it is in this thread already. Wallpaper was off deviantart somewhere.

It looks good.
Please upload this conky which shows the updates for arch.

Last edited by skull-y (2010-08-16 08:52:43)

Offline

#585 2010-08-18 21:20:45

Doctor Drive
Member
From: Ukraine
Registered: 2010-08-11
Posts: 167
Website

Re: conky configs and screenshots!

Played a litle bit

desktop24.08.10-thumb.png


configs:
http://docd.zx6.ru/desktop/conky24.08.10.zip

One must launch three instances
conky -c .conkyright - for fight window,
conky -c .conkydrives - fot bottom one, and
conky -c .conkyclock - for the clock.

Edit:
added "Recent Updates" script in php

Edit 2:
Added AUR Recent Updates, and removed weather.

Last edited by Doctor Drive (2010-08-24 16:10:36)

Offline

#586 2010-08-24 23:13:56

alexcortes
Member
From: Rio de Janeiro - Brazil
Registered: 2010-03-13
Posts: 13

Re: conky configs and screenshots!

Hi!!!

.conkyrc HERE

conkyg.th.png

Last edited by alexcortes (2010-08-24 23:41:21)

Offline

#587 2010-09-04 15:12:06

spoonie_aus
Member
From: Australia W.A
Registered: 2009-03-12
Posts: 44

Re: conky configs and screenshots!

This is my conky. Its pretty basic but tells me all I need to know.

http://fc05.deviantart.net/fs71/f/2010/ … 2xzesb.png


alignment top_right
border_width 0
cpu_avg_samples 2
default_color red
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft yes
xftfont Linkin Park:size=15
gap_x 5
gap_y 60
minimum_size 5 5
net_avg_samples 2
double_buffer yes
out_to_console no
out_to_stderr no
extra_newline no
own_window_transparent no
own_window_class Conky
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager


TEXT
${color black}Uptime:$color ${uptime}
${color black}Kernel:$color ${kernel}
${color black}RAM Usage:$color $mem${color}/${color}$memmax
${color black}Swap Usage:$color $swap${color}/${color}$swapmax

${color Black}CrossFire:$color ${execi 8 aticonfig  --lscs | grep 'CrossFire is' | cut -c18-25}

${color black}CPU Clock:$color ${freq_g} GHZ
${color black}CPU 0:$color  ${cpu cpu0} ${color black}CPU 1:$color  ${cpu cpu1}
${color black}CPU 2:$color  ${cpu cpu2} ${color black}CPU 3:$color  ${cpu cpu3}

${color black}File System:
${color black}ROOT:$color${fs_free /}
${color red} ${fs_bar 6,140 /}
${color black}EXTERNAL:$color${fs_free /media/MYBOOK}
${color red} ${fs_bar 6,140 /media/MYBOOK}

${color black}Temperature:
${color black}CPU:$color ${execi 8 sensors | grep 'CPU Temperature' | cut -c22-23 | sed '/^$/d'}°C 
${color black}MB:$color ${execi 8 sensors | grep 'MB Temperature' | cut -c22-23 | sed '/^$/d'}°C
${color black}GPU:$color ${execi 8 aticonfig --odgt | grep 'Sensor' | cut -c43-47 | sed '/^$/d'}°C

${color black}Networking:
Up:$color ${upspeed wlan0} ${color black} - Down:$color ${downspeed wlan0}

Offline

#588 2010-09-14 00:05:59

Fruity
Member
Registered: 2009-12-16
Posts: 198

Re: conky configs and screenshots!

Anyone know if it's possible to colour a cpu or network bar vertically rather than horizontally?

Offline

#589 2010-09-15 11:07:32

Fruity
Member
Registered: 2009-12-16
Posts: 198

Re: conky configs and screenshots!

This is what I have so far:-

screenshot0915201012045.png

Edited for correct linky thingy,

screenshot0915201012045.th.png

Edit number 4,912, think I have it this time,

screenshot0915201012120.th.png

Last edited by Fruity (2010-09-15 11:13:27)

Offline

#590 2010-09-15 11:39:00

cleverusername
Member
Registered: 2010-09-15
Posts: 5
Website

Re: conky configs and screenshots!

Fruity wrote:

Anyone know if it's possible to colour a cpu or network bar vertically rather than horizontally?

I know it's possible because I've seen it before (if you mean what I think you mean), but I'm not sure how it's done, I think I saw it on conky's own sample page so I'll look for it and get back to you!

Here's my favorite of mine that I've done

http://i53.tinypic.com/swebu1.jpg

And my config for it:

## cleverusername of the Arch forum's conkyRhythmbox setup
# set to yes if you want Conky to be forked in the background
background yes

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Trebuchet MS:size=10
xftfont Sans:size=8

# Text alpha when using Xft
xftalpha 1

# Update interval in seconds
update_interval 0.5

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

own_window yes
own_window_transparent yes
own_window_type override
#own_window_type normal #use this if you want a nice shadow to appear around conky

# If own_window is yes, these window manager hints may be used
own_window_hints
undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 110 0

# Maximum width
maximum_width 900

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders no

# Stippled borders?
# stippled_borders 8

# border margins
# border_margin 2

# border width
# border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_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 no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no

##############################################

TEXT
${hr}
${voffset 12}${font MetDemo:size=25}:        ${voffset -30}${font Droid Sans:size=16} ${color1}${exec conkyRhythmbox --datatype=TI}${font}
                                            ${font Droid Sans:size=12}${color1}${exec conkyRhythmbox --datatype=AR}${font}
                             ${voffset -13}${font Droid Sans:size=8}by     ${voffset 12}${voffset 12}${font Droid Sans:size=8}${voffset -8}Track ${exec conkyRhythmbox --datatype=TN} of ${font Droid Sans:size=8}${exec conkyRhythmbox --datatype=AL}
                                                                ${font Droid Sans:size=16}${color1}${exec conkyRhythmbox --datatype=PT}${color1}/${exec conkyRhythmbox --datatype=LE}${font}
${hr}

It's quite messy, but it works and I like how it looks. big_smile
The one problem I find is that it doesn't update the position of the song every second, so it's not 100% accurate, but I'm not bothered.

You'll need conkyRhythmbox from AUR and a font called MetDemo for the treble clef.

I wanted for another conky to display a different text file every day (showing what lectures I have and when, specifically) and was probably going to use conkyText by the same person who wrote conkyRhythmbox that I'm using here, just don't know how to set it that it changes depending on the day. I was going to make a text file for each day in somewhere like ~/Scripts/conky/lectures/monday, etc. Any idea?


EDIT: Found out how to do this, I just wrote a simple shell script to cat text files depending on the day of the week it is. big_smile

Last edited by cleverusername (2010-09-19 15:00:41)

Offline

#591 2010-09-15 16:17:55

nexxx
Member
From: Wolfsberg
Registered: 2010-09-15
Posts: 22

Re: conky configs and screenshots!

My current conky

Screenshot

conky left:

own_window yes
own_window_argb_visual yes
own_window_argb_value 220
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent no
own_window_type normal
background no
font Zekton:size=8
xftfont Zekton:size=8
use_xft yes
xftalpha 0.5
update_interval 5.0
total_run_times 0
double_buffer yes
draw_shades yes
draw_outline yes
draw_borders no
draw_graph_borders yes
minimum_size 224 5
maximum_width 224
border_width 0
default_color white
default_shade_color black
default_outline_color black
alignment top_left
gap_x 5
gap_y 0
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer right

#Headercolor
color0 cornflowerblue

#Logocolor
color1 cornflowerblue 

#Text Systeminfo/IP
color2 darkgrey

#Variable Text
color3 cyan

#Graphen
color4 darkgrey

#Running
color5 orange

TEXT
${color1}${font openlogos:size=52}B ${font}${color}
Hostname: $alignr${color2}$nodename${color}
Kernel: $alignr${color2}$kernel${color}
Processes: ${alignr}${color2}$processes ($running_processes running)${color}
Uptime: ${alignr}${color2}$uptime${color}
Load: ${alignr}${color2}$loadavg${color}

${font Zekton:size=9}${color0}SYSTEM ${hr 1}${color}${font}

CPU 0${color3}${alignc} ${freq}MHz / ${execi 10 sensors | grep  'Core 0' | awk '{print $3}'}${alignr}(${cpu cpu0}%)${cpubar cpu0 7}${color}
CPU 1${color3}${alignc} ${freq}MHz / ${execi 10 sensors | grep  'Core 1' | awk '{print $3}'}${alignr}(${cpu cpu1}%)${cpubar cpu1 7}${color}
${color4}${cpugraph}${color}
Highest CPU $alignr CPU     MEM
${color5}
${top name 1}$alignr${top cpu 1}%${top mem 1}%
${top name 2}$alignr${top cpu 2}%${top mem 2}%
${top name 3}$alignr${top cpu 3}%${top mem 3}%
${color}
RAM ${color3}${alignr}$mem / $memmax ($memperc%)${color}
${color4}${membar 10}${color}
SWAP ${color3}${alignr}$swap / $swapmax ($swapperc%)${color}
${color4}${swapbar 10}${color}

Highest MEM $alignr CPU     MEM
${color5}
${top_mem name 1}$alignr${top_mem cpu 1}%${top_mem mem 1}%
${top_mem name 2}$alignr${top_mem cpu 2}%${top_mem mem 2}%
${top_mem name 3}$alignr${top_mem cpu 3}%${top_mem mem 3}%
${color}
${font Zekton:size=9}${color0}FILESYSTEM ${hr 1}${color}${font}

/       ${color3}${alignr}${fs_used /}/${fs_size /}${alignr}${color4}${fs_bar 7,80 /}${color}
/home   ${color3}${alignr}${fs_used /home}/${fs_size /home}${color4}${alignr}${fs_bar 7,80 /home}${color}

${font Zekton:size=9}${color0}NETWORK ${hr 1}${color}${font}

Public IP:${color2}${alignr}${execi 3600 wget [url]http://checkip.dyndns.org[/url]/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1}${color}
Wireless IP:${color2}${alignr}${addr wlan0}${color}
ESSID:${color2}$alignr${wireless_essid wlan0}${color}

Down  ${color3}${downspeed wlan0} ${color}${alignr}Up  ${color3}${upspeed wlan0}${color}
${color4}${downspeedgraph wlan0 15,107} ${alignr}${upspeedgraph wlan0 15,107}${color}
Total ${color3}${totaldown wlan0} ${color}${alignr}Total ${color3}${totalup wlan0}${color}

${font Zekton:size=9}${color0}BATTERY ${hr 1}${color}${font}

Battery Percent:${color3}${alignr}${battery_percent BAT1}%${color}
Battery Time Left:${color3}${alignr}${execi 30 ~/.conkybattery}${color}

conky right:

own_window yes
own_window_argb_visual yes
own_window_argb_value 220
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent no
own_window_type normal
background no
font Zekton:size=8
xftfont Zekton:size=8
use_xft yes
xftalpha 0.5
update_interval 5.0
total_run_times 0
double_buffer yes
draw_shades yes
draw_outline yes
draw_borders no
draw_graph_borders yes
minimum_size 224 5
maximum_width 224
border_width 0
default_color white
default_shade_color black
default_outline_color black
alignment top_right
gap_x 5
gap_y 0
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer right

#Hightlightcolor
color0 cornflowerblue

TEXT
${font Sans-Serif:bold:size=12}
${color0}I T ${color}L ${color0}I S ${color}A S T I M E
${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%M"} >= 15}${if_match ${exec date +"%M"} < 20}${color0}${endif}${endif}A ${color}C ${if_match ${exec date +"%M"} >= 15}${if_match ${exec date +"%M"} < 20}${color0}${endif}${endif}Q U A R T E R ${color}D C
${if_match ${exec date +"%M"} >= 20}${if_match ${exec date +"%M"} < 30}${color0}${endif}${endif}T W E N T Y ${if_match ${exec date +"%M"} >= 25}${if_match ${exec date +"%M"} < 30}${color0}${endif}${else}${color}${endif}${if_match ${exec date +"%M"} >= 5}${if_match ${exec date +"%M"} < 10}${color0}${endif}${endif}F I V E ${color}X
${if_match ${exec date +"%M"} >= 30}${if_match ${exec date +"%M"} < 35}${color0}${endif}${endif}H A L F ${color}B ${if_match ${exec date +"%M"} >= 10}${if_match ${exec date +"%M"} < 15}${color0}${endif}${endif}T E N ${color}F T O
${else}${if_match ${exec date +"%M"} >= 45}${if_match ${exec date +"%M"} < 50}${color0}${endif}${endif}A ${color}C ${if_match ${exec date +"%M"} >= 45}${if_match ${exec date +"%M"} < 50}${color0}${endif}${endif}Q U A R T E R ${color}D C
${if_match ${exec date +"%M"} >= 35}${if_match ${exec date +"%M"} < 45}${color0}${endif}${endif}T W E N T Y ${if_match ${exec date +"%M"} < 40}${if_match ${exec date +"%M"} >= 35}${color0}${endif}${else}${color}${endif}${if_match ${exec date +"%M"} >= 55}${color0}${endif}F I V E ${color}X
H A L F B ${if_match ${exec date +"%M"} >= 50}${if_match ${exec date +"%M"} < 55}${color0}${endif}${endif}T E N ${color}F ${color0}T O${color}
${endif}${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%M"} > 5}${color0}${endif}${endif}P A S T ${color}E R U ${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%I"} == 9}${color0}${else}${color}${endif}N I N E
${if_match ${exec date +"%I"} == 1}${color0}${else}${color}${endif}O N E ${if_match ${exec date +"%I"} == 6}${color0}${else}${color}${endif}S I X ${if_match ${exec date +"%I"} == 3}${color0}${else}${color}${endif}T H R E E
${if_match ${exec date +"%I"} == 4}${color0}${else}${color}${endif}F O U R ${if_match ${exec date +"%I"} == 5}${color0}${else}${color}${endif}F I V E ${if_match ${exec date +"%I"} == 2}${color0}${else}${color}${endif}T W O
${if_match ${exec date +"%I"} == 8}${color0}${else}${color}${endif}E I G H T ${if_match ${exec date +"%I"} == 11}${color0}${else}${color}${endif}E L E V E N
${if_match ${exec date +"%I"} == 7}${color0}${else}${color}${endif}S E V E N ${if_match ${exec date +"%I"} == 12}${color0}${else}${color}${endif}T W E L V E
${if_match ${exec date +"%I"} == 10}${color0}${else}${color}${endif}T E N ${else}${if_match ${exec date +"%I"} == 8}${color0}${else}${color}${endif}N I N E
${if_match ${exec date +"%I"} == 12}${color0}${else}${color}${endif}O N E ${if_match ${exec date +"%I"} == 5}${color0}${else}${color}${endif}S I X ${if_match ${exec date +"%I"} == 2}${color0}${else}${color}${endif}T H R E E
${if_match ${exec date +"%I"} == 3}${color0}${else}${color}${endif}F O U R ${if_match ${exec date +"%I"} == 4}${color0}${else}${color}${endif}F I V E ${if_match ${exec date +"%I"} == 1}${color0}${else}${color}${endif}T W O
${if_match ${exec date +"%I"} == 7}${color0}${else}${color}${endif}E I G H T${if_match ${exec date +"%I"} == 10}${color0}${else}${color}${endif} E L E V E N
${if_match ${exec date +"%I"} == 6}${color0}${else}${color}${endif}S E V E N${if_match ${exec date +"%I"} == 11}${color0}${else}${color}${endif} T W E L V E
${if_match ${exec date +"%I"} == 9}${color0}${else}${color}${endif}T E N ${endif}${color}S E ${if_match ${exec date +"%M"} < 5}${color0}${endif}O C L O C K
${color0}${if_running mocp}${font Sans-Serif:bold:size=8}MUSIC ${hr 2}
${font Sans-Serif:normal:size=8}${execi 10 mocp -Q '%song\n%artist\n%album'}
${execbar mocp -Q '%cs/%ts*100' | bc -l}
${endif}

.conkybattery

#!/bin/bash

if on_ac_power; then
    echo "Battery charging."
  else
    acpi -b | grep "Battery" | awk '{print $5}' | cut -c 1-5
fi

Last edited by nexxx (2010-09-15 16:48:07)

Offline

#592 2010-09-15 17:45:26

Zom
Member
From: Sweden
Registered: 2007-10-27
Posts: 406

Re: conky configs and screenshots!

nexxx wrote:

.conkybattery

#!/bin/bash

if on_ac_power; then
    echo "Battery charging."
  else
    acpi -b | grep "Battery" | awk '{print $5}' | cut -c 1-5
fi

You can do this purely in conky if you didn't know.

Snippet from my laptops conkyrc:

${color3}POW:${color}\
  ${if_existing /proc/acpi/battery/BAT1/state no} AC only\
  ${else}${if_match ${battery_percent BAT1}<10}${color red}\
${endif}\
${battery_percent BAT1}$color%
${if_existing /proc/acpi/ac_adapter/ACAD/state off-line}\
      ${battery_time BAT1}${else}\
${if_match ${battery_percent BAT1}==100}      Charged\
${else}      Charging\
 ${endif}${endif}${endif}

This will show up as
POW:  Battery percent (Unless there's no battery connected)
Battery time (Unless it's either charging or fully charged)

Give it a spin and see what you can come up with.

If you want, I could post a screenshot, though it's really nothing special. smile

Offline

#593 2010-09-15 18:03:02

kaivalagi
Member
From: Norwich, UK
Registered: 2009-11-05
Posts: 145

Re: conky configs and screenshots!

Guys, quick heads up on a useful site just started and getting populated: http://conky-pitstop.wikidot.com


Running Arch 64 (Made the switch to Arch 10/2009)
AUR | BZR

Offline

#594 2010-09-17 02:05:37

rp181
Member
Registered: 2010-04-03
Posts: 81

Re: conky configs and screenshots!

DWz4Qs.jpg

This is a dual monitor setup, a 23" and a 17", hence the crease. The 17" is covered by a giant conky. Thumbnail is cutoff.

Offline

#595 2010-09-19 07:02:13

Fruity
Member
Registered: 2009-12-16
Posts: 198

Re: conky configs and screenshots!

${font DejaVu Sans Mono:size=9}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color 1500FF}'"$DJS"'${color}'" "/}

The above is my calendar line, I changed the colour to highlight today with: '${color 1500FF}'"$DJS"'${color}'

qqqs.png

But how can I change the colour for the days of the week? So Su Mo Tu We etc, are blue too.

Offline

#596 2010-09-19 10:12:35

VCoolio
Member
From: Netherlands
Registered: 2010-01-05
Posts: 119

Re: conky configs and screenshots!

Fruity wrote:

But how can I change the colour for the days of the week? So Su Mo Tu We etc, are blue too.

This works:

${color ffffff}${font monospace:size=10}${execpi 3600 cal -s | sed '1d' | sed '/^ *$/d' | sed -r '0,/./s/^(.{0})(.{20})/\1${color 8ab9d1}\2${color}/' | sed 's/\<'"$(date +%-d)"'\>/${color 1793d1}&${color}/'}

Offline

#597 2010-09-19 14:50:43

Fruity
Member
Registered: 2009-12-16
Posts: 198

Re: conky configs and screenshots!

Excellent, thanks VCoolio smile

Edit:- :bangs head on wall: OK, so how do I center it within the conky frame?

${font DejaVu Sans Mono:size=9}${execpi 3600 cal -m | sed '1d' | sed '/^ *$/d' | sed -r '0,/./s/^(.{0})(.{20})/\1${color 0C36F0}\2${color}/' | sed 's/\<'"$(date +%-d)"'\>/${color 0C36F0}&${color}/'}

Last edited by Fruity (2010-09-19 15:18:28)

Offline

#598 2010-09-22 18:48:05

zero_one
Member
Registered: 2010-07-07
Posts: 104

Re: conky configs and screenshots!

fruity, to get back to your older question about vertical color changing. i dont see it answered. you can set by using the -t (n) setting n as the threshold percent you want the secondary color to be visible. but fades every value between 0 and the -t number given. like this;

${cpugraph cpu0 20,220 00FF00 FF0000 -t 75}

zom, i wrote this to get a working else if, for my battery.

${if_empty ${battery_time}}${color grey}Battery:$color ${battery}
${else}${color grey}Battery: $color${battery_short}${color grey}${alignr}Remaining:${color FF3300}${battery_time}
${endif}

i used the same method to get my wlan0 and eth0 to only display when active.

Last edited by zero_one (2010-09-22 18:57:03)

Offline

#599 2010-09-23 17:19:29

Jebus_
Member
From: bat country
Registered: 2009-09-27
Posts: 116

Re: conky configs and screenshots!

tNW1nNA

out_to_x no
background no
out_to_console yes
update_interval 1.0
total_run_times 0
use_spacer none
short_units yes
if_up_strictness address

TEXT
^fg(\#CCFF00)$kernel ^fg(\#CCCCCC)| ^fg(\#C4DF90)CPU: ^fg(\#BBDDEA)$loadavg ^fg(\#C4DF90)[^fg(\#BBDDEA)$cpu%^fg(\#C4DF90)] ^fg(\#FFFFFF)| ^fg(\#C4DF90)MEM: ^fg(\#BBDDEA)$memperc% ^fg(\#GGGGGG)| ^fg(\#C4DF90)NET: ^fg(\#C4DF90)[^fg(\#BBDDEA)$downspeed ^fg(\#FF9900)$upspeed^fg(\#C4DF90)] ^fg(\#GGGGGG)| ^fg(\#CCFF00)[^fg(\#FFFFFF)${time ^fg(\#EEEEEE)%A ^fg(\#DDDDDD)%e ^fg(\#CCCCCC)%B ^fg(\#BBBBBB)%R}^fg(\#CCFF00)]

Offline

#600 2010-09-24 08:01:55

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: conky configs and screenshots!

that is the first inspirational conky I've seen in some time!

....time to get to work on my rc

Offline

Board footer

Powered by FluxBB