Recently Added

Notes & Bookmarks

  1. Quasars; power and metrics beyond all comprehension. Staggeringly beautiful information... and very well written.
  2. "I'm sorry. I can't come in today. Religious holiday. The feast of...Maximum Occupancy."pic.twitter.com/mkgxPWfNj2
  3. Verifying myself: I am sgnls on Keybase.io. UJa01G4v3YRJYB1LFjDRSf1Nh0bh1sOykCbq / https://keybase.io/sgnls/sigs/UJa01G4v3YRJYB1LFjDRSf1Nh0bh1sOykCbq
  4. Be sure to take care of your own infrastructure(s); purge dumps, tunnel and lock-down egress transit, encrypt and permission CORRECTLY!
  5. It really doesn't matter what else gets released; Sikth's 'The Future in Whose Eyes?' is THE album of 2017. #albumoftheyear @SikthOfficialpic.twitter.com/P5houdf1yx

Conky v1

Updated : 12:19:27pm, 28th Feb 2016

So, I've been playing with various things and Conky remains one of the coolest, considering how simple the syntax is.

Conky v1

Of course, there is plenty documented that will enable you to tweak either the default configuration or ones tweaked by other people, and some of the best places to check are the ArchLinux forums and these pretty badass examples.

.conkyrc
#							
#  Version : v0.2
#  License : GNU GPL version 2+
#

background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 1670
gap_y 60
minimum_size 200 900
maximum_width 200
own_window yes
own_window_type conky
own_window_argb_visual yes
own_window_transparent yes
own_window_colour FFFFFF
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment tl

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

default_color FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 000000

lua_load ~/.conky/luna.lua
lua_draw_hook_post main


TEXT
${font Sans:size=8,weight:bold}${color4}$nodename ${hr 2}

${offset 65}${font Sans:size=8,weight:normal}${color1}$uptime
${font sans-serif:normal:size=8}${cpugraph cpu1}
${font sans-serif:normal:size=8}${memgraph mem}${voffset 10}


${offset 55}${font Sans:size=7.5,weight:bold}${color}CPU
${offset 55}${font Sans:size=7,weight:normal}${color4}${top name 1}${alignr}${top cpu 1}%
${offset 55}${font Sans:size=7,weight:normal}${color1}${top name 2}${alignr}${top cpu 2}%
${offset 55}${font Sans:size=7,weight:normal}${color2}${top name 3}${alignr}${top cpu 3}%
${offset 55}${font Sans:size=7,weight:normal}${color3}${top name 4}${alignr}${top cpu 4}%
${offset 55}${font Sans:size=7,weight:normal}${color3}${top name 5}${alignr}${top cpu 5}%


${voffset 15}
${offset 55}${font Sans:size=7.5,weight:bold}${color}MEM
${offset 55}${font Sans:size=7,weight:normal}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
${offset 55}${font Sans:size=7,weight:normal}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
${offset 55}${font Sans:size=7,weight:normal}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
${offset 55}${font Sans:size=7,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 4}%
${offset 55}${font Sans:size=7,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 5}%



${voffset 5}
${offset 55}${font Sans:size=7.5,weight:bold}${color}DISK
${offset 55}${font Sans:size=7,weight:normal}${color}Free : ${fs_free } / ${fs_size }

${voffset 65}

${offset 10}${font Sans:size=7.5,weight:bold}${color}eth0           		 wlan0
${offset 15}${color2}${addr eth0}${alignr}${addr wlan0}
	
${offset 10}${color}Up: $color2${upspeed eth0} ${alignr}${color}Down: $color2${downspeed wlan0}
${offset 10}${color}Down: $color2${downspeed eth0} ${alignr}${color}Down: $color2${downspeed wlan0}

${color4}${hr 2}

${if_running clementine}${execpi 1 clem.pl }${endif}

And the Perl file (clem.pl) which pulls data from QDBUS;

#!/usr/bin/env perl

#
# 2013 SGNLS.net 
#
# Based on code by Aaron Lewis
# Standard GPLv2 license
# Redistribution allowed
#

use warnings;
use strict;

my $artist = "N/A";
my $title = "N/A";
my $album = "N/A";
my $year = "N/A";
my $arturl = "";
my $genre = "N/A";
my $bitrate = "N/A";
my $samplerate = "N/A";
my $progress = "0";

my $pos = `qdbus org.mpris.clementine /Player PositionGet`;
my $length = "0";

my @msg = `qdbus org.mpris.clementine /Player GetMetadata 2>/dev/null`;

foreach (@msg) {
	$title = $1 if /^title: (.*)/;
	$album = $1 if /^album: (.*)/;
	$artist = $1 if /^artist: (.*)/;
	$year = $1 if /^year: (.*)/;
	$arturl = $1 if /arturl: (.*)/;
	$genre = $1 if /genre: (.*)/;
	$bitrate = $1 if /audio-bitrate: (.*)/;
	$samplerate = $1 if /audio-samplerate: (.*)/;
	$length = $1 if /^mtime: (\d+)/;
}

$progress = int(100 * $pos / $length) if ( $pos && $length );

use File::Basename;
my $arturls = basename($arturl);

print "\${image ";
print "/tmp/${arturls}";
print " -p 0,580 -s 200x200}";

print "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
print "\${color2}\${font Sans:size=7.5,weight:bold}\${alignc}'${title}'\n\n";
print "\${color3}\${font Sans:size=7.5,weight:bold}\${alignr}${artist}\n";
print "\${color3}\${font Sans:size=7.5,style:italic}\${alignr}${album} (${year})\n\n";
print "\${color3}\${execbar echo " . $progress . "}\n\n";
print "\${color3}\${font Sans:size=7,style:italic}\${alignr}${genre} (${bitrate} k) \n\n";

Updated : 16th June

This is better;

#							
#  Version : v0.2
#  License : GNU GPL version 2+
#

# background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 1670
gap_y 60
minimum_size 200 900
maximum_width 200
# own_window yes
# own_window_type conky
# own_window_argb_visual yes
# own_window_transparent yes
# own_window_colour FFFFFF
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

own_window yes
own_window_type normal
own_window_argb_visual no
own_window_argb_value 255
own_window_transparent yes

border_inner_margin 0
border_outer_margin 0
alignment tl

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=7
xftalpha 0.5
uppercase no

default_color FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 000000

lua_load ~/.conky/luna.lua
lua_draw_hook_post main


TEXT
${font Sans:size=7,weight:bold}${color4}$nodename ${hr 2}

${offset 65}${font Sans:size=7,weight:normal}${color1}$uptime
${font sans-serif:normal:size=7}${cpugraph cpu1}
${font sans-serif:normal:size=7}${memgraph mem}${voffset 10}




${offset 55}${font Sans:size=7,weight:bold}${color}CPU
${offset 55}${font Sans:size=7,weight:normal}${color4}${top name 1}${alignr}${top cpu 1}%
${offset 55}${font Sans:size=7,weight:normal}${color1}${top name 2}${alignr}${top cpu 2}%
${offset 55}${font Sans:size=7,weight:normal}${color2}${top name 3}${alignr}${top cpu 3}%
${offset 55}${font Sans:size=7,weight:normal}${color3}${top name 4}${alignr}${top cpu 4}%
${offset 55}${font Sans:size=7,weight:normal}${color3}${top name 5}${alignr}${top cpu 5}%





${offset 55}${font Sans:size=7,weight:bold}${color}MEM
${offset 55}${font Sans:size=7,weight:normal}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
${offset 55}${font Sans:size=7,weight:normal}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
${offset 55}${font Sans:size=7,weight:normal}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
${offset 55}${font Sans:size=7,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 4}%
${offset 55}${font Sans:size=7,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 5}%





${offset 55}${font Sans:size=7,weight:bold}${color}DISK
${offset 55}${font Sans:size=7,weight:normal}${color}Free : ${fs_free } / ${fs_size }









${offset 10}${font Sans:size=7,weight:bold}${color}eth0           		 wlan0
${offset 15}${font Sans:size=7,weight:normal}${color2}${addr eth0}${alignr}${addr wlan0}
	
${offset 10}${font Sans:size=7,weight:normal}${color}Up: $color2${upspeed eth0} ${alignr}${color}Down: $color2${downspeed wlan0}
${offset 10}${font Sans:size=7,weight:normal}${color}Down: $color2${downspeed eth0} ${alignr}${color}Down: $color2${downspeed wlan0}

${color4}${hr 2}

${if_running clementine}${execpi 1 /path/to/clem.pl }${endif}

SGNLS.net © 2006-2017

Comments, submissions and errors to desk[at]sgnls.net.

Material and content adheres to the Creative Commons (NC-SA 4.0) license.

v12.01151