Screenshot : Fix rec scripts wrong usage of pipe.

This commit is contained in:
Dmitry Voronin 2024-09-14 07:17:24 +03:00
parent 972513ad66
commit 9d33afd84f
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -43,7 +43,7 @@ in {
[[ "''${scrTransform}" = "normal" ]] && scrTransform="" [[ "''${scrTransform}" = "normal" ]] && scrTransform=""
pkill -RTMIN+4 waybar \ pkill -RTMIN+4 waybar \
| wf-recorder \ & wf-recorder \
--geometry "''${scrSelection}" \ --geometry "''${scrSelection}" \
--codec ${codec} \ --codec ${codec} \
--file "''${scrFile}" \ --file "''${scrFile}" \
@ -81,7 +81,7 @@ in {
[[ "''${scrTransform}" = "normal" ]] && scrTransform="" [[ "''${scrTransform}" = "normal" ]] && scrTransform=""
pkill -RTMIN+4 waybar \ pkill -RTMIN+4 waybar \
| wf-recorder \ & wf-recorder \
-o $(swaymsg -t get_outputs | jq -r ".[] | select(.focused) | .name") - \ -o $(swaymsg -t get_outputs | jq -r ".[] | select(.focused) | .name") - \
--codec ${codec} \ --codec ${codec} \
--file "''${scrFile}" \ --file "''${scrFile}" \