Skip to content

Instantly share code, notes, and snippets.

@bigeagle
Created December 31, 2013 06:09
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 bigeagle/8193247 to your computer and use it in GitHub Desktop.
Save bigeagle/8193247 to your computer and use it in GitHub Desktop.
conky for i3-bar
### Conky configuration file
## Output is printed to the console -> i3bar
# Modified: 27.11.2011 - mseed : http://www.fastlinux.eu
# Modified: 10.09.2012 - Sagar Behere
## No output to X <yes/no>
out_to_x no
## Create own window to draw <yes/no>
own_window no
## Print everything to console?
out_to_console yes
## Use double buffering (reduces flicker, not needed for console output)
double_buffer no
## Set to yes if you want Conky to be forked in the background
background no
## Update interval in seconds
update_interval 2.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
## Stuff after 'TEXT' will be formatted on screen
TEXT
[
{
"full_text": "CPU ${cpu cpu1}% ${cpu cpu2}% ${cpu cpu3}% ${cpu cpu4}%",
"color": "\#e39792"
},
{"full_text": "TEMP ${execpi 2 sensors|grep Physical|cut -c18-21}°C", "color": "\#eec68b"},
{"full_text": "RAM ${mem}/${memmax}", "color": "\#e6ee8b"},
{"full_text": "/home ${fs_free /home}", "color": "\#8beea1"},
{"full_text":"eno1 ${downspeed eno1}/s ${upspeed eno1}/s", "color": "\#8be4ee"},
{"full_text":"wlp2s0 ${downspeed wlp2s0}/s ${upspeed wlp2s0}/s", "color": "\#8bc0ee"},
{"full_text":"${time %Y-%m-%d %a} ${time %H:%M}", "color": "\#bc8bee"}],
#!/bin/bash
echo '{"version": 1}'
echo '['
echo '[],'
exec conky -c $HOME/.i3/conky.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment