From da4bd6baad81cad8c6654d5adaf9fdc06f3fd2a7 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Mon, 12 Jun 2023 18:15:25 +0200 Subject: [PATCH] add steam-deck mode --- dot_zprofile | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/dot_zprofile b/dot_zprofile index f28da43..a23f2ea 100644 --- a/dot_zprofile +++ b/dot_zprofile @@ -8,15 +8,6 @@ if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then export QT_QPA_PLATFORMTHEME=qt6ct - export PATH="$PATH:/home/${USER}/.local/bin/" - export PATH="$PATH:/home/${USER}/go/bin/" - export PATH="$PATH:/home/${USER}/.local/share/flatpak/exports/bin/" - - export XDG_DATA_DIRS="/usr/share/:/usr/local/share/:/var/lib/flatpak/exports/share/:/home/${USER}/.local/share/flatpak/exports/share/" - - # Added by Toolbox App - export PATH="$PATH:/home/${USER}/.local/share/JetBrains/Toolbox/scripts" - # First make sure dbus is started if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then export DBUS_SESSION_BUS_ADDRESS="$(dbus-daemon --session --fork --print-address)" @@ -34,6 +25,15 @@ if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then fi fi + export PATH="$PATH:/home/${USER}/.local/bin/" + export PATH="$PATH:/home/${USER}/go/bin/" + export PATH="$PATH:/home/${USER}/.local/share/flatpak/exports/bin/" + + export XDG_DATA_DIRS="/usr/share/:/usr/local/share/:/var/lib/flatpak/exports/share/:/home/${USER}/.local/share/flatpak/exports/share/" + + # Added by Toolbox App + export PATH="$PATH:/home/${USER}/.local/share/JetBrains/Toolbox/scripts" + # Enable SSH agent eval $(keychain --noask --eval --quiet) @@ -47,6 +47,9 @@ if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then if [ "${autostartdesktop}" = "i3" ]; then echo "exec i3" > ~/.xinitrc startx + elif [ "${autostartdesktop}" = "steamos" ]; then + echo "exec steamos-session" > ~/.xinitrc + startx else export QT_QPA_PLATFORM=wayland export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"