Skip to content

Instantly share code, notes, and snippets.

@arbo77
Created December 18, 2012 10:45
Show Gist options
  • Save arbo77/4327030 to your computer and use it in GitHub Desktop.
Save arbo77/4327030 to your computer and use it in GitHub Desktop.
Simple conky configuration
# conky configuration
# http://arbo77.com
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont DejaVu Sans:size=7
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
##############################################
# Compositing tips:
# Conky can play strangely when used with
# different compositors. I have found the
# following to work well, but your mileage
# may vary. Comment/uncomment to suit.
##############################################
## no compositor
own_window_type override
own_window_argb_visual no
## xcompmgr
#own_window_type override
#own_window_argb_visual yes
## cairo-compmgr
#own_window_type desktop
#own_window_argb_visual yes
##############################################
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 200
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 656667
default_shade_color 000000
default_outline_color 828282
alignment top_right
gap_x 12
gap_y 280
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
##############################################
# Output
##############################################
TEXT
S Y S T E M I N F O $alignr${kernel}
${hr}
#Host:$alignr$nodename
Uptime:$alignr$uptime
CPU usage:$alignr${cpu cpu0}% ${cpu cpu1}% ${cpu cpu2}% ${cpu cpu3}%
${cpubar cpu0 4,50}${cpubar cpu1 4,50}${cpubar cpu2 4,50}${cpubar cpu3 4,50}
RAM:$alignr$mem/$memmax
${membar 4}
Swap usage:$alignr$swap/$swapmax
Disk usage:$alignr${fs_used /}/${fs_size /}
N E T W O R K
${hr}
${wireless_essid wlan0}: $alignr${addr wlan0}
LAN: $alignr${addr eth0}
INTERNET:$alignr${execi 180 ~/bin/online.py }
${hr}
Sound Volume: ${alignr}${mixer}
Battery: $alignr${battery}
${battery_bar 4}
#!/usr/bin/env python
import urllib2
def main():
try:
f = urllib2.urlopen("http://google.com")
print "Online"
except:
print "Offline"
return 0
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment