mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-05-11 17:35:57 +08:00
added screen recording script
Former-commit-id: 636b291576
Former-commit-id: 986bd2a97acfdadf146cf6eb037e5244c7e418ea
Former-commit-id: e718bbb1c72bf7bcb6801613ac09addc2af017d9
Former-commit-id: 9683407bb31e867fdb9b9f759aa73db9ca8aa07b
This commit is contained in:
parent
2c3484c224
commit
26258acfe3
1 changed files with 16 additions and 0 deletions
16
Scripts/screenrec.sh
Executable file
16
Scripts/screenrec.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
# Screen recording script
|
||||
# Uses ffmpeg
|
||||
|
||||
RECORDINGS_DIR=~/Videos/Rec
|
||||
SCREEN_RESOLUTION=1366x768
|
||||
FPS=60
|
||||
|
||||
TIMESTAMP="$(date +%Y.%m.%d-%H.%M.%S)"
|
||||
FILENAME=$RECORDINGS_DIR/$TIMESTAMP.screenrec.mp4
|
||||
REC_ICON_PATH=~/.icons/oomox-only_icons/categories/scalable/applications-multimedia.svg
|
||||
|
||||
notify-send "Screen is being recorded." --urgency low -i $REC_ICON_PATH
|
||||
ffmpeg -f x11grab -s $SCREEN_RESOLUTION -r $FPS -i :0.0 -vcodec libx264 -preset medium -crf 22 -y $FILENAME
|
||||
notify-send "Screen recording over." --urgency low -i $REC_ICON_PATH
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue