Skip to main content
Code Review

Return to Question

added 6 characters in body
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

I recently got a new laptop and the battery wasn't the greatest in the world..

So, so I decided on a little project to save some battery:

Make a screen dimmer for Linux distros that use Gnome Shell, changes brightness based on battery level and charging status, and runs from command line.

Requirements:

  • argparse (Python module)
  • Linux distro (Tested on Ubuntu 17.10)
  • Gnome Shell (Tested on gnome-shell 3.26.2)

Make a screen dimmer for Linux distros that use Gnome Shell, changes brightness based on battery level and charging status, and runs from command line.

Requirements:

  • argparse (Python module)
  • Linux distro (tested on Ubuntu 17.10)
  • Gnome Shell (tested on gnome-shell 3.26.2)

Usage:

Normal usage:

Normal usage:

python3 main.py -v

python3 main.py -v

Help usage:

(-v is the only one needed for output to shell.)

(-v is the only one needed for output to shell.)

python3 main.py -h

python3 main.py -h

Here are the classes:

I recently got a new laptop and the battery wasn't the greatest in the world..

So I decided on a little project to save some battery:

Make a screen dimmer for Linux distros that use Gnome Shell, changes brightness based on battery level and charging status, and runs from command line.

Requirements:

  • argparse (Python module)
  • Linux distro (Tested on Ubuntu 17.10)
  • Gnome Shell (Tested on gnome-shell 3.26.2)

Usage:

Normal usage:

python3 main.py -v

Help usage:

(-v is the only one needed for output to shell.)

python3 main.py -h

Here are the classes:

I recently got a new laptop and the battery wasn't the greatest in the world, so I decided on a little project to save some battery:

Make a screen dimmer for Linux distros that use Gnome Shell, changes brightness based on battery level and charging status, and runs from command line.

Requirements:

  • argparse (Python module)
  • Linux distro (tested on Ubuntu 17.10)
  • Gnome Shell (tested on gnome-shell 3.26.2)

Usage:

Normal usage:

python3 main.py -v

Help usage:

(-v is the only one needed for output to shell.)

python3 main.py -h
Tweeted twitter.com/StackCodeReview/status/939501111177830401
Don't worry about length — this is Code Review!
Source Link
200_success
  • 145.5k
  • 22
  • 190
  • 478

Laptop Linux screen dimmer for Linux (Python)based on battery level

I apologize in advance if this is considered a long post on here.. HereHere are the classes:

Once again, sorry for the longer post. Thank you to all who review.

Laptop screen dimmer for Linux (Python)

I apologize in advance if this is considered a long post on here.. Here are the classes:

Once again, sorry for the longer post. Thank you to all who review.

Linux screen dimmer based on battery level

Here are the classes:

added 135 characters in body
Source Link
Jebby
  • 261
  • 1
  • 6

The following shows theHelp usage for the program:

(-v is the only one needed for output to shell.)

python3 main.py -h

python3 main.py -h

The following shows the usage for the program

(-v is the only one needed for output to shell.)

python3 main.py -h

Help usage:

(-v is the only one needed for output to shell.)

python3 main.py -h

added 135 characters in body
Source Link
Jebby
  • 261
  • 1
  • 6
Loading
Source Link
Jebby
  • 261
  • 1
  • 6
Loading
lang-py

AltStyle によって変換されたページ (->オリジナル) /