mirror of
				https://github.com/kastdeur/dotfiles.git
				synced 2025-10-31 03:06:35 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			245 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			245 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
if [ ! -z $2 ];
 | 
						|
then
 | 
						|
	disp=$1
 | 
						|
	bright=$2
 | 
						|
else
 | 
						|
	echo "Available displays:"
 | 
						|
	xrandr -q | grep " connected"
 | 
						|
 | 
						|
	echo "What display to use?"
 | 
						|
	read disp
 | 
						|
 | 
						|
	echo "Brightness[0-1]:"
 | 
						|
	read bright
 | 
						|
fi
 | 
						|
 | 
						|
xrandr --output $disp --brightness $bright
 |