feat: steam os shell file
This commit is contained in:
parent
60d5e73593
commit
d2b6bf1dce
5 changed files with 24 additions and 3 deletions
18
configs/sh/.steam-os/main.sh
Executable file
18
configs/sh/.steam-os/main.sh
Executable 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
|
|
@ -6,8 +6,10 @@ alias fdir="cd $HOME/.var/app && ls"
|
||||||
|
|
||||||
alias grub-path="cd /etc/default"
|
alias grub-path="cd /etc/default"
|
||||||
|
|
||||||
|
alias pmx="chmod +x"
|
||||||
|
alias pmr="chmod -x"
|
||||||
alias steam="steam -forcedesktopscaling=1"
|
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 z="zellij"
|
||||||
alias zk="zellij kill-all-sessions -y"
|
alias zk="zellij kill-all-sessions -y"
|
||||||
alias sp="LD_PRELOAD=/usr/lib/spotify-adblock.so spotify"
|
alias sp="LD_PRELOAD=/usr/lib/spotify-adblock.so spotify"
|
|
@ -8,6 +8,7 @@ export CODE_PATH=/opt/vscode/code
|
||||||
export DOTFILES=$HOME/.dots-hyprland
|
export DOTFILES=$HOME/.dots-hyprland
|
||||||
export VOID_PACKAGES_PATH=$HOME/.local/pkgs/void-packages
|
export VOID_PACKAGES_PATH=$HOME/.local/pkgs/void-packages
|
||||||
export DNS_CHANGER=$HOME/.shell/dns-changer.sh
|
export DNS_CHANGER=$HOME/.shell/dns-changer.sh
|
||||||
|
export STEAM_OS=$HOME/.steam-os/main.sh
|
||||||
|
|
||||||
if [ -d "$HOME/platform-tools" ]; then
|
if [ -d "$HOME/platform-tools" ]; then
|
||||||
export PATH="$HOME/platform-tools:$PATH"
|
export PATH="$HOME/platform-tools:$PATH"
|
||||||
|
|
|
@ -17,7 +17,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
source ~/.zsh/aliases/index.zsh
|
source ~/.zsh/aliases/main.zsh
|
||||||
source ~/.zsh/functions/index.zsh
|
source ~/.zsh/functions/main.zsh
|
||||||
|
|
||||||
eval "$(atuin init zsh)"
|
eval "$(atuin init zsh)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue