From 0e68ae9aa76800216206d25465f13702a8f9b9ae Mon Sep 17 00:00:00 2001 From: SpaceshipOperations <51009028+SpaceshipOperations@users.noreply.github.com> Date: Wed, 10 Mar 2021 02:12:24 +0300 Subject: [PATCH] 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. --- Home.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Home.md b/Home.md index 5441110..1634d18 100644 --- a/Home.md +++ b/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: