Multiple display setup
This commit is contained in:
		| @@ -2,11 +2,16 @@ | |||||||
|  |  | ||||||
| echo "Entourage: $XDG_RUNTIME_DIR - $DWL_TAGS_FILE" >> $DWL_LOG_FILE | echo "Entourage: $XDG_RUNTIME_DIR - $DWL_TAGS_FILE" >> $DWL_LOG_FILE | ||||||
|  |  | ||||||
| # Dual screen | NUM_DISPS=$(wlr-randr | egrep "^\w+" | wc -l) | ||||||
| wlr-randr --output HDMI-A-1 --on --pos 0,0 --output eDP-1 --on --pos 1680,0 | echo "Entourage: Configuring ${NUM_DISPS} displays" >> $DWL_LOG_FILE | ||||||
|  |  | ||||||
|  | if [[ $NUM_DISPS > 1 ]]; then | ||||||
|  |     # Dual screen | ||||||
|  |     wlr-randr --output HDMI-A-1 --on --pos 0,0 --output eDP-1 --on --pos 0,1050 | ||||||
|  | else | ||||||
|     # Single laptop screen |     # Single laptop screen | ||||||
| # wlr-randr --output HDMI-A-1 --off --output eDP-1 --on --pos 0,0 |     wlr-randr --output HDMI-A-1 --off --output eDP-1 --on --pos 0,0 | ||||||
|  | fi | ||||||
|  |  | ||||||
| # ---------------------------------------------------------- | # ---------------------------------------------------------- | ||||||
| # Let DWL start | # Let DWL start | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user