From 6d7f0e09e6bcf5cbcbf47d747e85eab1a4256864 Mon Sep 17 00:00:00 2001 From: tiago Date: Sun, 21 May 2023 18:18:04 +0100 Subject: [PATCH] fix non posix compliant if statement --- .xinitrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.xinitrc b/.xinitrc index f801a47..2ff5092 100755 --- a/.xinitrc +++ b/.xinitrc @@ -32,7 +32,7 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then unset f fi -if [[ -f /usr/bin/prime-offload ]]; then +if [ -f /usr/bin/prime-offload ]; then /usr/bin/prime-offload fi @@ -42,7 +42,7 @@ setxkbmap -layout us,pt setxkbmap -option grp:win_space_toggle gpu_mode=$(/usr/bin/envycontrol -q) -if [[ "$gpu_mode" == "nvidia" ]]; then +if [ "$gpu_mode" = "nvidia" ]; then xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto xrandr --output HDMI-0 --above eDP-1-1