diff --git a/configs/sh/.steam-os/main.sh b/configs/sh/.steam-os/main.sh new file mode 100755 index 0000000..e5f253b --- /dev/null +++ b/configs/sh/.steam-os/main.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +run_services() { + exec dbus-update-activation-environment --all + exec ~/.config/scripts/pipewire.sh +} + +run_steamos() { + local width=1600 + local height=900 + local refresh_rate=75 + + STEAM_MULTIPLE_XWAYLANDS=1 gamescope -W "$width" -H "$height" -r "$refresh_rate" -e --xwayland-count 2 --adaptive-sync -- steam -gamepadui -steamdeck +} + +run_services + +run_steamos diff --git a/configs/sh/.zsh/aliases/index.zsh b/configs/sh/.zsh/aliases/main.zsh similarity index 86% rename from configs/sh/.zsh/aliases/index.zsh rename to configs/sh/.zsh/aliases/main.zsh index 56f86c8..5377464 100644 --- a/configs/sh/.zsh/aliases/index.zsh +++ b/configs/sh/.zsh/aliases/main.zsh @@ -6,8 +6,10 @@ alias fdir="cd $HOME/.var/app && ls" alias grub-path="cd /etc/default" +alias pmx="chmod +x" +alias pmr="chmod -x" alias steam="steam -forcedesktopscaling=1" -alias steamos="STEAM_MULTIPLE_XWAYLANDS=1 gamescope -W 1600 -H 900 -r 75 -e --xwayland-count 2 --adaptive-sync -- steam -gamepadui -steamdeck" +alias steamos="$STEAM_OS" alias z="zellij" alias zk="zellij kill-all-sessions -y" alias sp="LD_PRELOAD=/usr/lib/spotify-adblock.so spotify" diff --git a/configs/sh/.zsh/functions/index.zsh b/configs/sh/.zsh/functions/main.zsh similarity index 100% rename from configs/sh/.zsh/functions/index.zsh rename to configs/sh/.zsh/functions/main.zsh diff --git a/configs/sh/.zshenv b/configs/sh/.zshenv index 9537ed8..a8529bd 100644 --- a/configs/sh/.zshenv +++ b/configs/sh/.zshenv @@ -8,6 +8,7 @@ export CODE_PATH=/opt/vscode/code export DOTFILES=$HOME/.dots-hyprland export VOID_PACKAGES_PATH=$HOME/.local/pkgs/void-packages export DNS_CHANGER=$HOME/.shell/dns-changer.sh +export STEAM_OS=$HOME/.steam-os/main.sh if [ -d "$HOME/platform-tools" ]; then export PATH="$HOME/platform-tools:$PATH" diff --git a/configs/sh/.zshrc b/configs/sh/.zshrc index 6c6a46f..da94327 100644 --- a/configs/sh/.zshrc +++ b/configs/sh/.zshrc @@ -17,7 +17,7 @@ else fi source $ZSH/oh-my-zsh.sh -source ~/.zsh/aliases/index.zsh -source ~/.zsh/functions/index.zsh +source ~/.zsh/aliases/main.zsh +source ~/.zsh/functions/main.zsh eval "$(atuin init zsh)"