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