i3 quits when Randr outputs change
Hello,
my laptop sits in a docking station with the lid closed and two external monitors connected. When I remove it from the dock an automated script would disable the external monitors and activate the laptop monitor.
This works well for e.g. xmonad and others. However, i3 would quit this message:
i3: No usable outputs available.
This is very inconvenient, since I lose my whole X session. Is there a way to fix this?
Thanks and Wishes!
[Edit] For clarification: Due to limitations of xrandr I have to run two separate commands:
xrandr --nograb -d :0.0 \
--dpi 96 \
--output LVDS1 --auto --primary \
--output HDMI2 --off
xrandr --nograb -d :0.0 --output HDMI3 --off
[/Edit]