Replace screen layout scripts with menu
							parent
							
								
									41b7dd38f1
								
							
						
					
					
						commit
						7abc0840ab
					
				| 
						 | 
					@ -0,0 +1,12 @@
 | 
				
			||||||
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					options="Laptop monitor\nDual monitor\nExternal monitor\nOther"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					selected=$(echo -e "$options" | dmenu -i)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					case "$selected" in
 | 
				
			||||||
 | 
					  "Laptop monitor") xrandr --output eDP --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0 --off;;
 | 
				
			||||||
 | 
					  "Dual monitor") xrandr --output eDP --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0 --primary --mode 3840x2160 --pos 0x0 --rotate normal;;
 | 
				
			||||||
 | 
					  "External monitor") xrandr --output eDP --off --output HDMI-A-0 --primary --mode 3840x2160;;
 | 
				
			||||||
 | 
					  "Other") arandr;;
 | 
				
			||||||
 | 
					esac
 | 
				
			||||||
| 
						 | 
					@ -1,6 +0,0 @@
 | 
				
			||||||
#!/usr/bin/env bash
 | 
					 | 
				
			||||||
# Toggle monitor settings
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# only show on external display
 | 
					 | 
				
			||||||
xrandr --output eDP1 --off
 | 
					 | 
				
			||||||
xrandr --output HDMI1 --mode 3840x2160 --primary
 | 
					 | 
				
			||||||
| 
						 | 
					@ -1,2 +0,0 @@
 | 
				
			||||||
#!/bin/sh
 | 
					 | 
				
			||||||
xrandr  --output eDP --dpi 180 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0 --off
 | 
					 | 
				
			||||||
		Loading…
	
		Reference in New Issue