stop-rec 206 B

1234567
  1. #!/bin/sh
  2. # kills the running screencast
  3. kill "$(pgrep -f "screencast" | head -n 1)"
  4. kill "$(pgrep -f "screencast" | tail -n 1)"
  5. [ -z "$(pgrep -f "screencast")" ] && notify-send "screencasting" "stopped"