feat: steam os shell file

This commit is contained in:
hesam-init 2024-03-18 19:04:55 +03:30
parent 60d5e73593
commit d2b6bf1dce
5 changed files with 24 additions and 3 deletions

18
configs/sh/.steam-os/main.sh Executable file
View file

@ -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

View file

@ -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"

View file

@ -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"

View file

@ -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)"