Created
November 17, 2020 05:30
-
-
Save noizbuster/c5a2ba7c02811d0b0642bc2345077b6f to your computer and use it in GitHub Desktop.
Executes terminal and editor and move them to specific gnome workspace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
backend_path="/home/username/project/admin/my-project-backend" | |
frontend_path="/home/username/project/admin/my-project-frontend" | |
terminator --working-directory=$backend_path -T ADMIN_BACKEND && | |
until wmctrl -l | grep -q "ADMIN_BACKEND"; | |
do | |
sleep 0.1 | |
done | |
wmctrl -r ADMIN_BACKEND -t 2 | |
webstorm $backend_path/ & | |
until wmctrl -l | grep -q "my-project-backend"; | |
do | |
sleep 0.1 | |
done | |
wmctrl -r my-project-backend -t 2 | |
terminator --working-directory=$frontend_path -T ADMIN_FRONTEND && | |
until wmctrl -l | grep -q "ADMIN_FRONTEND"; | |
do | |
sleep 0.1 | |
done | |
wmctrl -r ADMIN_FRONTEND -t 5 | |
webstorm $frontend_path/ & | |
until wmctrl -l | grep -q "my-project-frontend"; | |
do | |
sleep 0.1 | |
done | |
wmctrl -r my-project-frontend -t 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment