Created
August 10, 2014 18:20
Javascript widget for Übersicht to show available HD space
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
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