From 5c15c5a9e36cb1400cbe2a4fa6649f0916899254 Mon Sep 17 00:00:00 2001 From: David Todd Date: Wed, 31 Jul 2019 12:39:47 -0500 Subject: [PATCH] Add ffcast for screen recording --- .bin/install.arch | 2 +- i3/config | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.bin/install.arch b/.bin/install.arch index 5124b46..0d8c6c1 100755 --- a/.bin/install.arch +++ b/.bin/install.arch @@ -10,6 +10,6 @@ yay -Syu yay -S tmux zsh vim git\ terminator rofi feh xcompmgr\ - i3lock-fancy i3blocks + i3lock-fancy i3blocks ffcast } diff --git a/i3/config b/i3/config index b9c76b8..b494a12 100644 --- a/i3/config +++ b/i3/config @@ -48,7 +48,7 @@ exec --no-startup-id $i3_path/wallpaper.sh& ## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ## ################################################################################################ -exec --no-startup-id volumeicon +#exec --no-startup-id volumeicon bindsym $mod+Ctrl+m exec terminal -e 'alsamixer' #exec --no-startup-id pulseaudio #exec --no-startup-id pa-applet @@ -74,6 +74,10 @@ bindsym $mod+Insert exec --no-startup-id ~/.i3/screenshotter.sh #i3-scrot -w ' bindsym $mod+Shift+Insert --release exec --no-startup-id maim ~/Pictures/$(date +%Y-%m-%d).png #i3-scrot -d '%Y-%m-%d_$wx$h.png' # Fullscreen bindsym $mod+Ctrl+Insert exec --no-startup-id maim -s ~/Pictures/$(date +%Y-%m-%d).png&& pinta ~/Pictures/$(date +%Y-%m-%d-%s).png # screenshot and edit +# Screen recording +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.*' + # change focus bindsym $mod+j focus left bindsym $mod+k focus down