| Post Reply | RetroFed Forum Forum Index » i3 Window Manager |
| Author | Message | ||
|---|---|---|---|
ExtremeDullard
lemmy.sdf.org
ExtremeDullard@lemmy.sdf.orgJoined: 2023-07-23 |
Every once in a while, I connect my laptop to my TV at home and watch a movie on my hard drive. So I configured the external display in Xorg in my i3 configuration file and it works fine. The problem is, the external display is enabled even if it's not connected, so the mouse regularly "disappears" off the right of the laptop screen. Worse, when I run Cinnamon in Xephyr (a windowed environment), the display spans the entire virtual display including the invisible external display, and I only see the left half of the windows in fullscreen mode. So I needed some way to configure the external display as secondary display, but start it off, and then define a key binding to turn it on and off as needed. Here are the relevant config file lines to achieve this, if you have the same need:
Note that in my case, my laptop's internal display is called Also, I configured workspaces 1, 2 and 3 to be assigned to the laptop's display, and 4, 5 and 6 to the external display with these lines:
If the external display is disabled, workspaces 4, 5 and 6 fall back to the primary display (the laptop's monitor). When the external display is re-enabled, they automatically move back there. So you can have a movie going on display 4 for example, plug in the external monitor, hit Shift-Meta-D and hey-presto, your movie moves to the external monitor. I hope this helps. |
||
| 1 Original | |||
| Post Reply |
Back to top |