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/vzds | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/vzds') diff --git a/bin/vzds b/bin/vzds index 98ef0fb..62967b9 100755 --- a/bin/vzds +++ b/bin/vzds @@ -13,7 +13,7 @@ use Term::ANSIColor; my %opts; -getopts('a:cgt:', \%opts); +getopts('a:cfgt:', \%opts); my $count = shift // 5; @@ -123,3 +123,7 @@ if ($opts{'g'}) { print $out_fh $im->png(); close($out_fh); } + +if ($opts{'f'}) { + exec('feh', '/tmp/vzds.png'); +} -- cgit v1.2.3