diff options
| -rw-r--r-- | bash/.bashrc | 1 | ||||
| l--------- | bin/rstudio | 1 | ||||
| -rwxr-xr-x | bin/steam-launcher | 15 | ||||
| -rw-r--r-- | sway/.config/sway/config | 1 |
4 files changed, 16 insertions, 2 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 68b9dff..3d78e94 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -8,7 +8,6 @@ alias vim="nvim" alias lg="lazygit" alias pgl="pass git pull" alias pgs="pass git push" -alias spt="spotify_player -d" alias swconf="nvim ~/.config/sway/config" alias sandisk="sudo mount /dev/sda1 /mnt/sandisk && cd /mnt/sandisk/" alias :q="exit" diff --git a/bin/rstudio b/bin/rstudio deleted file mode 120000 index b4ed8cc..0000000 --- a/bin/rstudio +++ /dev/null @@ -1 +0,0 @@ -/usr/lib/rstudio/rstudio \ No newline at end of file diff --git a/bin/steam-launcher b/bin/steam-launcher new file mode 100755 index 0000000..4504469 --- /dev/null +++ b/bin/steam-launcher @@ -0,0 +1,15 @@ +#!/bin/bash + +GAME=$(cat $(find ~/.local/share/Steam/steamapps/ -maxdepth 1 -type f -name '*.acf') | grep "name" | grep -v "Steam" | grep -v "Proton" | sed 's/.$//' | cut -d'"' -f2- | cut -d'"' -f2- | cut -d'"' -f2- | dmenu) + +if [ $? -ne 0 ]; then + exit 1 +fi + + +APPID=$(grep -rl --include="*.acf" "$GAME" ~/.local/share/Steam/steamapps | cut -d'_' -f2- | sed 's/\.acf$//') + + +echo "'$GAME' with id '$APPID' will be executed" + +steam steam://launch/$APPID diff --git a/sway/.config/sway/config b/sway/.config/sway/config index f8193f2..f8e20e1 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -147,6 +147,7 @@ bindsym $mod+Shift+p exec passmenu bindsym $mod+Ctrl+w exec random-wallpaper bindsym $mod+u exec toggle_monitor_focus bindsym $mod+Shift+m exec prismlauncher -l 1.21.4 -s krinitsin.xyz +bindsym $mod+Shift+g exec steam-launcher # autostart exec --no-startup-id /usr/bin/dunst |