logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

laptop-detect - attempt to detect a laptop

Description

       Laptop-detect  attempts  to  determine whether it is being run on a laptop or a desktop and appraises its
       caller of this.

Exit Status

0    most likely running on a laptop
       1    most likely NOT running on a laptop
       2    usage error (arguments supplied)

Files

/proc/acpi/battery/proc/pmu/info/dev/mem/sys/devices/virtual/dmi/id/chassis_type/sys/class/power_supply/*/type/proc/apm

Name

       laptop-detect - attempt to detect a laptop

Options

-h--help
              Output help information and exit.

       -v--verbose
              be verbose (messages go to STDOUT)

       -V--version
              Output version information and exit.

       -D--debug
              Debug mode.

See Also

dmidecode(8)

laptop-detect 0.14                                 March 2017                                   LAPTOP-DETECT(1)

Synopsis

       laptop-detect [-h|--help|-v|--verbose|-V|--version|-D|--debug]

See Also