+ Added scripts directory

This commit is contained in:
ziro 2020-04-19 14:31:51 +07:00
parent c42020a930
commit 08332199a2
23 changed files with 547 additions and 0 deletions

40
.scripts/play.sh Executable file
View file

@ -0,0 +1,40 @@
#!/bin/dash
#Option Display ------------
cancel="Cancel"
trids="3DS"
pc="PC"
mcbe="Minecraft: Bedrock Edition"
mcje="Minecraft: Java Edition"
#Game Types -------------
choices="$cancel\0icon\x1fzcancel
$trids\0icon\x1fz3ds
$pc\0icon\x1fzfullss
$mcbe\0icon\x1fzminecraftbe
$mcje\0icon\x1fzminecraft
NDS\0icon\x1fznds
NES\0icon\x1fznes
PS2\0icon\x1fzps2
RetroArch\0icon\x1fzretroarch
Steam"
gamedir="$HOME/.scripts/games"
#Message ----------------
message="What game do you want to launch?"
#Choice -----------------
chosen=$(echo -e "$choices" | rofi -p Games -dmenu -i -theme ~/.config/rofi/theme/sidebar.rasi)
#Choice Execution -------
case "$chosen" in
RetroArch) notify-send "Launching..." "$chosen" && retroarch ;;
$pc) sh $gamedir/pc.sh ;;
PS2) sh $HOME/.scripts/games/ps2.sh ;;
NDS) sh $HOME/.scripts/games/nds.sh ;;
$trids) sh $HOME/.scripts/games/3ds.sh ;;
Steam) notify-send "Launching..." "$chosen" && steam ;;
$mcbe) sh $gamedir/mcpe.sh ;;
"NES") sh $HOME/.scripts/games/nes.sh ;;
$mcje) notify-send "Launching..." "$chosen" && gamemoderun java -jar "$HOME/my Games/PC/TLauncher.jar";;
esac