kant-o's avatar

Metro Style Conky

47 64 32K (1 Today)
By kant-o   |   Watch
Published: September 25, 2011
© 2011 - 2020 kant-o
******************************************************* ** *
* There is a newer (slightly different) configuration for this conky in [link]
*
****************************************************** ** *

********* ** *
* Description
********** ** *
This simple conky configuration shows the following nformation:
conky.conf.11 - Time and date information;
conky.conf.21 - Operative System and Battery information
conky.conf.12 - Processes information;
conky.conf.31 - Processor and RAM information;
conky.conf.32 - FileSystem information;
conky.conf.41 - Network information;
conky.conf.42 - GMAIL account information;

Apart from the requirement for the Ubuntu font, this configuration is really simple, using only a few conky objects and a script provided with the configuration file. The aforementioned script (see mail.sh) is used to get the number of unread mails from google via pipelining several comands and using CURL.

************************************ ** *
* Installation (see below for terminal installation)
************************************* ** *
To install and use, the following 5 main steps are required:
1. Install conky and the Ubuntu font (if using recent Ubuntu (based) distributions, this step is most certainly not necessary).
2. Create a directory named .conky in your home folder;
3. Download the .zip file and unzip the contents to the newly created folder;
4. Edit the file mail.sh and place your gmail credentials (otherwise it will not fetch the number of mails in the gmail account).
5. Run conky.sh (if it does not run, make sure it is executable, otherwise type chmod +x ~.conky/conky.sh in the terminal before running the script).
If you want conky to startup with gnome, copy the file named conky.sh.desktop to ~.config/autostart/
f you do not want a given module to run (e.g. the GMAIL module), edit the conky.sh file and comment or remove the line that loads the respective configuration file (in the case of GMAIL, that would be conky.conf.24 - line 2 - column 4).

To install using the terminal, follow the next steps
1. In Ubuntu (I have not tested the config in Ubuntu, only in Arch)
sudo apt-get install conky-all
In Arch Linux
sudo yaourt -S conky-lua ttf-ubuntu-font-family
2. mkdir ~/.conky && cd ~/.conky
3. wget www.deviantart.com/download/260230653/metro_style_conky_by_kant_o-d4axn99.zip
4. unzip MetroStyleConky.zip
5. chmod +x conky.sh
6. chmod +x mail.sh
7. ./conky.sh
8. (optional) run gnome-session-properties and add a new startup program pointing to conky.sh to have the conky automatically comming up when you start the computer.

P.S.: I'm neither a fan of iOS (wallpaper) nor of Metro UI. I just thought of seeing how conky could look using a Metro similar style.

By the way, the wallpaper is from Legnis and may be found here: [link]
Comments64
anonymous's avatar
Join the community to add your comment. Already a deviant? Log In
Tunnelvizr's avatar
TunnelvizrHobbyist Photographer
Solid work, just have to start network window manually after metro starts for the first time ( conky -c ~/.conky/conky.conf.14 -x 810 -y 280 -p 1 ) which you've provided. no glitching or frame issues just smooth..
kant-o's avatar
Thanks for the comment. I'm glad you like it. =D
As for the network window related issue, maybe you can try to change the "sleep" time before that window starts. Try, for example, changing value 1 to 10 after -p.
Tunnelvizr's avatar
TunnelvizrHobbyist Photographer
got it, thankz!
kant-o's avatar
You are welcome =D
unlimit-ibda3's avatar
how i can setup my email
kant-o's avatar
To setup the email, you just have to edit the file mail.sh (sudo gedit ~/.conky/mail.sh) and place your USERNAME and PASSWORD in the right places. You can find a small tutorial in here: [link]
unlimit-ibda3's avatar
my desktop is too small & this too big i want to add it help me
kant-o's avatar
Hi. Maybe you can try to change the positioning of the several blocks. I suggest you install it as explained. After that, just open the file conky.sh and replace the last four lines of that file into the following ones:
conky -c ~/.conky/conky.conf.13 -x 30 -y 440 -p 1
conky -c ~/.conky/conky.conf.23 -x 290 -y 440 -p 1
conky -c ~/.conky/conky.conf.14 -x 550 -y 280 -p 1
conky -c ~/.conky/conky.conf.24 -x 550 -y 200 -p 1

This should give you a more "vertical" configuration.
Notice that changing the x and y values on that file moves the several blocks around...
Hope this helps! :D
unlimit-ibda3's avatar
plz can you give me the files with the changes plz
kant-o's avatar
There is really no need to. If you download the zip file [link]
and install it, you will find the conky.sh file in the ~/.conky directory. Just open it with gedit (sudo gedit ~/.conky/conky.sh), and replace the last four lines with the ones indicaded above.
adrian-tm's avatar
this is the first conky i tried and it was awesome. i have only one problem though. the net info isn't showing up properly. i usually start with the wireless router opened first before opening my laptop. when i start the laptop, the net info doesn't appear. after the Filesystem pops up there will be a short pause and the net info will not appear and will skip to gmail. but when i start the laptop with no wireless router connection, the net info appears. can you help me with this?
kant-o's avatar
Hi. I'm glad you use it and like it! Thanks for the comment.
I'm not sure what the problem can be, but there are a few things you can try to troubleshoot this problem:
1st Have you tried running conky.conf.14 from the command line afterwards?
Just open a terminal and issue the following command to see if that cell comes up:
conky -c ~/.conky/conky.conf.14 -x 810 -y 280 -p 1

2nd The conky.conf.14 uses the eth0 and wlan0 as the sources of information. Are these the ones you have on your system?
Open a terminal and issue one of the following commands:
ifconfig
or
ip addr
and tell me which are the network interfaces you have available.
adrian-tm's avatar
this is what appeared after typing those 2 lines


ifconfig
eth0 Link encap:Ethernet HWaddr e8:9a:8f:a8:42:8b
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:42 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11220 errors:0 dropped:0 overruns:0 frame:0
TX packets:11220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2107908 (2.1 MB) TX bytes:2107908 (2.1 MB)

wlan0 Link encap:Ethernet HWaddr d0:df:9a:f7:d4:bf
inet addr:192.168.1.33 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::d2df:9aff:fef7:d4bf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:109243 errors:0 dropped:0 overruns:0 frame:0
TX packets:115304 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:97485393 (97.4 MB) TX bytes:19542603 (19.5 MB)



ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether e8:9a:8f:a8:42:8b brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether d0:df:9a:f7:d4:bf brd ff:ff:ff:ff:ff:ff
inet 192.168.1.33/24 brd 192.168.1.255 scope global wlan0
inet6 fe80::d2df:9aff:fef7:d4bf/64 scope link
valid_lft forever preferred_lft forever
kant-o's avatar
wlan0 is there. It should work then...
adrian-tm's avatar
yes it is working, but it is not showing up properly.
kant-o's avatar
What if you stop conky and just start the net module with this command:
conky -c ~/.conky/conky.conf.14 -x 810 -y 280 -p 1
?
Zaatharen's avatar
ZaatharenStudent General Artist
Hey there! Awesome metro conky is awesome!
This is second time im using conky and this one actually works and it is easily configurable :D First time i had conky was in distro called PinguyOS, basically cleaned ubuntu with look of MAC OS X and conky panel on right side. Insane thing.
Since then im using Mint distribution :) It works and im quite happy with it, recently i did upgrade from Mint10 64bit with KDE to Mint11 with Gnome and it works flawless, so here is screenshot from mine laptop and yes resolution of mine ThinkPad is really 1680x1050 :3
[link]

Also do you have any idea how to put sensors information to conky? (Im not familiar with programming much, maybe a little JAVA, im quite pure HW guy :D)

Keep up great work ^.^
kant-o's avatar
Hi =) I'm glad you like it! It looks good on your machine with that wallpaper!
As for the sensors, it depends of which specific information you are referring to. You can have a look in [link] to see all the variables you can insert on conky. After identifying what you want, you just have to edit the conky config files and add the variable between brackets and preceeded by a dollar ($). For example: to see the acpi temperature, you include something like $acpifan in the configuration file and restart conky. Hope I was clear.
Zaatharen's avatar
ZaatharenStudent General Artist
Hey there! Thanks, i moved conky abit, so it doesnt interfere with dragon :)
I mean temperature sensors like cpu, gpu, etc.
Oh okay, i try some of them and see what happens :D
Also im having problems with info about charging, when im on adapter it just showes "U, zbývá" (zbývá is czech word for "remaining") but it should show Connected to AC (Připojen na nabíječku). When im on battery only "U" showes o.o
Dreit's avatar
[link] Thank you! :) (translated to Czech language, font is Terminus, small changes ^^;)
kant-o's avatar
Nice setup =D! And its amazing the small amount of memory you are using!
Dreit's avatar
Thank you :)
Well, I still mean that 254MB is so much, but I have no idea what to turn off :D If you're interested, then I'm using Debian 'testing' (I was using 'unstable' for about two years, but last upgrades broke it, that sometimes happens :( ) and Fluxbox ;)
kant-o's avatar
I actually use arch to get the "minimum number of services on" effect, though I could use a lighter DE. =D
Dreit's avatar
Lighter DE is really good choice, but first days are really difficult :(
anonymous's avatar
Join the community to add your comment. Already a deviant? Log In