recording notification added, script fixes

This commit is contained in:
Luke Smith committed 2018-06-15 21:48:42 -04:00
1 parent 748e984985
commit bc9de2e26a
5 files changed
+23 -6

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
# I'm not quite sure why, but a new non-recording instance of ffmpeg will start after
# being killed the first time, so the core command here runs twice after a break.
pkill -P $(pgrep -x screencast\|audio\|video) 2>/dev/null && sleep .5 &&
pkill -P $(pgrep -x screencast\|audio\|video) 2>/dev/null
# Update i3bar.
echo "" > ~/.scripts/.recording
pkill -RTMIN+9 i3blocks