Created
June 24, 2019 19:36
-
-
Save norcalli/81fa49055767d84986637151237f7dbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
fuser -sk -SIGINT "$0" | |
test "$1" = off && exit 0 | |
[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -enx "$0" "$0" "$@" || : | |
exec wf-recorder -f ~/screens/vids/vid-$(date +"%Y-%m-%d-%H%M%S").mp4 -g "$(slurp)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The recording path is hardcoded to my preferences and uses slurp for region recording. Canceling slurp records the whole screen. Running the script again stops screen recording.