From a12bc52c5b846579f7c378165bd5b7c4fcd3cf9c Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Mon, 15 May 2023 00:08:52 +0300 Subject: [PATCH] Update gamescope-resolution-configurator --- debian/extras/gamescope-resolution-configurator | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/extras/gamescope-resolution-configurator b/debian/extras/gamescope-resolution-configurator index 56c8db7..2cd3d65 100755 --- a/debian/extras/gamescope-resolution-configurator +++ b/debian/extras/gamescope-resolution-configurator @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/usr/bin/bash DEFAULT_RESOLUTION=$(xdpyinfo | awk '/dimensions/{print $2}') # Steam Deck Default @@ -75,7 +75,7 @@ if [[ $DEFAULT_RESOLUTION == 2256x1504 ]]; then fi CONFIG=$HOME/.config/environment.d/gamescope-session.conf -if [ ! -d $HOME/.config/environment.d/ ]; then +if [ ! -f $CONFIG ]; then echo "Creating $CONFIG" mkdir -p $HOME/.config/environment.d/ echo 'SCREEN_WIDTH='$SCREEN_WIDTH > $CONFIG