mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-23 04:14:33 +02:00
dock: configure dual screen when docking with two commands
xrandr doesn't handle the configuration in one go. Moreover, we cannot just disable internal panel first then configure dual screens.
This commit is contained in:
parent
6f7d274cca
commit
7f29fd3235
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ case "$event,$use,$(uname -n),$name" in
|
|||
# Are we getting docked?
|
||||
sleep 2
|
||||
if xrandr | grep '^DP. connected'; then
|
||||
xrandr --output eDP1 --off --output DP3 --auto --primary --output DP4 --auto --right-of DP3 --dpi 96
|
||||
xrandr --output eDP1 --off --output DP3 --auto --primary
|
||||
xrandr --output DP4 --auto --right-of DP3 --dpi 96
|
||||
fi
|
||||
xkb default
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue