Skip to main content

Command-line tools for the HP Spectre laptop and Fujitsu ScanSnap scanner

Project description


Command-line tools for the HP Spectre laptop and Fujitsu ScanSnap scanner (Linux only)


sudo apt-get update
sudo apt install python3 upower scrot
sudo pip3 install laptop



Check the status of the laptop battery (just percent remaining)



Scans a collection of pages on the Fujitsu scanner. Always scans black and white, 2-sided, and generates a PDF. When one document is finished, load another document and press the Enter key to scan it. Simply hit ctrl-C to quit the loop.



Turn the touchpad on.

touchpad on

Turn the touchpad off.

touchpad off


Take an interactive (drag the cursor) screenshot, names it with the date and time, and drop it in the .screenshot directory in the user's home folder. Note the directory must already exist; we recommend making it a symlink to a frequently-used directory such as Desktop.


Note that this command was designed to be assigned to a keyboard shortcut for a faster screenshot than the default one in Ubuntu.


Copy the contents of a file into the clipboard

copy myfile.txt


Unpack and install a .deb file

undeb myfile.deb

Note that Copy and UnDeb are generically useful Linux simplifications, not specific to the HP Spectre laptop or the Fujitsu scanner.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

laptop-1.0.0.tar.gz (31.5 kB view hashes)

Uploaded source

Built Distribution

laptop-1.0.0-py3-none-any.whl (32.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page