diff options
author | 2020-12-03 01:02:31 +0100 | |
---|---|---|
committer | 2020-12-03 01:02:31 +0100 | |
commit | b31f48d09f786af5c1a3eb8bfb52cfb0490bda28 (patch) | |
tree | 42375d84539384b15ce8ecfa6accfd19453274c9 /disk | |
parent | e2219fed326e3a1e7b51f874cd3875d21ea869b7 (diff) | |
download | status_blocks-b31f48d09f786af5c1a3eb8bfb52cfb0490bda28.tar.gz status_blocks-b31f48d09f786af5c1a3eb8bfb52cfb0490bda28.tar.bz2 status_blocks-b31f48d09f786af5c1a3eb8bfb52cfb0490bda28.zip |
init comit
Diffstat (limited to 'disk')
-rwxr-xr-x | disk | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -0,0 +1,4 @@ +#!/bin/sh +AVAIL=$(df -h --output=avail '/' | tail -1) +[ ${AVAIL%?} -le 50 ] && COLOR=$(echo '\004') || COLOR='' +printf '%s%s%s\001' $COLOR " " $AVAIL |