Skip to content

Instantly share code, notes, and snippets.

@vakiliy
Created April 18, 2014 11:55
Show Gist options
  • Save vakiliy/11040142 to your computer and use it in GitHub Desktop.
Save vakiliy/11040142 to your computer and use it in GitHub Desktop.
total_run_times 0
background yes
cpu_avg_samples 1
net_avg_samples 2
double_buffer yes
no_buffers no
text_buffer_size 2048
out_to_console no
update_interval 1
alignment bottom_right
minimum_size 500 5000
maximum_width 500
gap_x 820
gap_y 620
draw_shades no
draw_outline no
draw_borders no
border_width 0
border_inner_margin 0
own_window yes
own_window_type dock #Type; normal / override / desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
use_xft yes
xftalpha 1
override_utf8_locale yes
uppercase no
use_spacer left
xftfont saxMono:size=8
default_bar_size 50 4
stippled_borders 3
default_color FFFFFF
default_shade_color 333333
default_outline_color black
color1 FFFFFF
color2 9A9A9A
short_units yes
pad_percents 2
TEXT
${color1}${font Bitstream charter:size=15}${goto 320}${voffset 10}${time %H:%M:%S}${font}${font Bitstream charter:size=26}${alignr}${voffset -22}${time %d.%m}${font}${voffset -6}
${hr}${voffset -24}
${font Bitstream charter:size=9}Sys: ${cpu cpu0}%${goto 65}${memperc}%${goto 98}Mem${goto 210}Up:${uptime_short}${voffset 12}
${execp ps aux | sort -k 3 -r -n | head -6 | tail -n5 | \
while read line; do \
user=$(echo $line | awk '{ print $1 }'); \
cpu=$(echo $line | awk '{ print $3 }'); \
mem=$(echo $line | awk '{ print $4 }'); \
app=$(echo $line | awk '{print $11}' | awk -F "/" '{ print $NF }'); \
echo '${goto 25}'$cpu'${goto 67}'$mem'${goto 100}'$app; \
done}${voffset -75}
${execp df -h | grep /dev/ | \
while read line; do \
name=$(echo $line | awk '{ print $6 }'); \
point=$(echo $name | awk -F "/" '{if ($NF=="") { print "Root"} else {print $NF}}') ; \
echo '${goto 320}'$point'${goto 405}${voffset 3}${fs_bar '$name'}${alignr}${voffset 0}${fs_free '$name'}' ; \
done}${font}${voffset 10}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment