| 
									
										
										
										
											2022-02-06 00:15:14 -07:00
										 |  |  | #!/bin/zsh | 
					
						
							|  |  |  | source ${0:a:h}/common | 
					
						
							|  |  |  | [ ! $PRIMARY_MONITOR ] && { | 
					
						
							|  |  |  | 	NOTIFY 'Unable to detect primary monitor' | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | xrandr \ | 
					
						
							|  |  |  | 	--output $PRIMARY_MONITOR \ | 
					
						
							|  |  |  | 	--primary \ | 
					
						
							|  |  |  | 	--mode 1920x1080 \ | 
					
						
							|  |  |  | 	--rotate normal \ | 
					
						
							|  |  |  | 	--pos 0x0 \ | 
					
						
							|  |  |  | 	&& DISCONNECT_OTHER gamedock \ | 
					
						
							|  |  |  | 	|| NOTIFY "Unable to set '$PRIMARY_MONITOR' to 1920x1080" | 
					
						
							| 
									
										
										
										
											2022-08-15 10:59:16 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | xset dpms 0 0 0 && xset s noblank && xset s off \ | 
					
						
							|  |  |  | 	&& notify-send 'DPMS' 'disabled screen blank' |