Multiple display setup
This commit is contained in:
parent
d89f1eb34b
commit
5c49226514
@ -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
|
||||||
|
|
||||||
# Single laptop screen
|
if [[ $NUM_DISPS > 1 ]]; then
|
||||||
# wlr-randr --output HDMI-A-1 --off --output eDP-1 --on --pos 0,0
|
# 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
|
# Let DWL start
|
||||||
|
Loading…
Reference in New Issue
Block a user