Skip to content

Commit

Permalink
scripts: (disk) use instance
Browse files Browse the repository at this point in the history
Refs #53
  • Loading branch information
Alexander Keller authored and vivien committed Oct 22, 2014
1 parent d7be551 commit bf1f267
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion i3blocks.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ command=$SCRIPT_DIR/memory
interval=30

[disk-home]
command=$SCRIPT_DIR/disk $HOME
instance=$HOME
command=$SCRIPT_DIR/disk
interval=30

[wireless]
Expand Down
4 changes: 2 additions & 2 deletions scripts/disk
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

DIR="${1:-$HOME}"
ALERT_LOW="${2:-10}" # color will turn red under this value (default: 10%)
DIR="${BLOCK_INSTANCE:-$HOME}"
ALERT_LOW="${1:-10}" # color will turn red under this value (default: 10%)

df -h -P -l "$DIR" 2>/dev/null |
awk -v alert_low=$ALERT_LOW '
Expand Down

0 comments on commit bf1f267

Please sign in to comment.