diff options
author | EuAndreh <eu@euandre.org> | 2025-03-07 08:04:22 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-03-07 08:04:36 -0300 |
commit | 41e2e386ccdb08a5c92d8151d8276fd6655402b2 (patch) | |
tree | 1468dd0de3921ccb6057bf24e334afffc1048cad /bin | |
parent | bin/process: Overwrite existing hardlinks (diff) | |
download | dotfiles-41e2e386ccdb08a5c92d8151d8276fd6655402b2.tar.gz dotfiles-41e2e386ccdb08a5c92d8151d8276fd6655402b2.tar.xz |
rm bin/record-my-screen
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/record-my-screen | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/bin/record-my-screen b/bin/record-my-screen deleted file mode 100755 index 347fd7a..0000000 --- a/bin/record-my-screen +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/sh -set -eu - -usage() { - cat <<-'EOF' - record-my-screen [FILE] - record-my-screen -h - EOF -} - -help() { - cat <<-'EOF' - - - Options: - -h, --help show this message - - FILE the name of the output file (default: out.webm) - - - Do a screen capture. Exit with "q". - - - Examples: - - Just run it: - - $ record-my-screen - EOF -} - - -for flag in "$@"; do - case "$flag" in - (--) - break - ;; - (--help) - usage - help - exit - ;; - (*) - ;; - esac -done - -while getopts 'h' flag; do - case "$flag" in - (h) - usage - help - exit - ;; - (*) - usage >&2 - exit 2 - ;; - esac -done -shift $((OPTIND - 1)) - -FILE="${1:-out.webm}" - - -RESOLUTION="$(xrandr -q --current | awk '/[*]/ && $0=$1')" - -ffmpeg \ - -f pulse \ - -i default \ - -f x11grab \ - -s "$RESOLUTION" \ - -i "$DISPLAY" \ - "$FILE" |