Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-28-2016, 03:11 PM   #1
LQ Newbie
Registered: May 2016
Posts: 2

Rep: Reputation: Disabled
Conky confiq question

Hello everyone.
I have a problem with some code for conky.
I get duplicates in the percentages in used resources.
Maybe you know a good site for a screenshot?
Any help would be much appreciated!

background yes
use_xft yes
xftfont monospace:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour black
double_buffer yes
minimum_size 1 1
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color 000000
default_outline_color d9d7d6
alignment mr
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
color1 FF0000 # - red
color2 FFFF00 # - yellow
color3 00FF00 # - green

# Output

${font sans:bold:size=12}BREATHE
${font sans:bold:size=12}SMILE
${font sans:bold:size=12}ADAPT

${font sans:bold:size=12}USAGE ${hr 2}
${font sans:bold:size=10}CPU0 ${if_match ${cpu cpu0}<=33}${color3}${cpu cpu0}%${color}${else}${if_match ${cpu cpu0}<=66}${color2}${cpu cpu0}%${else}${if_match ${cpu cpu0}>99}${color1}${blink ${cpu cpu0}%}${endif}${endif}${color}${cpubar cpu0} 
${font sans:bold:size=10}Freq: ${freq 1}MHz
${font sans:bold:size=10}CPU1 ${if_match ${cpu cpu1}<=33}${color3}${cpu cpu1}%${color}${else}${if_match ${cpu cpu1}<=66}${color2}${cpu cpu1}%${else}${if_match ${cpu cpu1}>99}${color1}${blink ${cpu cpu1}%}${endif}${endif}${color}${cpubar cpu1}
${font sans:bold:size=10}Freq: ${freq 2}MHz
${font sans:bold:size=10}RAM ${if_match ${memperc}<=33}${color3}${memperc}%${color}${else}${if_match ${memperc}<=66}${color2}${memperc}%${else}${if_match ${memperc}>99}${color1}${blink ${memperc}%}${endif}${endif}${endif}${endif}${color}$membar
${font sans:bold:size=10}DISK ${if_match ${fs_used_perc}<=33}${color3}${fs_used_perc}%${else}${if_match ${fs_used_perc}<=66}${color2}${fs_used_perc}%${color}${else}${if_match ${fs_used_perc}>99}${color1}${blink ${fs_used_perc}%}${endif}${endif}${color}$fs_bar
${font sans:bold:size=10}BATTERY ${if_match ${battery_percent BAT0}<=33}${color1}${blink ${battery_percent BAT0}%}${color}${else}${if_match ${battery_percent BAT0}<=66}${color2}${battery_percent BAT0}%${else}${if_match ${battery_percent BAT0}>99}${color3}${battery_percent BAT0}%${endif}${endif}${endif}${color}${battery_bar BAT0}

${font sans:bold:size=12}SYSTEM ${hr 2}
${font sans:bold:size=10}$sysname $kernel $alignr $machine
${font sans:bold:size=10}Host:$alignr$nodename
${font sans:bold:size=10}Uptime:$alignr$uptime

${font sans:bold:size=12}TOP PROCESSES ${hr 2}
${font sans:bold:size=10}${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
${top_mem name 3}${alignr}${top mem 3} %
${top_mem name 4}${alignr}${top mem 4} %
${top_mem name 5}${alignr}${top mem 5} %

${font sans:bold:size=12}SHORTCUT KEYS ${hr 2}
${font sans:bold:size=10}
Super+space$alignr Main Menu
Super+t$alignr Terminal
Super+f$alignr File Manager
Super+e$alignr Editor
Super+w$alignr Web Browser
Super+q$alignr Force Quit
Old 05-28-2016, 03:29 PM   #2
LQ Newbie
Registered: May 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Nevermind. Figured it out.
Forgot about endifs at the end of every line.
Old 05-29-2016, 10:48 AM   #3
LQ 5k Club
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: High Sierra
Posts: 8,664
Blog Entries: 17

Rep: Reputation: Disabled
Good job and well done.

Can I offer some advice? In the future, do include the software version and the method used to install it
when asking for assistance.

Good site for screenshots? I use

Have a Good Day!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Conky question: How can you pass Conky variables to scripts? evan1026 Linux - Software 1 12-29-2012 07:52 PM
conky question: passing conky-variable to shell-script zlin50 Linux - Software 2 12-29-2012 07:47 PM
conky question SeRi@lDiE Slackware 6 01-23-2011 01:50 AM
newbie can't seem to confiq ndiswrapper unknowncat Linux - Wireless Networking 6 12-10-2009 03:26 PM
conky question... reksav Linux - Software 1 03-28-2007 08:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration