| 
									
										
										
										
											2021-09-26 14:22:26 +02:00
										 |  |  | #!/bin/bash | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | primary=DP-1 | 
					
						
							|  |  |  | secondary=HDMI-0 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if xrandr | grep "$secondary connected 1920x1080"; then | 
					
						
							|  |  |  |     echo "Turing second monitor off" | 
					
						
							|  |  |  |     xrandr --output "$secondary" --off | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |     echo "Turing second monitor on" | 
					
						
							|  |  |  |     xrandr --output "$secondary" --left-of "$primary" --auto | 
					
						
							|  |  |  | fi | 
					
						
							| 
									
										
										
										
											2021-10-30 14:57:21 +02:00
										 |  |  | . "${HOME}/.cache/wal/colors.sh" | 
					
						
							|  |  |  | PATH_TO_IMG=$wallpaper | 
					
						
							|  |  |  | feh --bg-fill $PATH_TO_IMG |