diff options
author | Rafael Marçalo <raroma09@gmail.com> | 2023-11-02 16:54:24 +0000 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2023-11-02 16:54:24 +0000 |
commit | 2763c1e417aef380fe19ecd69c0a6e217c8e9769 (patch) | |
tree | 7ec9abaaf4490667d97b7fcb68e669bc557b1ae3 /scripts/.local/bin/screenrecord | |
parent | f53b9504e0be3ca9b9028dd77eec19e63f4bf0ee (diff) |
Updated lsp servers, added urls to rss and updated screenrecord script
Diffstat (limited to 'scripts/.local/bin/screenrecord')
-rwxr-xr-x | scripts/.local/bin/screenrecord | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/.local/bin/screenrecord b/scripts/.local/bin/screenrecord index c3ac024..d47bdaa 100755 --- a/scripts/.local/bin/screenrecord +++ b/scripts/.local/bin/screenrecord @@ -8,22 +8,22 @@ else INPUT=$(printf "Video Only\nVideo and Audio\nVideo and Voice\nAudio Only\nVoice Only" | dmenu -i -p "Record: ") case "$INPUT" in "Video Only") - ffmpeg -y -f x11grab -framerate 60 -s $(xdpyinfo | grep dimensions | awk '{print $2}') -i :0.0 ~/Videos/Recordings/recording-"$(date '+%Y%m%d_%H%M%S')".mkv + ffmpeg -y -f gdigrab -framerate 60 -i :0.0 ~/Videos/Recordings/recording-"$(date '+%Y%m%d_%H%M%S')".mkv ;; "Video and Audio") - SOURCE=$(pamixer --list-sources | grep -vi "Sources:" | awk '{print $2}' | grep output | sed s:\"::g) + SOURCE=$(pamixer --list-sources | grep -vi "Sources:" | grep "Running" | awk '{print $2}' | grep output | sed s:\"::g) ffmpeg -y -f x11grab -framerate 60 -s $(xdpyinfo | grep dimensions | awk '{print $2}') -i :0.0 -f pulse -i $SOURCE -c:v libx264rgb -preset superfast -c:a flac ~/Videos/Recordings/recording-"$(date '+%Y%m%d_%H%M%S')".mkv ;; "Video and Voice") - SOURCE=$(pamixer --list-sources | grep -vi "Sources:" | awk '{print $2}' | grep input | sed s:\"::g) + SOURCE=$(pamixer --list-sources | grep -vi "Sources:" | grep "Running" | awk '{print $2}' | grep output | sed s:\"::g) ffmpeg -y -f x11grab -framerate 60 -s $(xdpyinfo | grep dimensions | awk '{print $2}') -i :0.0 -f pulse -i $SOURCE -c:v libx264rgb -preset superfast -r 30 -c:a flac ~/Videos/Recordings/recording-"$(date '+%Y%m%d_%H%M%S')".mkv ;; "Audio Only") - SOURCE=$(pamixer --list-sources | grep -vi "Sources:" | awk '{print $2}' | grep output | sed s:\"::g) + SOURCE=$(pamixer --list-sources | grep -vi "Sources:" | grep "Running" | awk '{print $2}' | grep output | sed s:\"::g) ffmpeg -y -f pulse -i $SOURCE -c:v libx264rgb -preset superfast -c:a flac ~/Music/Recordings/recording-"$(date '+%Y%m%d_%H%M%S')".flac ;; "Voice Only") - SOURCE=$(pamixer --list-sources | grep -vi "Sources:" | awk '{print $2}' | grep input | sed s:\"::g) + SOURCE=$(pamixer --list-sources | grep -vi "Sources:" | grep "Running" | awk '{print $2}' | grep output | sed s:\"::g) ffmpeg -y -f pulse -i $SOURCE -c:v libx264rgb -preset superfast -c:a flac ~/Music/Recordings/recording-"$(date '+%Y%m%d_%H%M%S')".flac esac fi |