remove screen recording
This commit is contained in:
parent
24bb73996f
commit
ca09b930c6
@ -43,9 +43,4 @@ bindsym $mod+Shift+Insert --release exec --no-startup-id maim ~/Pictures/$(date
|
|||||||
# Selection and Edit
|
# Selection and Edit
|
||||||
bindsym $mod+Ctrl+Insert exec --no-startup-id maim -s ~/Pictures/$(date +%Y-%m-%d).png&& pinta ~/Pictures/$(date +%Y-%m-%d-%s).png
|
bindsym $mod+Ctrl+Insert exec --no-startup-id maim -s ~/Pictures/$(date +%Y-%m-%d).png&& pinta ~/Pictures/$(date +%Y-%m-%d-%s).png
|
||||||
|
|
||||||
# Screen recording
|
|
||||||
bindsym Shift+Print exec --no-startup-id ~/bin/screencast2gif.sh
|
|
||||||
bindsym Print exec --no-startup-id "ffcast -q $(while slop -q -n -f '-g %g ';do :;done) rec ~/Videos/rec-%si-$(date +%Y-%m-%d-%s).mp4"
|
|
||||||
bindsym $mod+Print exec --no-startup-id pkill -fxn '(/\S+)*ffmpeg\s.*\sx11grab\s.*'
|
|
||||||
|
|
||||||
# End keybind configuration
|
# End keybind configuration
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
date=$(date +%Y-%m-%d-%s)
|
|
||||||
|
|
||||||
ffmpeg() {
|
|
||||||
command ffmpeg -hide_banner -loglevel error -nostdin "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
ffcast -q $(while slop -q -n -f '-g %g ';do :;done) rec ~/Videos/screencast-${date}.mp4
|
|
||||||
|
|
||||||
ffmpeg -i ~/Videos/screencast-${date}.mp4 -vf palettegen -f image2 -c:v png - |
|
|
||||||
ffmpeg -i ~/Videos/screencast-${date}.mp4 -i - -filter_complex paletteuse ~/Pictures/screencast-${date}.gif && notify-send "Gif recorded to ~/Pictures/screencast-${date}"
|
|
Loading…
Reference in New Issue
Block a user