Peppermint OS Community Forum

Resources => User Submitted Tutorials => Topic started by: 10i on September 02, 2014, 12:05:41 pm

Title: Conky - quick start guide
Post by: 10i on September 02, 2014, 12:05:41 pm
I've loved status monitors since I first laid eyes on statbar for Windows XP (check this http://www.statbar.nl/ (http://www.statbar.nl/)) at a LAN many moons ago. I have always liked to see what my network speed and cpu speed are, especially when things start to slow down.

When I started using Linux I searched for something similar, but instead I found something better. I discovered Conky.

(http://4.bp.blogspot.com/-Cg9SBRloSYE/U9atlfiPR2I/AAAAAAAAA9s/rsBYC6pEmsE/s1600/screenshot.png)

To install Conky:

Open a Terminal (click Menu >> Accessories >> Terminal)
Type in:
Code: [Select]
 sudo apt-get install conky
Press <ENTER>
Type in your sudo password and press <ENTER>
Press Y if prompted

You now have the greatest status monitor ever installed on your computer.

To make it easier for you to work with Conky (ie to make it autorun and to configure it) install Conky Manager

Go back to your Terminal window
Type in:
Code: [Select]
sudo apt-add-repository -y ppa:teejee2008/ppa
Press <ENTER>
Type in:
Code: [Select]
sudo apt-get update
Press <ENTER>
Type in:
Code: [Select]
sudo apt-get install conky-manager

Now close the Terminal window.
Click Menu >> Accessories >> Conky manager
Click Application Settings (top right, 3rd button from the right)
Make sure run Conky at Startup is on

Now Conky will run every time your PC boots.

Click on one of the themes (like Gotham)
In the top row of icons, click Open theme folder (the yellow folder)
Create a text file, click File >> Create New >> Empty file
Give it a name, like mytheme.txt
and paste your conky script of choice in it. This is mine:

Spoiler (click here to view / hide)
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 normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 700
maximum_width 400
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color green
default_shade_color black
default_outline_color white
alignment top_right
gap_x 12
gap_y 12
no_buffers yes
text_buffer_size 1024
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
${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
Battery Status: $alignr$battery

${font sans-serif:bold:size=8}PROCESSORS ${hr 2}
${font sans-serif:normal:size=8}${cpugraph cpu1}
CPU1: ${cpu cpu1}% ${cpubar cpu1}

${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}DISKS ${hr 2}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}

${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${top_mem name 5}${alignr}${top mem 5} %

${font sans-serif:bold:size=8}NETWORK ${hr 2}
${font sans-serif:normal:size=8}IP address: $alignr ${addr wlan0}
ESSID: $alignr ${wireless_essid wlan0}
${downspeedgraph wlan0}
DLS:${downspeed wlan0} kb/s $alignr total: ${totaldown wlan0}
${upspeedgraph wlan0}

ULS:${upspeed wlan0} kb/s $alignr total: ${totalup wlan0}
[close]

Save your text file, then restart the program.
Select your theme from the list and there you go.

Adapted from http://myiceadventure.blogspot.com/2014/07/more-conky-goodness.html
Please feel free to share your Conky theme also.
Title: Re: Conky - quick start guide
Post by: PCNetSpec on September 02, 2014, 05:00:48 pm
Cheers 10i .. another well written tutorial :)
Title: Re: Conky - quick start guide
Post by: AndyInMokum on September 02, 2014, 05:12:28 pm
Hi 10i, that's a cracking good tutorial  ;).  I have to admit, Conky can be really overwhelming and frustrating; especially for nOObs.  Conky Manager really takes the sting out of the tail.  Anyone is able to have a great looking Conky setup within minutes instead of the, days - weeks - months etc  :D.  A "Conky Corner" sounds like a good idea   ;).
Title: Re: Conky - quick start guide
Post by: VinDSL on September 02, 2014, 08:38:50 pm
Good job!
Title: Re: Conky - quick start guide
Post by: 10i on September 03, 2014, 12:54:20 am
Thanks everyone :)
Title: Re: Conky - quick start guide
Post by: Brotherred on April 13, 2016, 04:31:01 pm
Awesome Tutorial Thanx.
Title: Re: Conky - quick start guide
Post by: 10i on April 15, 2016, 04:42:21 am
Awesome Tutorial Thanx.
Much appreciated :)

Sent from my MediaPad T1 8.0 Pro using Tapatalk

Title: Re: Conky - quick start guide
Post by: tppthpthp on July 20, 2016, 10:02:45 am
Awesome tutorial!
I've been curious how Conky worked and changing the look/feel and this definitely helps.
Still a ways to go to having a full understanding but this really helped me in getting there!
Thank You!
Title: Re: Conky - quick start guide
Post by: FERE on March 09, 2019, 09:35:20 am
where should the Text File go ?

any help

thanks
Title: Re: Conky - quick start guide
Post by: PCNetSpec on March 09, 2019, 09:55:47 am
Quote
In the top row of icons, click Open theme folder (the yellow folder)
Create a text file, click File >> Create New >> Empty file
Give it a name, like mytheme.txt
and paste your conky script of choice in it

is that what you mean ?
Title: Re: Conky - quick start guide
Post by: FERE on March 10, 2019, 01:50:33 am
Quote
In the top row of icons, click Open theme folder (the yellow folder)
Create a text file, click File >> Create New >> Empty file
Give it a name, like mytheme.txt
and paste your conky script of choice in it

is that what you mean ?

why is this empty and how to add themes ?

thanks

(https://i.postimg.cc/wtWFyfp9/Screenshot-2019-03-10-07-53-01.png) (https://postimg.cc/wtWFyfp9)

yes

thank u so much for helping out

i want to learn this concky app  but i think i did something wrong :'(
Title: Re: Conky - quick start guide
Post by: PCNetSpec on March 10, 2019, 07:01:12 am
Ohhhhh no, no, no my friend .. don't be dragging me into Conky support, that's like being asked to hold a hornets nest whilst drowning in quicksand at the best of times :))

I'll answer general 'Linux' questions, and more specifically 'Peppermint' questions, but I personally can't offer support for third party software (specially where it isn't even part of Peppermint in the first place) ;)

There are TONS of tutorials out there explaining where you can get Conky themes, or how to use Conky Manager .. such as
https://itsfoss.com/conky-gui-ubuntu-1304/
and
https://www.linux.com/learn/how-install-and-configure-conky
for example.

Good luck ;)
Title: Re: Conky - quick start guide
Post by: kopyguy on March 11, 2019, 08:52:39 pm
Nice tutorial on Conky. I really enjoy taking them apart to modify and make the my own.

Steve
Title: Re: Conky - quick start guide
Post by: stevesveryown on May 05, 2019, 12:25:31 pm
I use Variety wallpaper changer these days for my desktop clock and quote but Conky can be fun.  Thanks for the tutorial.
Title: Re: Conky - quick start guide
Post by: jintymac on June 28, 2019, 08:36:15 am
Thanks very much for the conky tutorial. I really wanted to try it out, but it seemed a little scary until I read this.

I'm new to linux so this really helped me out  ;D
Title: Re: Conky - quick start guide
Post by: 10i on August 01, 2019, 07:30:39 am
Thanks very much for the conky tutorial. I really wanted to try it out, but it seemed a little scary until I read this.

I'm new to linux so this really helped me out  ;D
Glad you liked it, Conky can be as intricate or simple as you want it to be. There is so much you can do with it, that I only scratch the surface of what is possible really.