View work.bash
#!/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" & |
View dość.bash
#!/bin/bash | |
set -eu | |
PYCHARM_PROJECT_NAME="work" | |
DOCKER_COMPOSE_FILE="/home/prem/work/docker-compose.yml" | |
kill_pid_and_wait () { | |
PID=$1 | |
kill $PID | |