6b302260416fde1026d4f0bdd3b7626e2276a27d
				
			
			
		
	brightnessctl polybar module
Polybar module using a custom script for adjusting screen brightness using the brightnessctl package.
The brightnessctl package is the only one that managed to change the brightness of my laptop screen. Other packages failed to work. Therefore, I wrote this script and module to be able to adjust screen brightness using brightnessctl from polybar. It is adjusted by scrolling up and down on the module.
Installation
- Download the files as a ZIP or clone into a temporary directory.
- Move brightnessctl.shto~/.config/polybar/file.
- Make brightnessctl.shexecutable by executingchmod u+x ~/.config/polybar/brightnessctl.sh.
- Decide where you will put the module. Depending on your choice, add brightnessctlto themodules-left=,modules-center=ormodules-right=row in your polybar config file.
- Add the following lines to the ~/.config/polybar/configfile:
[module/brightnessctl]
type = custom/script
exec = ~/.config/polybar/brightnessctl.sh
scroll-up = exec brightnessctl set +5%
scroll-down = exec brightnessctl set 5%-
interval = 0.2
format-prefix = " "
label = %output%
label-foreground = #FFFFFF
Note
- This module uses a custom icon from the MaterialIconsfont package. If you do not have this you may install it, or choose your own gliph, simply replace the character that is assigned toformat-prefix.
								v1.1.0
								
	Latest
							
						
					Languages
				
				
								
								
									Shell
								
								100%
							
						
					