mirror of
https://github.com/swaywm/sway.git
synced 2025-02-16 14:24:27 +00:00
Added script to launch sway with the integrated (intel) card for multi-gpu users
parent
4ba6d46ed6
commit
7fb55773ef
10
Home.md
10
Home.md
|
@ -277,6 +277,16 @@ Try with a different default card (listed in `/dev/dri/`), for example:
|
|||
WLC_DRM_DEVICE=card1 sway
|
||||
```
|
||||
|
||||
It's likely that you want sway to use the integrated (intel) card, because probably that's the only one directly connected to the laptop monitor. However, the mapping between node names in `/dev/dri/` and actual cards isn't guaranteed to be the same across reboots.
|
||||
This script detects which is the device path of the integrated card and launches sway accordingly:
|
||||
```
|
||||
#! /bin/bash
|
||||
|
||||
val=$(udevadm info -a -n /dev/dri/card1 | grep boot_vga | rev | cut -c 2)
|
||||
cmd="WLC_DRM_DEVICE=card$val sway"
|
||||
eval "$cmd"
|
||||
```
|
||||
|
||||
### Can I use Sway with Gnome?
|
||||
|
||||
In the X11 world the windowmanager and desktop environment could be mix and matched. In Wayland it's not as easy to mix different windowmanagers and desktop environments. While some people could use the i3 windowmanager with the gnome desktop, this is not possible with sway.
|
Loading…
Reference in a new issue