Created
December 1, 2016 14:02
-
-
Save woile/2411aae313029871ab61362b55ca1aec to your computer and use it in GitHub Desktop.
Conky custom cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conky.config = { | |
-- Set to yes if you want Conky to be forked in the background | |
background = true, | |
-- Use Xft | |
use_xft = true, | |
-- Xft font when Xft is enabled | |
font = 'Bitstream Monospace:size 9', | |
-- Text alpha when using Xft | |
xftalpha = 0.1, | |
-- Update interval in seconds | |
update_interval = 1.0, | |
-- This is the number of times Conky will update before quitting. | |
-- Set to zero to run forever. | |
total_run_times = 0, | |
-- Create own window instead of using desktop required in nautilus | |
own_window = true, | |
own_window_type = 'normal', | |
own_window_argb_visual = true, | |
own_window_argb_value = 255, | |
own_window_transparent = true, | |
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', | |
-- Use double buffering reduces flicker may not work for everyone | |
double_buffer = true, | |
-- Minimum size of text area | |
minimum_width = 300, minimum_height = 0, | |
maximum_width = 300, | |
-- Draw shades | |
draw_shades = false, | |
-- Draw outlines | |
draw_outline = false, | |
-- Draw borders around text | |
draw_borders = false, | |
draw_graph_borders = true, | |
-- Stippled borders | |
stippled_borders = 8, | |
-- border width | |
border_width = 1, | |
-- Default colors and also border colors | |
default_color = 'white', | |
default_shade_color = 'black', | |
default_outline_color = 'white', | |
-- Text alignment other possible values are commented | |
alignment = 'top_right', | |
-- Gap between borders of screen and text | |
-- same thing as passing -x at command line | |
gap_x = 10, | |
gap_y = 0, | |
-- Subtract file system buffers from used memory | |
no_buffers = true, | |
-- set to yes if you want all text to be in uppercase | |
uppercase = false, | |
cpu_avg_samples = 2, | |
net_avg_samples = 2, | |
diskio_avg_samples = 2, | |
-- Force UTF8 note that UTF8 support required XFT | |
override_utf8_locale = true, | |
-- Add spaces to keep things from moving about. This only affects certain objects. | |
use_spacer = 'right', | |
text_buffer_size = 2048, | |
-- variable is given either in format variable or in variable. Latter | |
-- allows characters right after the variable and must be used in network | |
-- stuff because of an argument | |
-- stuff after TEXT will be formatted on screen | |
}; | |
conky.text = [[ | |
${color}${font Monospace:style=Bold:pixelsize=18}TIMEZONES ${hr 1 } | |
${font arial:size=10} | |
NEW HAMPSHIRE (US) ${alignr}${tztime US/Eastern %H:%M} | |
BUENOS AIRES (AR) ${alignr}${tztime America/Argentina/Buenos_Aires %H:%M} | |
LONDON (UK) ${alignr}${tztime Europe/London %H:%M} | |
BERLIN (DE) ${alignr}${tztime Europe/Berlin %H:%M}${font} | |
#SYSTEM DETAILS | |
${color}${font Monospace:style=Bold:pixelsize=18}SYSTEM ${hr 1 } | |
${font Monospace:size=10} | |
USER: ${alignr}${exec whoami} | |
HOSTNAME: ${alignr}$nodename | |
KERNEL: $alignr$sysname $kernel | |
UPTIME: ${color #39ff14}$alignr$uptime${color} | |
${color}${font Monospace:style=Bold:pixelsize=18}CPU ${hr 1 } | |
${font Monospace:size=10} | |
${exec cat /proc/cpuinfo | grep -Po 'model\s+name\s+:\s+\K.*?GHz' | head -1} | |
USAGE: ${color #39ff14}$alignr${cpu cpu0}% | |
${color #cc0000}${cpubar cpu0 15} | |
${color}${alignc}CURRENT PROCESSES: ${color #39ff14}$processes | |
${font Monospace:size=10} | |
${alignc}${color}1st ${color #39ff14}${top name 1}${top cpu 1}% | |
${alignc}${color}2nd ${color #39ff14}${top name 2}${top cpu 2}% | |
${alignc}${color}3rd ${color #39ff14}${top name 3}${top cpu 3}% | |
${alignc}${color}4th ${color #39ff14}${top name 4}${top cpu 4}% | |
${color}${font Monospace:style=Bold:pixelsize=18}MEMORY ${hr 1 } | |
${font Monospace:size=10} | |
USAGE:$alignr$mem ($memperc%) | |
${color #cc0000}${membar 15} | |
${alignc}${color}1st ${color #39ff14}${top_mem name 1}${top_mem mem 1}% | |
${alignc}${color}2nd ${color #39ff14}${top_mem name 2}${top_mem mem 2}% | |
${alignc}${color}3rd ${color #39ff14}${top_mem name 3}${top_mem mem 3}% | |
${alignc}${color}4th ${color #39ff14}${top_mem name 4}${top_mem mem 4}% | |
${color}${font Monospace:style=Bold:pixelsize=18}DISK ${hr 1 } | |
${font Monospace:size=10} | |
USED: ${alignr}${fs_used /}/${fs_size /} (${fs_used_perc /}%) | |
${color #cc0000}${fs_bar 15 /}${color} | |
USED: ${alignr}${fs_used /home/}/${fs_size /home/} (${fs_used_perc /home/}%) | |
${color #cc0000}${fs_bar 15 /home/}${color} | |
${alignc}${color}READ I/O: ${color #39ff14}${diskio_read /dev/sda} ${alignr}${color}WRITE I/O: ${color #39ff14}${diskio_write /dev/sda}${color} | |
]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment