Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
Created August 10, 2014 18:20
Show Gist options
  • Save mygeekdaddy/1e8e599bf41eabc39cd6 to your computer and use it in GitHub Desktop.
Save mygeekdaddy/1e8e599bf41eabc39cd6 to your computer and use it in GitHub Desktop.
Javascript widget for Übersicht to show available HD space
command: "df -Hl | grep 'disk1' | awk '{print $4\" used/\"$2 \" free (\"$5\" used )\"}'",
refreshFrequency: 60000000,
render: function (output) {
return "<div><h1>" + output + "</h1></div>";
},
style: " \n\
bottom: 300px \n\
left: 15px \n\
color: #fff \n\
font-family: 'Helvetica Neue' \n\
\n\
h1 \n\
display: block \n\
background: rgba(#000, 0.2) \n\
font-size: 18px \n\
font-weight: 300 \n\
padding: 4px 6px 4px 6px \n\
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment