This repository has been archived on 2024-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
al-skel/home/bin/toggle-termite

15 lines
204 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
MATCH=$(pgrep --full 'termite --title=work-term')
if ! $MATCH; then
pkill --full 'termite --title=work-term'
else
termite --title=work-term --class=work-term &
fi
exit 0