From e1f62561c5fbd96340e50bc9cfe930ff9479d0e7 Mon Sep 17 00:00:00 2001 From: shibao Date: Mon, 29 Nov 2021 13:00:19 -0500 Subject: [PATCH] add screen recorder script --- home/default/.config/sway/config | 3 +++ home/default/scripts/record-screen | 6 ++++++ readme.md | 2 ++ 3 files changed, 11 insertions(+) create mode 100755 home/default/scripts/record-screen diff --git a/home/default/.config/sway/config b/home/default/.config/sway/config index 447244b..25445eb 100644 --- a/home/default/.config/sway/config +++ b/home/default/.config/sway/config @@ -217,6 +217,9 @@ bindsym XF86Search exec $menu # screenshot bindsym Ctrl+Shift+p exec ~/scripts/screenshot +# record screen +bindsym Ctrl+Alt+p exec ~/scripts/record-screen + ### gaps gaps inner 25 # smart_gaps on diff --git a/home/default/scripts/record-screen b/home/default/scripts/record-screen new file mode 100755 index 0000000..16fa2d0 --- /dev/null +++ b/home/default/scripts/record-screen @@ -0,0 +1,6 @@ +#!/bin/sh + +# Take a screenshot +dir=~/Downloads/temp +(cd $dir && wf-recorder -g "$(slurp)") +xdg-open $dir diff --git a/readme.md b/readme.md index 3d68dff..76526c2 100644 --- a/readme.md +++ b/readme.md @@ -38,6 +38,8 @@ please let me know if i've forgotten one! - papirus-dark (icon theme) - fctix (intl. keyboard input) - grim (screenshots on wayland) +- wf-recorder (screen recorder on wayland) +- slurp (to select region in wayland) - neovim (editor) - direnv (per-directory environment variables) - asdf (language agnostic dependency management)