Files
dotfiles/.local/bin/station-setup-minecraft
2026-03-15 16:24:30 +00:00

22 lines
491 B
Bash
Executable File

#! /bin/zsh
echo "Signing into Minecraft..."
read -r username password <<< "$(station-get-username-password "Minecraft")"
echo -n "$username" | wl-copy
lunarclient &
station-confirm-or-close "Minecraft Setup" "Username copied.\nPress OK for password"
echo -n "$password" | wl-copy
station-confirm-or-close "Minecraft Setup" "Click OK when you have finished logging in to move on."
wl-copy --clear
hyprctl dispatch closewindow class:lunarclient
echo "Finished setting up Minecraft"