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
- 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:
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