diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-06-15 21:48:42 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-06-15 21:48:42 -0400 |
| commit | bc9de2e26a1ce5e4033bd63c94f22b3bab11e808 (patch) | |
| tree | e9347deced2dff63820334d0dfb4c24b87e57bef /.scripts/killrecording | |
| parent | 748e9849856ec66374b0f1280a3137ae4f661b43 (diff) | |
| download | eibhear-bc9de2e26a1ce5e4033bd63c94f22b3bab11e808.tar.gz eibhear-bc9de2e26a1ce5e4033bd63c94f22b3bab11e808.tar.zst eibhear-bc9de2e26a1ce5e4033bd63c94f22b3bab11e808.zip | |
recording notification added, script fixes
Diffstat (limited to '.scripts/killrecording')
| -rwxr-xr-x | .scripts/killrecording | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.scripts/killrecording b/.scripts/killrecording new file mode 100755 index 0000000..b7c9827 --- /dev/null +++ b/.scripts/killrecording @@ -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 |
