diff --git a/config/hypr/config/keybindings/other.conf b/config/hypr/config/keybindings/other.conf index 19b60fe..4b4b26f 100644 --- a/config/hypr/config/keybindings/other.conf +++ b/config/hypr/config/keybindings/other.conf @@ -48,7 +48,7 @@ bind = $mainMod, F2, exec, bash -c "xdg-open roblox://" bind = $mainMod, F5, exec, notify-send -u critical "Hyprland" "Enabled debug overlay" && hyprctl keyword debug:overlay 1 # bind = $mainMod SHIFT, F3, exec, bash -c "NIXPKGS_ALLOW_UNFREE=1 nix-shell -p osu-lazer-bin --command osu\!" -bind = $mainMod CTRL SHIFT, F9, exec, pkill wofi || bash $HOME/config/scripts/open-roblox-game.sh +bind = $mainMod CTRL SHIFT, F9, exec, pkill wofi || bash $HOME/config/scripts/open-game.sh bind = $mainMod SHIFT, F, fullscreen, 1 bind = $mainMod, SPACE, exec, bash $HOME/config/scripts/toggle-language.sh diff --git a/scripts/lib/games.txt b/scripts/lib/games.txt index 8bca163..2c743c8 100644 --- a/scripts/lib/games.txt +++ b/scripts/lib/games.txt @@ -1,10 +1,7 @@ -Regretevator %%% xdg-open roblox://placeId=4972273297 -Something Evil Will Happen %%% xdg-open roblox://placeId=16991287194 -Doors %%% xdg-open roblox://placeId=6516141723 -Nico's Nextbots %%% xdg-open roblox://placeId=10118559731 -Kaiju Paradise %%% xdg-open roblox://placeId=6456351776 -Pressure %%% xdg-open roblox://placeId=12411473842 -Untitled Tag Game %%% xdg-open roblox://placeId=14044547200 -Running From The Internet %%% xdg-open roblox://placeId=11195100561 -Evade %%% xdg-open roblox://placeId=9872472334 -The Foundation %%% xdg-open roblox://placeId=18186775539 +Deltarune %%% steam steam://rungameid/1671210 +Half-Life 2 %%% steam steam://rungameid/220 +Portal 2 %%% steam steam://rungameid/620 +Garry's Mod %%% steam steam://rungameid/4000 +SCP:SL %%% steam steam://rungameid/700330 +CS2 %%% steam steam://rungameid/730 +Roblox %%% hyprctl dispatch exec ~/config/scripts/open-roblox-game.sh diff --git a/scripts/lib/gamesRoblox.txt b/scripts/lib/gamesRoblox.txt new file mode 100644 index 0000000..8bca163 --- /dev/null +++ b/scripts/lib/gamesRoblox.txt @@ -0,0 +1,10 @@ +Regretevator %%% xdg-open roblox://placeId=4972273297 +Something Evil Will Happen %%% xdg-open roblox://placeId=16991287194 +Doors %%% xdg-open roblox://placeId=6516141723 +Nico's Nextbots %%% xdg-open roblox://placeId=10118559731 +Kaiju Paradise %%% xdg-open roblox://placeId=6456351776 +Pressure %%% xdg-open roblox://placeId=12411473842 +Untitled Tag Game %%% xdg-open roblox://placeId=14044547200 +Running From The Internet %%% xdg-open roblox://placeId=11195100561 +Evade %%% xdg-open roblox://placeId=9872472334 +The Foundation %%% xdg-open roblox://placeId=18186775539 diff --git a/scripts/open-game.sh b/scripts/open-game.sh new file mode 100755 index 0000000..96bd2ac --- /dev/null +++ b/scripts/open-game.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +GAMES=$(cat ~/config/scripts/lib/games.txt) + +SELECTED=$(echo "$GAMES" | cut -d'%' -f1 | wofi --show dmenu -p "Play something...") + +if [ -n "$SELECTED" ]; then + PLACE_ID=$(echo "$GAMES" | grep "^$SELECTED" | sed 's/.*%%% //') + if [ -n "$PLACE_ID" ]; then + exec $PLACE_ID + fi +fi diff --git a/scripts/open-roblox-game.sh b/scripts/open-roblox-game.sh index 2a8a73e..7f4dda2 100755 --- a/scripts/open-roblox-game.sh +++ b/scripts/open-roblox-game.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -GAMES=$(cat ~/config/scripts/lib/games.txt) +GAMES=$(cat ~/config/scripts/lib/gamesRoblox.txt) SELECTED=$(echo "$GAMES" | cut -d'%' -f1 | wofi --show dmenu -p "Play Roblox...")