Skip to content

Instantly share code, notes, and snippets.

Created January 18, 2014 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8488520 to your computer and use it in GitHub Desktop.
Save anonymous/8488520 to your computer and use it in GitHub Desktop.
out_to_x no
own_window no
out_to_console yes
background no
max_text_width 0
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
short_units yes
# How strict should if_up be when testing an interface for being up?
# The value is one of up, link or address, to check for the interface
# being solely up, being up and having link or being up, having link
# and an assigned IP address.
if_up_strictness address
# Add spaces to keep things from moving about? This only affects certain objects.
# use_spacer should have an argument of left, right, or none
use_spacer left
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# template {"full_text": "", "color":"\#"},
# Stuff after 'TEXT' will be formatted on screen
TEXT
[
# Uptime
{"full_text": "uptime: ${uptime_short}", "color":"\#DCDCCC"},
# Processes
#{"full_text" : "A/R", "separator": false, "separator_block_width":0, "color" : "\#FFFFFF"},
#{"full_text" : "$processes", "separator": false, "separator_block_width":0, "color" : "\#DAA520"},
#{"full_text" : "/", "separator": false, "separator_block_width":0, "color" : "\#FFFFFF"},
#{"full_text" : "$running_processes", "color" : "\#DAA520"},
## Network
{"full_text" : "↓" , "separator": false, "separator_block_width":0, "color" : "\#FFFFFF"},
{"full_text" : "${downspeed eth0}", "color" : "\#DAA520"},
{"full_text" : "↑" , "separator": false, "separator_block_width":0, "color" : "\#FFFFFF"},
{"full_text" : "${upspeed eth0}", "color" : "\#DAA520"},
# Memory
{"full_text": "mem:", "separator": false, "separator_block_width":3},
{"full_text": "${mem}/${memmax}", "color":"\#83b3a3"},
{"full_text": "${membar}", "color":"\#83b3a3"},
# SWAP
{"full_text": "swap:", "separator": false, "separator_block_width":3},
{"full_text": "${swapperc}%", "color":"\#83b3a3"},
# CPU
{"full_text": "cpu:", "separator": false, "separator_block_width":3},
{"full_text": "${cpu}%", "min_width":"000%", "separator": false, "separator_block_width":3, "color":"${if_match ${cpu} < 33}\#7f9f7f${else}${if_match ${cpu} > 66}\#dca3a3${else}\#c3bf9f${endif}${endif}"},
#{"full_text": "${cpubar}%", "min_width":"000%", "separator": false, "separator_block_width":3, "color":"${if_match ${cpu} < 33}\#7f9f7f${else}${if_match ${cpu} > 66}\#dca3a3${else}\#c3bf9f${endif}${endif}"},
# UPS
# LA
#{"full_text": "${exec awk '{print $1}' /proc/loadavg}", "separator": false, "separator_block_width":3, "color":"${if_match ${exec awk '{print $1}' /proc/loadavg} < 1.0}\#7f9f7f${else}${if_match ${exec awk '{print $1}' /proc/loadavg} > 3.0}\#dca3a3${else}\#c3bf9f${endif}${endif}"},
#{"full_text": "${exec awk '{print $2}' /proc/loadavg}", "separator": false, "separator_block_width":3, "color":"${if_match ${exec awk '{print $2}' /proc/loadavg} < 1.0}\#7f9f7f${else}${if_match ${exec awk '{print $2}' /proc/loadavg} > 3.0}\#dca3a3${else}\#c3bf9f${endif}${endif}"},
{"full_text": "${exec awk '{print $3}' /proc/loadavg}", "color":"${if_match ${exec awk '{print $3}' /proc/loadavg} < 1.0}\#7f9f7f${else}${if_match ${exec awk '{print $3}' /proc/loadavg} > 3.0}\#dca3a3${else}\#c3bf9f${endif}${endif}"},
# Caps lock indicator
{
"full_text": "CAPS",
"color":
${if_match "${exec xset q | grep 'Caps Lock' | sed 's/.*Caps Lock:[ ]*\([^ ]*\).*/\1/'}"=="on"}"\#00CC00"${else}
"\#222222"
${endif}
},
{"full_text" : "♪", "separator": false, "separator_block_width":0, "color" : "\#FFFFFF"},
{ "full_text" : "${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"}%" , "color" : "\#5C91AD"},
# Date
{"full_text": "${time %H:%M}", "separator": false, "separator_block_width":3, "color": "\#9B30FF"},
{"full_text": "${time %a,%d/%m/%Y}", "separator": false, "separator_block_width":3, "color": "\#CD8500"}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment