mirror of
https://github.com/swaywm/sway.git
synced 2025-03-20 05:19:33 +00:00
There's no need for eval
, it's pointless and vulnerable. Also since we're expanding a variable, it's a good idea to quote it.
parent
4cead0e428
commit
0e68ae9aa7
1 changed files with 1 additions and 2 deletions
3
Home.md
3
Home.md
|
@ -501,8 +501,7 @@ This script detects which is the device path of the integrated card and launches
|
|||
```sh
|
||||
#!/bin/sh
|
||||
val=$(udevadm info -a -n /dev/dri/card1 | grep boot_vga | rev | cut -c 2)
|
||||
cmd="WLR_DRM_DEVICES=/dev/dri/card$val sway"
|
||||
eval "$cmd"
|
||||
WLR_DRM_DEVICES="/dev/dri/card$val" sway
|
||||
```
|
||||
|
||||
You can also configure multiple graphics cards like so:
|
||||
|
|
Loading…
Add table
Reference in a new issue