From a004cce37bd18272b236fafc250367325dd15556 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 25 Dec 2010 14:52:30 +0100 Subject: vdf/vzds: Add -f option (show graphical output with feh) --- bin/vdf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/vdf') diff --git a/bin/vdf b/bin/vdf index b73d806..9489ecd 100755 --- a/bin/vdf +++ b/bin/vdf @@ -136,7 +136,7 @@ sub show_df_png { return; } -getopts('a:cg', \%opts); +getopts('a:cfg', \%opts); $alpha = $opts{'a'} // 0; open(my $mounts_fh, '<', '/proc/mounts'); @@ -166,6 +166,10 @@ elsif ($opts{'g'}) { show_df_png(); } +if ($opts{'f'}) { + exec('feh', '/tmp/vdf.png'); +} + __END__ =head1 NAME -- cgit v1.2.3