From 5885d9e3496e87eb70b4dd39bfd0d44886c161bd Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 22 Aug 2024 20:53:39 +0300 Subject: [PATCH] Sway : Specify pixfmt for recording. --- home/config/sway/module/Screenshot.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/config/sway/module/Screenshot.nix b/home/config/sway/module/Screenshot.nix index ad428d48..4d167a65 100644 --- a/home/config/sway/module/Screenshot.nix +++ b/home/config/sway/module/Screenshot.nix @@ -6,6 +6,7 @@ framerate = 10; opacity = "26"; selection = "slurp -d -b ${color.bg.light}${opacity} -c ${color.fg.light} -w 0 -s 00000000"; + pixfmt = "yuv420p10le"; in { text = '' # Fullscreen screenshot. @@ -15,6 +16,6 @@ in { bindsym --to-code $mod+v exec grim -g "$(${selection})" - | tee "''${XDG_PICTURES_DIR[0]}/$(date +${format}).png" | wl-copy # Select recording. - bindsym --to-code $mod+shift+v exec 'pkill -SIGINT wf-recorder || wf-recorder --geometry "$(${selection})" --codec ${codec} --file "''${XDG_VIDEOS_DIR[0]}/$(date +${format}).${container}" --framerate ${toString framerate}' + bindsym --to-code $mod+shift+v exec 'pkill -SIGINT wf-recorder || wf-recorder --geometry "$(${selection})" --codec ${codec} --file "''${XDG_VIDEOS_DIR[0]}/$(date +${format}).${container}" --framerate ${toString framerate} --pixel-format ${pixfmt}' ''; }