Skip to content

Instantly share code, notes, and snippets.

@przemub

przemub/work.bash

Created Feb 4, 2021
Embed
What would you like to do?
#!/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