diff options
-rwxr-xr-x | bin/vdf | 6 | ||||
-rwxr-xr-x | bin/vzds | 6 |
2 files changed, 10 insertions, 2 deletions
@@ -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 @@ -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'); +} |