* ecran_maison to activate external monitors for laptop (framework) * ecran_framework to deactivate external monitors and use laptop one (framework)
		
			
				
	
	
		
			35 lines
		
	
	
		
			984 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			984 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
#
 | 
						|
# ecran_framework
 | 
						|
#
 | 
						|
<<<<<<< HEAD
 | 
						|
# Désactive les écrans. N'active que celui du PC portable Framework
 | 
						|
#
 | 
						|
# Écran principal : Iiyama North America PL2474H 11669V9B05959
 | 
						|
# Écran secondaire : Iiyama North America PLX2283H 1159495081860
 | 
						|
# Écran PC portable : BOE 0x0BCA Unknown
 | 
						|
 | 
						|
# PC portable
 | 
						|
laptopscreen="'BOE 0x0BCA Unknown'"
 | 
						|
# Écran principal
 | 
						|
mainscreen="'Iiyama North America PL2474H 11669V9B05959'"
 | 
						|
# Écran secondaire
 | 
						|
otherscreen="'Iiyama North America PLX2283H 1159495081860'"
 | 
						|
 | 
						|
# Éteint l'écran principal et secondaire
 | 
						|
swaymsg output "${mainscreen}" disable
 | 
						|
swaymsg output "${otherscreen}" disable
 | 
						|
 | 
						|
# Allume l'écran du PC portable
 | 
						|
swaymsg output "${laptopscreen}" enable
 | 
						|
=======
 | 
						|
# Désactive les écrans. N'active que celui du laptop Framework
 | 
						|
 | 
						|
# Éteint DP-9, DP-10
 | 
						|
wlr-randr --output DP-9 --off
 | 
						|
wlr-randr --output DP-10 --off
 | 
						|
 | 
						|
# Allume l'écran du PC portable
 | 
						|
wlr-randr --output eDP-1 --on
 | 
						|
>>>>>>> 120388f (feat(bin): Add 2 new scripts for screens)
 |