From ca09b930c6fce303ae9db7c322819c73d83b2cbe Mon Sep 17 00:00:00 2001 From: David Todd Date: Mon, 11 Jan 2021 16:53:14 -0600 Subject: [PATCH] remove screen recording --- .config/i3/conf.d/keybinds.conf | 5 ----- bin/screencast2gif.sh | 12 ------------ 2 files changed, 17 deletions(-) delete mode 100755 bin/screencast2gif.sh diff --git a/.config/i3/conf.d/keybinds.conf b/.config/i3/conf.d/keybinds.conf index 1e7d288..0465846 100644 --- a/.config/i3/conf.d/keybinds.conf +++ b/.config/i3/conf.d/keybinds.conf @@ -43,9 +43,4 @@ bindsym $mod+Shift+Insert --release exec --no-startup-id maim ~/Pictures/$(date # 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 -# 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 diff --git a/bin/screencast2gif.sh b/bin/screencast2gif.sh deleted file mode 100755 index ac438f1..0000000 --- a/bin/screencast2gif.sh +++ /dev/null @@ -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}"