App-FirefoxUtils

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN



0.009   2020-04-18  Released-By: PERLANCAR; Urgency: medium

	- Add CLI: list-firefox-profiles.


0.008   2020-04-11  Released-By: PERLANCAR; Urgency: medium

        - [build] Rebuild to update Sah coerce rule modules
          (Sah::Schema::unix::local_uid now uses filters instead of coercion
          rules to convert username/uid and check username exists).


0.007   2019-12-10  Released-By: PERLANCAR; Urgency: low

	- No functional changes.

	- [ux] Add description for pause-firefox.


META.json  view on Meta::CPAN

            "Data::Sah::Compiler::perl::TH::any" : "0.914",
            "Data::Sah::Compiler::perl::TH::array" : "0.914",
            "Data::Sah::Compiler::perl::TH::bool" : "0.914",
            "Data::Sah::Compiler::perl::TH::duration" : "0.914",
            "Data::Sah::Compiler::perl::TH::hash" : "0.914",
            "Data::Sah::Compiler::perl::TH::int" : "0.914",
            "Data::Sah::Compiler::perl::TH::obj" : "0.914",
            "Data::Sah::Compiler::perl::TH::re" : "0.914",
            "Data::Sah::Compiler::perl::TH::str" : "0.914",
            "Data::Sah::Filter::perl::Re::re_from_str" : "0",
            "Data::Sah::Filter::perl::Unix::check_uid_exists" : "0",
            "Data::Sah::Filter::perl::Unix::convert_unix_user_to_uid" : "0",
            "Exporter" : "5.57",
            "Firefox::Util::Profile" : "0.005",
            "IPC::System::Options" : "0.339",
            "List::Util" : "1.54",
            "List::Util::Find" : "0.004",
            "Log::ger" : "0.038",
            "Perinci::CmdLine::Any" : "0.154",
            "Perinci::CmdLine::Lite" : "1.924",
            "Perinci::Sub::DepChecker" : "0",
            "Sah::Schema::firefox::profile_name" : "0",
            "Sah::Schema::re_from_str" : "0",
            "Sah::Schema::true" : "0",
            "Sah::Schema::unix::signal" : "0",
            "Sah::Schema::unix::uid::exists" : "0",
            "Sah::Schema::url" : "0",
            "perl" : "5.010001",
            "strict" : "0",
            "warnings" : "0"
         }
      },
      "test" : {
         "requires" : {
            "File::Spec" : "0",
            "IO::Handle" : "0",

META.yml  view on Meta::CPAN

  Data::Sah::Compiler::perl::TH::any: '0.914'
  Data::Sah::Compiler::perl::TH::array: '0.914'
  Data::Sah::Compiler::perl::TH::bool: '0.914'
  Data::Sah::Compiler::perl::TH::duration: '0.914'
  Data::Sah::Compiler::perl::TH::hash: '0.914'
  Data::Sah::Compiler::perl::TH::int: '0.914'
  Data::Sah::Compiler::perl::TH::obj: '0.914'
  Data::Sah::Compiler::perl::TH::re: '0.914'
  Data::Sah::Compiler::perl::TH::str: '0.914'
  Data::Sah::Filter::perl::Re::re_from_str: '0'
  Data::Sah::Filter::perl::Unix::check_uid_exists: '0'
  Data::Sah::Filter::perl::Unix::convert_unix_user_to_uid: '0'
  Exporter: '5.57'
  Firefox::Util::Profile: '0.005'
  IPC::System::Options: '0.339'
  List::Util: '1.54'
  List::Util::Find: '0.004'
  Log::ger: '0.038'
  Perinci::CmdLine::Any: '0.154'
  Perinci::CmdLine::Lite: '1.924'
  Perinci::Sub::DepChecker: '0'
  Sah::Schema::firefox::profile_name: '0'
  Sah::Schema::re_from_str: '0'
  Sah::Schema::true: '0'
  Sah::Schema::unix::signal: '0'
  Sah::Schema::unix::uid::exists: '0'
  Sah::Schema::url: '0'
  perl: '5.010001'
  strict: '0'
  warnings: '0'
resources:
  bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=App-FirefoxUtils
  homepage: https://metacpan.org/release/App-FirefoxUtils
  repository: git://github.com/perlancar/perl-App-FirefoxUtils.git
version: '0.025'
x_Dist_Zilla:

Makefile.PL  view on Meta::CPAN

    "Data::Sah::Compiler::perl::TH::any" => "0.914",
    "Data::Sah::Compiler::perl::TH::array" => "0.914",
    "Data::Sah::Compiler::perl::TH::bool" => "0.914",
    "Data::Sah::Compiler::perl::TH::duration" => "0.914",
    "Data::Sah::Compiler::perl::TH::hash" => "0.914",
    "Data::Sah::Compiler::perl::TH::int" => "0.914",
    "Data::Sah::Compiler::perl::TH::obj" => "0.914",
    "Data::Sah::Compiler::perl::TH::re" => "0.914",
    "Data::Sah::Compiler::perl::TH::str" => "0.914",
    "Data::Sah::Filter::perl::Re::re_from_str" => 0,
    "Data::Sah::Filter::perl::Unix::check_uid_exists" => 0,
    "Data::Sah::Filter::perl::Unix::convert_unix_user_to_uid" => 0,
    "Exporter" => "5.57",
    "Firefox::Util::Profile" => "0.005",
    "IPC::System::Options" => "0.339",
    "List::Util" => "1.54",
    "List::Util::Find" => "0.004",
    "Log::ger" => "0.038",
    "Perinci::CmdLine::Any" => "0.154",
    "Perinci::CmdLine::Lite" => "1.924",
    "Perinci::Sub::DepChecker" => 0,
    "Sah::Schema::firefox::profile_name" => 0,
    "Sah::Schema::re_from_str" => 0,
    "Sah::Schema::true" => 0,
    "Sah::Schema::unix::signal" => 0,
    "Sah::Schema::unix::uid::exists" => 0,
    "Sah::Schema::url" => 0,
    "strict" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "File::Spec" => 0,
    "IO::Handle" => 0,
    "IPC::Open3" => 0,
    "Test::More" => 0
  },

Makefile.PL  view on Meta::CPAN

  "Data::Sah::Compiler::perl::TH::any" => "0.914",
  "Data::Sah::Compiler::perl::TH::array" => "0.914",
  "Data::Sah::Compiler::perl::TH::bool" => "0.914",
  "Data::Sah::Compiler::perl::TH::duration" => "0.914",
  "Data::Sah::Compiler::perl::TH::hash" => "0.914",
  "Data::Sah::Compiler::perl::TH::int" => "0.914",
  "Data::Sah::Compiler::perl::TH::obj" => "0.914",
  "Data::Sah::Compiler::perl::TH::re" => "0.914",
  "Data::Sah::Compiler::perl::TH::str" => "0.914",
  "Data::Sah::Filter::perl::Re::re_from_str" => 0,
  "Data::Sah::Filter::perl::Unix::check_uid_exists" => 0,
  "Data::Sah::Filter::perl::Unix::convert_unix_user_to_uid" => 0,
  "Exporter" => "5.57",
  "File::Spec" => 0,
  "Firefox::Util::Profile" => "0.005",
  "IO::Handle" => 0,
  "IPC::Open3" => 0,
  "IPC::System::Options" => "0.339",
  "List::Util" => "1.54",
  "List::Util::Find" => "0.004",
  "Log::ger" => "0.038",
  "Perinci::CmdLine::Any" => "0.154",
  "Perinci::CmdLine::Lite" => "1.924",
  "Perinci::Sub::DepChecker" => 0,
  "Sah::Schema::firefox::profile_name" => 0,
  "Sah::Schema::re_from_str" => 0,
  "Sah::Schema::true" => 0,
  "Sah::Schema::unix::signal" => 0,
  "Sah::Schema::unix::uid::exists" => 0,
  "Sah::Schema::url" => 0,
  "Test::More" => 0,
  "strict" => 0,
  "warnings" => 0
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};

README  view on Meta::CPAN


        If one of the "*-pat" options are specified, then instead of the
        default heuristic rules to find the browser processes, these "*-pat"
        options are solely used to determine which processes are the browser
        processes.

    *   quiet => *true*

        (No description)

    *   users => *array[unix::uid::exists]*

        Kill browser processes that belong to certain user(s) only.

    Returns an enveloped result (an array).

    First element ($status_code) is an integer containing HTTP-like status
    code (200 means OK, 4xx caller error, 5xx function error). Second
    element ($reason) is a string containing error message, or something
    like "OK" if status is 200. Third element ($payload) is the actual
    result, but usually not present when enveloped result is an error

README  view on Meta::CPAN


        If one of the "*-pat" options are specified, then instead of the
        default heuristic rules to find the browser processes, these "*-pat"
        options are solely used to determine which processes are the browser
        processes.

    *   quiet => *true*

        (No description)

    *   users => *array[unix::uid::exists]*

        Kill browser processes that belong to certain user(s) only.

    Returns an enveloped result (an array).

    First element ($status_code) is an integer containing HTTP-like status
    code (200 means OK, 4xx caller error, 5xx function error). Second
    element ($reason) is a string containing error message, or something
    like "OK" if status is 200. Third element ($payload) is the actual
    result, but usually not present when enveloped result is an error

README  view on Meta::CPAN


        If one of the "*-pat" options are specified, then instead of the
        default heuristic rules to find the browser processes, these "*-pat"
        options are solely used to determine which processes are the browser
        processes.

    *   quiet => *true*

        (No description)

    *   users => *array[unix::uid::exists]*

        Kill browser processes that belong to certain user(s) only.

    Returns an enveloped result (an array).

    First element ($status_code) is an integer containing HTTP-like status
    code (200 means OK, 4xx caller error, 5xx function error). Second
    element ($reason) is a string containing error message, or something
    like "OK" if status is 200. Third element ($payload) is the actual
    result, but usually not present when enveloped result is an error

README  view on Meta::CPAN

    Usage:

     pause_and_unpause_firefox(%args) -> [$status_code, $reason, $payload, \%result_meta]

    Pause and unpause Firefox alternately.

    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.

    The "pause-and-unpause" action pause and unpause browser in an alternate
    fashion, by default every 5 minutes and 30 seconds. This is a compromise
    to save CPU time most of the time but then give time for web
    applications in the browser to catch up during the unpause window (e.g.
    for WhatsApp Web to display new messages and sound notification.) It can
    be used when you are not browsing but still want to be notified by web

README  view on Meta::CPAN


    *   pid_pat => *re_from_str*

        Filter processes using regex against their pid.

        If one of the "*-pat" options are specified, then instead of the
        default heuristic rules to find the browser processes, these "*-pat"
        options are solely used to determine which processes are the browser
        processes.

    *   users => *array[unix::uid::exists]*

        Kill browser processes that belong to certain user(s) only.

    Returns an enveloped result (an array).

    First element ($status_code) is an integer containing HTTP-like status
    code (200 means OK, 4xx caller error, 5xx function error). Second
    element ($reason) is a string containing error message, or something
    like "OK" if status is 200. Third element ($payload) is the actual
    result, but usually not present when enveloped result is an error

README  view on Meta::CPAN

    Usage:

     pause_firefox(%args) -> [$status_code, $reason, $payload, \%result_meta]

    Pause (kill -STOP) Firefox.

    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.

    This function is not exported by default, but exportable.

    Arguments ('*' denotes required arguments):

    *   cmndline_pat => *re_from_str*

README  view on Meta::CPAN


    *   pid_pat => *re_from_str*

        Filter processes using regex against their pid.

        If one of the "*-pat" options are specified, then instead of the
        default heuristic rules to find the browser processes, these "*-pat"
        options are solely used to determine which processes are the browser
        processes.

    *   users => *array[unix::uid::exists]*

        Kill browser processes that belong to certain user(s) only.

    Returns an enveloped result (an array).

    First element ($status_code) is an integer containing HTTP-like status
    code (200 means OK, 4xx caller error, 5xx function error). Second
    element ($reason) is a string containing error message, or something
    like "OK" if status is 200. Third element ($payload) is the actual
    result, but usually not present when enveloped result is an error

README  view on Meta::CPAN


    *   pid_pat => *re_from_str*

        Filter processes using regex against their pid.

        If one of the "*-pat" options are specified, then instead of the
        default heuristic rules to find the browser processes, these "*-pat"
        options are solely used to determine which processes are the browser
        processes.

    *   users => *array[unix::uid::exists]*

        Kill browser processes that belong to certain user(s) only.

    Returns an enveloped result (an array).

    First element ($status_code) is an integer containing HTTP-like status
    code (200 means OK, 4xx caller error, 5xx function error). Second
    element ($reason) is a string containing error message, or something
    like "OK" if status is 200. Third element ($payload) is the actual
    result, but usually not present when enveloped result is an error

README  view on Meta::CPAN


    *   pid_pat => *re_from_str*

        Filter processes using regex against their pid.

        If one of the "*-pat" options are specified, then instead of the
        default heuristic rules to find the browser processes, these "*-pat"
        options are solely used to determine which processes are the browser
        processes.

    *   signal => *unix::signal*

        (No description)

    *   users => *array[unix::uid::exists]*

        Kill browser processes that belong to certain user(s) only.

    Returns an enveloped result (an array).

    First element ($status_code) is an integer containing HTTP-like status
    code (200 means OK, 4xx caller error, 5xx function error). Second
    element ($reason) is a string containing error message, or something
    like "OK" if status is 200. Third element ($payload) is the actual
    result, but usually not present when enveloped result is an error

README  view on Meta::CPAN


    *   pid_pat => *re_from_str*

        Filter processes using regex against their pid.

        If one of the "*-pat" options are specified, then instead of the
        default heuristic rules to find the browser processes, these "*-pat"
        options are solely used to determine which processes are the browser
        processes.

    *   users => *array[unix::uid::exists]*

        Kill browser processes that belong to certain user(s) only.

    Returns an enveloped result (an array).

    First element ($status_code) is an integer containing HTTP-like status
    code (200 means OK, 4xx caller error, 5xx function error). Second
    element ($reason) is a string containing error message, or something
    like "OK" if status is 200. Third element ($payload) is the actual
    result, but usually not present when enveloped result is an error

lib/App/FirefoxUtils.pm  view on Meta::CPAN

Filter processes using regex against their pid.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely
used to determine which processes are the browser processes.

=item * B<quiet> => I<true>

(No description)

=item * B<users> => I<array[unix::uid::exists]>

Kill browser processes that belong to certain user(s) only.


=back

Returns an enveloped result (an array).

First element ($status_code) is an integer containing HTTP-like status code
(200 means OK, 4xx caller error, 5xx function error). Second element

lib/App/FirefoxUtils.pm  view on Meta::CPAN

Filter processes using regex against their pid.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely
used to determine which processes are the browser processes.

=item * B<quiet> => I<true>

(No description)

=item * B<users> => I<array[unix::uid::exists]>

Kill browser processes that belong to certain user(s) only.


=back

Returns an enveloped result (an array).

First element ($status_code) is an integer containing HTTP-like status code
(200 means OK, 4xx caller error, 5xx function error). Second element

lib/App/FirefoxUtils.pm  view on Meta::CPAN

Filter processes using regex against their pid.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely
used to determine which processes are the browser processes.

=item * B<quiet> => I<true>

(No description)

=item * B<users> => I<array[unix::uid::exists]>

Kill browser processes that belong to certain user(s) only.


=back

Returns an enveloped result (an array).

First element ($status_code) is an integer containing HTTP-like status code
(200 means OK, 4xx caller error, 5xx function error). Second element

lib/App/FirefoxUtils.pm  view on Meta::CPAN

Usage:

 pause_and_unpause_firefox(%args) -> [$status_code, $reason, $payload, \%result_meta]

Pause and unpause Firefox alternately.

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.

The C<pause-and-unpause> action pause and unpause browser in an alternate
fashion, by default every 5 minutes and 30 seconds. This is a compromise to save
CPU time most of the time but then give time for web applications in the browser
to catch up during the unpause window (e.g. for WhatsApp Web to display new
messages and sound notification.) It can be used when you are not browsing but
still want to be notified by web applications from time to time.

lib/App/FirefoxUtils.pm  view on Meta::CPAN

 300,10,120,30

=item * B<pid_pat> => I<re_from_str>

Filter processes using regex against their pid.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely
used to determine which processes are the browser processes.

=item * B<users> => I<array[unix::uid::exists]>

Kill browser processes that belong to certain user(s) only.


=back

Returns an enveloped result (an array).

First element ($status_code) is an integer containing HTTP-like status code
(200 means OK, 4xx caller error, 5xx function error). Second element

lib/App/FirefoxUtils.pm  view on Meta::CPAN

Usage:

 pause_firefox(%args) -> [$status_code, $reason, $payload, \%result_meta]

Pause (kill -STOP) Firefox.

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.

This function is not exported by default, but exportable.

Arguments ('*' denotes required arguments):

=over 4

lib/App/FirefoxUtils.pm  view on Meta::CPAN

used to determine which processes are the browser processes.

=item * B<pid_pat> => I<re_from_str>

Filter processes using regex against their pid.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely
used to determine which processes are the browser processes.

=item * B<users> => I<array[unix::uid::exists]>

Kill browser processes that belong to certain user(s) only.


=back

Returns an enveloped result (an array).

First element ($status_code) is an integer containing HTTP-like status code
(200 means OK, 4xx caller error, 5xx function error). Second element

lib/App/FirefoxUtils.pm  view on Meta::CPAN

used to determine which processes are the browser processes.

=item * B<pid_pat> => I<re_from_str>

Filter processes using regex against their pid.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely
used to determine which processes are the browser processes.

=item * B<users> => I<array[unix::uid::exists]>

Kill browser processes that belong to certain user(s) only.


=back

Returns an enveloped result (an array).

First element ($status_code) is an integer containing HTTP-like status code
(200 means OK, 4xx caller error, 5xx function error). Second element

lib/App/FirefoxUtils.pm  view on Meta::CPAN

used to determine which processes are the browser processes.

=item * B<pid_pat> => I<re_from_str>

Filter processes using regex against their pid.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely
used to determine which processes are the browser processes.

=item * B<signal> => I<unix::signal>

(No description)

=item * B<users> => I<array[unix::uid::exists]>

Kill browser processes that belong to certain user(s) only.


=back

Returns an enveloped result (an array).

First element ($status_code) is an integer containing HTTP-like status code
(200 means OK, 4xx caller error, 5xx function error). Second element

lib/App/FirefoxUtils.pm  view on Meta::CPAN

used to determine which processes are the browser processes.

=item * B<pid_pat> => I<re_from_str>

Filter processes using regex against their pid.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely
used to determine which processes are the browser processes.

=item * B<users> => I<array[unix::uid::exists]>

Kill browser processes that belong to certain user(s) only.


=back

Returns an enveloped result (an array).

First element ($status_code) is an integer containing HTTP-like status code
(200 means OK, 4xx caller error, 5xx function error). Second element

script/firefox-has-processes  view on Meta::CPAN

=head1 VERSION

This document describes version 0.025 of firefox-has-processes (from Perl distribution App-FirefoxUtils), released on 2026-03-29.

=head1 SYNOPSIS

B<firefox-has-processes> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<firefox-has-processes> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<firefox-has-processes> [B<L<--cmndline-pat|/"--cmndline-pat=s">>=I<L<re_from_str|Sah::Schema::re_from_str>>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--v...

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--quiet-arg>, B<-q>

script/firefox-is-paused  view on Meta::CPAN

=head1 VERSION

This document describes version 0.025 of firefox-is-paused (from Perl distribution App-FirefoxUtils), released on 2026-03-29.

=head1 SYNOPSIS

B<firefox-is-paused> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<firefox-is-paused> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<firefox-is-paused> [B<L<--cmndline-pat|/"--cmndline-pat=s">>=I<L<re_from_str|Sah::Schema::re_from_str>>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbo...

=head1 DESCRIPTION

Firefox is defined as paused if I<all> of its processes are in 'stop' state.

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

script/firefox-is-running  view on Meta::CPAN

=head1 VERSION

This document describes version 0.025 of firefox-is-running (from Perl distribution App-FirefoxUtils), released on 2026-03-29.

=head1 SYNOPSIS

B<firefox-is-running> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<firefox-is-running> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<firefox-is-running> [B<L<--cmndline-pat|/"--cmndline-pat=s">>=I<L<re_from_str|Sah::Schema::re_from_str>>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verb...

=head1 DESCRIPTION

Firefox is defined as running if there are some Firefox processes that are I<not>
in 'stop' state. In other words, if Firefox has been started but is currently
paused, we do not say that it's running. If you want to check if Firefox process
exists, you can use C<ps_firefox>.

=head1 OPTIONS

script/kill-firefox  view on Meta::CPAN

=head1 VERSION

This document describes version 0.025 of kill-firefox (from Perl distribution App-FirefoxUtils), released on 2026-03-29.

=head1 SYNOPSIS

B<kill-firefox> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<kill-firefox> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<kill-firefox> [B<L<--cmndline-pat|/"--cmndline-pat=s">>=I<L<re_from_str|Sah::Schema::re_from_str>>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbose">>...

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--signal>=I<s>, B<-s>

script/pause-and-unpause-firefox  view on Meta::CPAN

=head1 VERSION

This document describes version 0.025 of pause-and-unpause-firefox (from Perl distribution App-FirefoxUtils), released on 2026-03-29.

=head1 SYNOPSIS

B<pause-and-unpause-firefox> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<pause-and-unpause-firefox> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<pause-and-unpause-firefox> [B<L<--cmndline-pat|/"--cmndline-pat=s">>=I<L<re_from_str|Sah::Schema::re_from_str>>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/...

=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.

The C<pause-and-unpause> action pause and unpause browser in an alternate
fashion, by default every 5 minutes and 30 seconds. This is a compromise to save
CPU time most of the time but then give time for web applications in the browser
to catch up during the unpause window (e.g. for WhatsApp Web to display new
messages and sound notification.) It can be used when you are not browsing but
still want to be notified by web applications from time to time.

script/pause-firefox  view on Meta::CPAN

=head1 VERSION

This document describes version 0.025 of pause-firefox (from Perl distribution App-FirefoxUtils), released on 2026-03-29.

=head1 SYNOPSIS

B<pause-firefox> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<pause-firefox> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<pause-firefox> [B<L<--cmndline-pat|/"--cmndline-pat=s">>=I<L<re_from_str|Sah::Schema::re_from_str>>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbose">...

=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

script/ps-firefox  view on Meta::CPAN

=head1 VERSION

This document describes version 0.025 of ps-firefox (from Perl distribution App-FirefoxUtils), released on 2026-03-29.

=head1 SYNOPSIS

B<ps-firefox> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<ps-firefox> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<ps-firefox> [B<L<--cmndline-pat|/"--cmndline-pat=s">>=I<L<re_from_str|Sah::Schema::re_from_str>>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbose">>] ...

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--user>=I<s@>

script/terminate-firefox  view on Meta::CPAN

=head1 VERSION

This document describes version 0.025 of terminate-firefox (from Perl distribution App-FirefoxUtils), released on 2026-03-29.

=head1 SYNOPSIS

B<terminate-firefox> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<terminate-firefox> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<terminate-firefox> [B<L<--cmndline-pat|/"--cmndline-pat=s">>=I<L<re_from_str|Sah::Schema::re_from_str>>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbo...

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--signal>=I<s>, B<-s>

script/unpause-firefox  view on Meta::CPAN

=head1 VERSION

This document describes version 0.025 of unpause-firefox (from Perl distribution App-FirefoxUtils), released on 2026-03-29.

=head1 SYNOPSIS

B<unpause-firefox> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<unpause-firefox> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<unpause-firefox> [B<L<--cmndline-pat|/"--cmndline-pat=s">>=I<L<re_from_str|Sah::Schema::re_from_str>>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbose...

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--user>=I<s@>



( run in 1.601 second using v1.01-cache-2.11-cpan-64ef6c95b5d )