Update gamescope-resolution-configurator

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-05-15 00:08:52 +03:00 committed by GitHub
parent 6b4913e23f
commit a12bc52c5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
#!/usr/bin/sh #!/usr/bin/bash
DEFAULT_RESOLUTION=$(xdpyinfo | awk '/dimensions/{print $2}') DEFAULT_RESOLUTION=$(xdpyinfo | awk '/dimensions/{print $2}')
# Steam Deck Default # Steam Deck Default
@ -75,7 +75,7 @@ if [[ $DEFAULT_RESOLUTION == 2256x1504 ]]; then
fi fi
CONFIG=$HOME/.config/environment.d/gamescope-session.conf CONFIG=$HOME/.config/environment.d/gamescope-session.conf
if [ ! -d $HOME/.config/environment.d/ ]; then if [ ! -f $CONFIG ]; then
echo "Creating $CONFIG" echo "Creating $CONFIG"
mkdir -p $HOME/.config/environment.d/ mkdir -p $HOME/.config/environment.d/
echo 'SCREEN_WIDTH='$SCREEN_WIDTH > $CONFIG echo 'SCREEN_WIDTH='$SCREEN_WIDTH > $CONFIG