Skip to content

Instantly share code, notes, and snippets.

@niklasad1
Created April 2, 2017 14:28
Show Gist options
  • Save niklasad1/1aee681d55148a7db8b15f0dbceaeef4 to your computer and use it in GitHub Desktop.
Save niklasad1/1aee681d55148a7db8b15f0dbceaeef4 to your computer and use it in GitHub Desktop.
conkyrc
out_to_x no
own_window no
out_to_console yes
background no
max_text_width 0
net_avg_samples 3
# Update interval in seconds
update_interval 2
# 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 link
# 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 1
# Stuff after 'TEXT' will be formatted on screen
TEXT
# JSON for i3bar
[
{
"icon" : "$HOME/.i3/xbmicons/mem.xbm",
"full_text" : "${mem} [ ${memperc}% ] ",
"color" : ${if_match ${memperc}>80}"\#ff0000"${else}"\#88ABC4"${endif}
},
{
"icon" : "$HOME/.i3/xbmicons/hdd.xbm",
"full_text" : "${fs_used /} [ ${fs_used_perc /}% ] ",
"color" : ${if_match ${fs_used_perc /}>90}"\#ff0000"${else}"\#88ABC4"${endif}
},
{
"icon" : "$HOME/.i3/xbmicons/temp.xbm",
"full_text" : "${acpitemp}°C ",
"color" : ${if_match ${acpitemp}>55}"\#ff0000"${else}"\#88ABC4"${endif}
},
{
"full_text" : " ${uptime_short} ",
"color" : "\#88ABC4"
},
{
"full_text" : " ${wireless_essid wlp58s0} [ ${addr wlp58s0} ] ",
"color" : "\#88ABC4"
},
{
"full_text" : " ${downspeed wlp58s0}}/s ",
"color" : "\#88ABC4"
},
{
"full_text" : " ${upspeed wlp58s0}/s ",
"color" : "\#88ABC4"
},
{
"full_text" : " ${exec amixer get Master -M | grep -oP '\d*%' | head -n1} ",
"color" : "\#88ABC4"
},
{
"full_text" : " ${battery_percent}% " ,
"color" : ${if_match ${battery_percent}<15}"\#ff0000"${else}"\#88ABC4"${endif}
},
{
"full_text" : " ${time %A %d %b} ${time %R} ",
"color" : "\#88ABC4"
},
{
"full_text" : ""
}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment