Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Matael/dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
matael committed Dec 26, 2015
2 parents 801799e + 1ee60eb commit 4bfe8ba
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
49 changes: 49 additions & 0 deletions conkyrc
@@ -0,0 +1,49 @@
out_to_x no
own_window no
out_to_console yes
background no
max_text_width 0

# 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

# JSON for i3bar

[
{ "full_text" : "${execi 5 /home/matael/bin/mpd_state.sh}", "color": "\#ffffff"},
{ "full_text" : "${if_up enp3s0}${addr enp3s0}${else}Link Down${endif}", "color" : "\#ffffff"},
{ "full_text" : "/ ${fs_free /}" , "color" : "\#ffffff" },
{ "full_text" : "/home ${fs_free /home}" , "color" : "\#ffffff" },
{ "full_text" : "/storage ${fs_free /storage}" , "color" : "\#ffffff" },
# { "full_text" : "CPU ${cpu cpu0}_${cpu cpu1}_${cpu cpu2}_${cpu cpu3}_${cpu cpu4}_${cpu cpu5}_${cpu cpu6}_${cpu cpu7}" , "color" : "\#ffffff" },
{ "full_text" : "${loadavg}" , "color" : "\#ffffff" },
{ "full_text" : "RAM ${memperc}%" , "color" :
${if_match ${memperc}<90}"\#ffffff"${else}"\#ff0000"${endif} },
{ "full_text" : "${time %d/%m/%y - %H:%M}", "color" : "\#ffffff"}],
13 changes: 13 additions & 0 deletions scripts/conky-i3bar
@@ -0,0 +1,13 @@
#!/bin/sh

# Send the header so that i3bar knows we want to use JSON:
echo '{"version":1}'

# Begin the endless array.
echo '['

# We send an empty first array of blocks to make the loop simpler:
echo '[],'

# Now send blocks with information forever:
exec conky -c $HOME/.conkyrc

0 comments on commit 4bfe8ba

Please sign in to comment.