Howto:Use multiple screens under linux: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Created page with "This Howto explains how to get FlightGear running over multiple screens on Linux. Like so often on Linux, there are multiple ways to get something working. This is just a way,...")
 
m (Added invitation to add another way.)
Line 16: Line 16:
* Now you have to set the relative position of the screens with 'xrandr --output <output> --left-of <output>' and 'xrandr --output <output> --right-of <output>'. Here you have to play a bit around since every system is different (The changes are not permanent so you just have to log out and in again to reset).
* Now you have to set the relative position of the screens with 'xrandr --output <output> --left-of <output>' and 'xrandr --output <output> --right-of <output>'. Here you have to play a bit around since every system is different (The changes are not permanent so you just have to log out and in again to reset).
* When you have figured out, which command (or with more than two screens, commands) work for you, add the following line to the i3 config file: 'exec <your command>' (multiple times when you needed more than one command). This way it doesn't change anything to your usually used window manager.
* When you have figured out, which command (or with more than two screens, commands) work for you, add the following line to the i3 config file: 'exec <your command>' (multiple times when you needed more than one command). This way it doesn't change anything to your usually used window manager.
Feel free to add your way.

Revision as of 12:22, 1 December 2017

This Howto explains how to get FlightGear running over multiple screens on Linux. Like so often on Linux, there are multiple ways to get something working. This is just a way, that worked for me.

Using i3 window manager

  • First of all, you have to install the i3 window manager using your package manager (or, at your choice, from source).
  • When running i3 for the first time, you'll be asked if you want it to create a config file for you and what key (Alt or Win) you want to use as mod key. Confirm the creation of the config file. (In this Howto I assume, that the Win key is used as mod key)
  • Edit the config file, usually located in '~/.config/i3/config', with the text editor of your choice.
  • Add following line: 'bindsym $mod+Shift+f fullscreen toggle global' (You can use any other combination as well as long as it doesn't already exists.)
  • Now reload the config (easiest way to do so is to log out and in again).
  • Now it's time to start FlightGear using the terminal (Win+Enter) or the dmenu (Win+d). When it has started, press Win+Shift+f and here you go.

If it happens that the screens are in the wrong order, use the following steps to fix.

  • Open a terminal and run 'xrandr' to list all your outputs. Outputs with resolution information are connected.
  • Now you have to set the relative position of the screens with 'xrandr --output <output> --left-of <output>' and 'xrandr --output <output> --right-of <output>'. Here you have to play a bit around since every system is different (The changes are not permanent so you just have to log out and in again to reset).
  • When you have figured out, which command (or with more than two screens, commands) work for you, add the following line to the i3 config file: 'exec <your command>' (multiple times when you needed more than one command). This way it doesn't change anything to your usually used window manager.


Feel free to add your way.