Created
February 4, 2021 00:33
-
-
Save przemub/0c9648d0deacc2ec7a4af63a2aaa9182 to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
set -eux | |
PYCHARM_PROJECT_ID="work" | |
PYCHARM_PROJECT_DIR="/home/prem/work" | |
if ! ( pgrep -a thunderbird | grep Praca ) | |
then | |
i3-msg 'workspace 1; exec thunderbird -P "Work"' | |
# nohup thunderbird -P "Praca" & | |
fi | |
if ! pgrep ripcord | |
then | |
i3-msg 'workspace 2; exec ripcord' | |
# nohup ripcord & | |
fi | |
if ! ( wmctrl -l | grep $PYCHARM_PROJECT_ID ) | |
then | |
i3-msg "workspace 3; exec pycharm-professional $PYCHARM_PROJECT_DIR" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment