diff options
author | tsxv478 <atci39@rambler.ru> | 2023-11-26 13:35:53 +0300 |
---|---|---|
committer | tsxv478 <atci39@rambler.ru> | 2023-11-26 13:35:53 +0300 |
commit | 31b01d930cd4e33eb52dab9d262a1e8c26954dc2 (patch) | |
tree | 02eaff8385686a3d3a1eb80fe2b7ee352cd663fa | |
parent | 87e4ddcbe2f3da98ae1d57b21e9bdbb8b8eef13e (diff) |
fixes
-rwxr-xr-x | ffrec | 24 | ||||
-rwxr-xr-x | scr | 14 |
2 files changed, 19 insertions, 19 deletions
@@ -29,7 +29,7 @@ screencast() { \ -f alsa -thread_queue_size 1024 -i default \ -c:v h264 \ -crf 0 -preset ultrafast -c:a aac \ - "$HOME/screencast-$(date '+%y%m%d-%H%M-%S').mp4" & + "$HOME/screencast-$(date '+%y%m%d-%H%M%S').mp4" & echo $! > /tmp/recordingpid } @@ -39,7 +39,7 @@ video() { ffmpeg \ -s "$(getdim)" \ -i "$DISPLAY" \ -c:v libx264 -qp 0 -r 30 \ - "$HOME/video-$(date '+%y%m%d-%H%M-%S').mkv" & + "$HOME/video-$(date '+%y%m%d-%H%M%S').mkv" & echo $! > /tmp/recordingpid } @@ -47,7 +47,7 @@ webcamhidef() { ffmpeg \ -f v4l2 \ -i /dev/video0 \ -video_size 1920x1080 \ - "$HOME/webcam-$(date '+%y%m%d-%H%M-%S').mkv" & + "$HOME/webcam-$(date '+%y%m%d-%H%M%S').mkv" & echo $! > /tmp/recordingpid } @@ -55,7 +55,7 @@ webcam() { ffmpeg \ -f v4l2 \ -i /dev/video0 \ -video_size 640x480 \ - "$HOME/webcam-$(date '+%y%m%d-%H%M-%S').mkv" & + "$HOME/webcam-$(date '+%y%m%d-%H%M%S').mkv" & echo $! > /tmp/recordingpid } @@ -64,19 +64,19 @@ audio() { \ ffmpeg \ -f alsa -i default \ -c:a flac \ - "$HOME/audio-$(date '+%y%m%d-%H%M-%S').flac" & + "$HOME/audio-$(date '+%y%m%d-%H%M%S').flac" & echo $! > /tmp/recordingpid } askrecording() { \ - choice=$(printf "video\\nvideo selected\\naudio\\nscreencast\\nwebcam\\nwebcam (hi-def)" | dmenu -i -c -l 6 -p "Record:") + choice=$(printf "Video\\nVideo selected\\nAudio\\nScreencast\\nWebcam\\nWebcam (hi-def)" | dmenu -i -c -l 6 -p "Record:") case "$choice" in - video) video;; + Video) video;; *selected) videoselected;; - audio) audio;; - screencast) screencast;; - webcam) webcam;; - "webcam (hi-def)") webcamhidef;; + Audio) audio;; + Screencast) screencast;; + Webcam) webcam;; + "Webcam (hi-def)") webcamhidef;; esac } @@ -97,7 +97,7 @@ videoselected() -video_size "$W"x"$H" \ -i :0.0+"$X,$Y" \ -c:v libx264 -qp 0 -r 30 \ - "$HOME/box-$(date '+%y%m%d-%H%M-%S').mkv" & + "$HOME/box-$(date '+%y%m%d-%H%M%S').mkv" & echo $! > /tmp/recordingpid } @@ -3,11 +3,11 @@ output="$(date '+%y%m%d%H%M%S').png" xclip_cmd="xclip -selection clipboard -t image/png" -case "$(printf "selected area\\ncurrent window\\nfull screen\\nselected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -i -c -l 6 -p "Screenshot area?")" in - "selected area") maim -u -s img-sel-"${output}" ;; - "current window") maim -u -B -q -d 0.2 -i "$(xdotool getactivewindow)" img-win-"${output}" ;; - "full screen") maim -u -q -d 0.2 img-full-"${output}" ;; - "selected area (copy)") maim -u -s | ${xclip_cmd} ;; - "current window (copy)") maim -u -B -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;; - "full screen (copy)") maim -u -q -d 0.2 | ${xclip_cmd} ;; +case "$(printf "Selected area\\nCurrent window\\nFull screen\\nSelected area (copy)\\nCurrent window (copy)\\nFull screen (copy)" | dmenu -i -c -l 6 -p "Screenshot area?")" in + "Selected area") maim -u -s img-sel-"${output}" ;; + "Current window") maim -u -B -q -d 0.2 -i "$(xdotool getactivewindow)" img-win-"${output}" ;; + "Full screen") maim -u -q -d 0.2 img-full-"${output}" ;; + "Selected area (copy)") maim -u -s | ${xclip_cmd} ;; + "Current window (copy)") maim -u -B -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;; + "Full screen (copy)") maim -u -q -d 0.2 | ${xclip_cmd} ;; esac |