Skip to content

Instantly share code, notes, and snippets.

@przemub
Created February 4, 2021 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save przemub/0c9648d0deacc2ec7a4af63a2aaa9182 to your computer and use it in GitHub Desktop.
Save przemub/0c9648d0deacc2ec7a4af63a2aaa9182 to your computer and use it in GitHub Desktop.
#!/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