Sway: Use desired pixfmt for partial recording.

This commit is contained in:
Dmitry Voronin 2024-12-24 06:25:01 +03:00
parent c7c2705627
commit 0cbcfdb5b0
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -42,7 +42,6 @@ let
updateWaybar = ''{ pkill -RTMIN+4 waybar; } & disown''; # NOTE: Might need to add a delay here if it becomes inconsistent one day. updateWaybar = ''{ pkill -RTMIN+4 waybar; } & disown''; # NOTE: Might need to add a delay here if it becomes inconsistent one day.
vidPrepFile = prepFile "\${XDG_VIDEOS_DIR[0]}" container; vidPrepFile = prepFile "\${XDG_VIDEOS_DIR[0]}" container;
vidRefLatestFile = refLatestFile container; vidRefLatestFile = refLatestFile container;
vidSelected = '''';
vidStop = ''pkill -SIGINT wf-recorder''; vidStop = ''pkill -SIGINT wf-recorder'';
prepFile = path: ext: '' prepFile = path: ext: ''
@ -103,6 +102,7 @@ let
--no-damage \ --no-damage \
--framerate ${toString framerate} \ --framerate ${toString framerate} \
--file "''${scrFile}" \ --file "''${scrFile}" \
--pixel-format "${pixfmt}" \
--geometry "''${scrSelection}" --geometry "''${scrSelection}"
''; '';