A comprehensive Linux monitor brightness control script with multi-language support and advanced features for managing display brightness across single and multi-monitor setups.
This script is part of the shell_utils framework, one of the largest collections of scripts and utilities designed to enhance user experience on Linux systems.
- Multi-monitor Support: Control brightness across all connected displays simultaneously or individually
- Extensive Language Support: Includes localization for multiple languages:
- Portuguese, French, Spanish, German
- Russian, Romanian, Hebrew, Arabic
- Chinese, Korean, Japanese
- English (default)
- Fine-grained Control: Precise brightness adjustment with values from 0.00 to 0.99
- Persistent Settings: Maintains brightness values between sessions
- User-friendly Interface: Simple command-line arguments with intuitive controls
- Robust Error Handling: Comprehensive input validation and dependency checks
# Clone the repository
git clone https://github.com/felipefacundes/brightness_adjust
# Enter the directory
cd brightness_adjust
# Make the script executable
chmod +x all_bright
- xorg-xrandr (The script will prompt for installation if not found)
./all_bright [option]
i
or+
: Increase brightnessd
or-
: Decrease brightness=
orset
: Set specific brightness value (0.00 to 0.99)m
: Set brightness for a specific monitorl
: List connected monitorsh
: Display help information
# Increase brightness
./all_bright +
# Decrease brightness
./all_bright -
# Set specific brightness value
./all_bright set 0.75
# Set brightness for specific monitor
./all_bright m HDMI-1 0.80
# List connected monitors
./all_bright l
- Uses xrandr for direct hardware communication
- Maintains state through temporary files in /tmp
- Implements proper error checking for system dependencies
- Provides flexible brightness adjustment options
- Supports both percentage and decimal values
- Built-in safety checks to ensure xrandr is installed and monitors are properly connected
This script is a component of the larger shell_utils framework, which provides a comprehensive suite of utilities for Linux systems. For the complete collection of tools and utilities, visit the shell_utils repository.
This project is licensed under the GPLv3 License.
Created and maintained by Felipe Facundes.
Contributions are welcome! Feel free to submit pull requests or create issues for bugs and feature requests.
If you encounter any problems or have questions, please open an issue in the project repository.