conky transparent window on Fedora with Gnome.

On Fedora with Gnome-shell 3, its been long time that I was not able to get transparent window. So, finally I thought to spend some time to try to fix that. Finally got that fixed with all the configurations below in the conkyrc.Β  Here the default color is set toΒ  LightSkyBlue but feel free to change that.

I hope this helps fedora community who is struggling to get transparent window. And here is the code :

own_window_transparent yes
own_window_class Conky
own_window_argb_visual yes
own_window_argb_value 0
own_window_type normal
own_window_colour LightSkyBlue
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager


Enhanced by Zemanta

conky script used to monitor server status remotely.

A typical Conky look
Image via Wikipedia

I was looking for something to monitor few details on the server. I thought about quite a lot of applications, some open source and some scripts developed in house. But my requirements were quite petty and the scripts and applications were quite heavy. So, I thought why not conky :).


So, with some quick work on conky script, I was able to get what I wanted and here it is for all of you.

This is a bash script, that will create the conky script and then start conky.

#!/bin/bash - 
#          FILE:
#         USAGE:  ./ 
#   DESCRIPTION:  Start conky to display who on all the servers.
#       OPTIONS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR: Amit Agarwal (aka),
#       COMPANY: Roamware India Pvt Ltd
#       CREATED: 12/21/2011 02:06:33 PM IST
# Last modified: Wed Dec 21, 2011  05:56PM
#      REVISION:  ---
echo killall conky processes
kill -9 $(ps -eaf|grep conkyrc|awk '{print $2}'|tr '\n' ' ')
cat <$conkyrc
background no
alignment top_right
update_interval 50
short_units yes

#color black
#color0 ff6633
#color1 ffffff
#color2 cccccc
#color3 ffff66

#xft settings
use_xft yes
xftfont arial:size=10

cpu_avg_samples 2
net_avg_samples 2
#window settings
own_window yes
own_window_transparent no
own_window_colour black
own_window_hints undecorated, sticky, skip_taskbar, below

gap_x 0
gap_y 0
alignment top_left
color0 ffffff
color1 00FF97
color2 FF6D00
color3 FE003C
color4 FD9C00
color5 FDF700
color6 9101FE
color7 A2FF00
color8 FE003C
color9 000000

for i in 1.1 1.2  1.3

    line1="$line1\${color$count}172.16.$i      "
    line2="$line2 \${color$count}Count : .....\${execi 50 ssh user@172.16.$i \"who\"|wc -l}.. "
    line3="$line3 \${color$count}..\${execi 50 ssh user@172.16.$i \"who\"|sed \"s/[    ].*//\" |sort |uniq -c|sort -nr|head -1|tr '\t' ' '|sed 's/ \\{2,\\}/ /g'}"
    line4="$line4 \${color$count}Processes:\${execi 50 ssh user@172.16.$i ps -fu user|wc -l}"
echo $line1 >>$conkyrc
echo $line2 >> $conkyrc
echo $line3 >> $conkyrc
echo $line4 >> $conkyrc
conky -c $conkyrc  &
Enhanced by Zemanta

Get yourself some conkyrc files.

Table of contents for conkyrc

  1. Get yourself some conkyrc files.
  2. Script to get yourself some conkyrc files
  3. Cont: Get yourself some more conkyrc files.

If you are looking for some nice conkyrc files, then you can head over to :

Ubuntu Forums

In this thread you can see some very nice conkyrc files with screenshots. You can browse through the thread and get the one that you like. But if you are like me and would like to download all of them to see the features and commands in each of them then you would need to copy each of these files and paste them separately. But if you have to do everything manually then there’s not much of being on Linux πŸ™‚

So here’s a one liner that you can use to download the page locally into a file called test:

wget -O test

And once that is done, you can use the command as below to get only the conkyrc file code and seperate them with “———————————–” and few nelines.

sed -n '/<pr/,/<\/pr/ p; 1d' test |\
sed '/<pr/,/auto">/ d'|\
sed 's#</pr>#\n-----------------------------------\n\n\n#'\

Well, neat isn’t it. Not quite, why do we need 2 steps, let’s try this in one:

curl|sed -n '// d'|\
sed 's##\n-----------------------------------\n\n\n#'>conkyr

Bingo, with this you will have all the conkyrc file extracted in the file called conkyrc in the same directory seperated with few newlines and β€œβ€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€“β€.

We will continue this some other time to get to a script, which can do all these for us, for now, chao…