App-OperaUtils
view release on metacpan or search on metacpan
script/pause-opera view on Meta::CPAN
#!perl
# Note: This script is a CLI for Riap function /App/OperaUtils/pause_opera
# and generated automatically using Perinci::CmdLine::Gen version 0.501
use 5.010001;
use strict;
use warnings;
use Log::ger;
use Perinci::CmdLine::Any;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2022-10-07'; # DATE
our $DIST = 'App-OperaUtils'; # DIST
our $VERSION = '0.008'; # VERSION
my $cmdline = Perinci::CmdLine::Any->new(
url => "/App/OperaUtils/pause_opera",
program_name => "pause-opera",
log => 1,
read_config => 0,
read_env => 0,
);
$cmdline->run;
# ABSTRACT: Pause (kill -STOP) Opera
# PODNAME: pause-opera
__END__
=pod
=encoding UTF-8
=head1 NAME
pause-opera - Pause (kill -STOP) Opera
=head1 VERSION
This document describes version 0.008 of pause-opera (from Perl distribution App-OperaUtils), released on 2022-10-07.
=head1 SYNOPSIS
B<pause-opera> [B<--debug>|B<--log-level>=I<level>|B<--quiet>|B<--trace>|B<--verbose>] [B<--format>=I<name>|B<--json>] [B<--(no)naked-res>] [B<--page-result>[=I<program>]|B<--view-result>[=I<program>]] [(B<--user>=I<unix::uid::exists>)+|B<--users-jso...
=head1 DESCRIPTION
A modern browser now runs complex web pages and applications. Despite browser's
power management feature, these pages/tabs on the browser often still eat
considerable CPU cycles even though they only run in the background. Pausing
(kill -STOP) the browser processes is a simple and effective way to stop CPU
eating on Unix and prolong your laptop battery life. It can be performed
whenever you are not using your browser for a little while, e.g. when you are
typing on an editor or watching a movie. When you want to use your browser
again, simply unpause (kill -CONT) it.
=head1 OPTIONS
C<*> marks required options.
=head2 Main options
=over
=item B<--user>=I<s@>
Kill browser processes that belong to certain user(s) only.
Can be specified multiple times.
=item B<--users-json>=I<s>
Kill browser processes that belong to certain user(s) only (JSON-encoded).
See C<--user>.
=back
=head2 Logging options
=over
=item B<--debug>
Shortcut for --log-level=debug.
=item B<--log-level>=I<s>
Set log level.
By default, these log levels are available (in order of increasing level of
importance, from least important to most): C<trace>, C<debug>, C<info>,
C<warn>/C<warning>, C<error>, C<fatal>. By default, the level is usually set to
C<warn>, which means that log statements with level C<info> and less important
levels will not be shown. To increase verbosity, choose C<info>, C<debug>, or
C<trace>.
For more details on log level and logging, as well as how new logging levels can
be defined or existing ones modified, see L<Log::ger>.
=item B<--quiet>
Shortcut for --log-level=error.
=item B<--trace>
Shortcut for --log-level=trace.
=item B<--verbose>
( run in 1.657 second using v1.01-cache-2.11-cpan-f4a522933cf )