Skip to content

Commit

Permalink
Merge pull request #80 from senolfeldmann/output_connector_env_var
Browse files Browse the repository at this point in the history
Add env variable OUTPUT_CONNECTOR
  • Loading branch information
alkazar authored Mar 31, 2024
2 parents f4ecaf1 + 00b87ba commit f657cb4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions usr/share/gamescope-session-plus/gamescope-session-plus
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ if [ -f "$CURSOR_FILE" ] ; then
CURSOR="--cursor ${CURSOR_FILE}"
fi

# Use specified output connector(s) if set, otherwise use default value
: "${OUTPUT_CONNECTOR:=*,eDP-1}"

if [ -z "$GAMESCOPECMD" ] ; then
RESOLUTION=""
if [ -n "$SCREEN_WIDTH" ] && [ -n "$SCREEN_HEIGHT" ] ; then
Expand All @@ -142,7 +145,7 @@ if [ -z "$GAMESCOPECMD" ] ; then
-e \
$RESOLUTION \
--xwayland-count 2 \
-O *,eDP-1 \
-O $OUTPUT_CONNECTOR \
--default-touch-mode 4 \
--hide-cursor-delay 3000 \
--fade-out-duration 200 \
Expand All @@ -153,7 +156,7 @@ if [ -z "$GAMESCOPECMD" ] ; then
-e \
$RESOLUTION \
--xwayland-count 2 \
-O *,eDP-1 \
-O $OUTPUT_CONNECTOR \
--default-touch-mode 4 \
--hide-cursor-delay 3000 \
--fade-out-duration 200 \
Expand Down

0 comments on commit f657cb4

Please sign in to comment.