I have a startup script that opens some programs in each workspace. I want to do some things in the first workspace before it continues opening the programs in the next workspaces. How can I prompt to continue? I've tried using gnome-terminal -e "bash -c \"read -s -p 'Press enter to continue...'\""
but it doesn't stop, the script continues executing even though I haven't used &
to move the process to background.
wmctrl -n 2
sleep 2
wmctrl -s 0
sleep 1
if command -v "firefox" > /dev/null 2>&1; then
firefox &
fi
gnome-terminal -e "bash -c \"read -n1 -sp 'Press enter to continue...'\""
# sleep 30
wmctrl -s 1
sleep 1
if command -v "firefox" > /dev/null 2>&1; then
firefox --new-window &
fi