diff options
author | lassulus <lassulus@lassul.us> | 2017-12-13 18:31:09 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-12-13 18:31:09 +0100 |
commit | 7764589e876325201add9e907284335aa2d2f318 (patch) | |
tree | 261091b55b5c52b97a476a3a1a6fec73de990760 /lass/5pkgs/default.nix | |
parent | 337ae5f4890dade45b58a180b72d61c861a788eb (diff) |
l screengrab: use display from config
Diffstat (limited to 'lass/5pkgs/default.nix')
-rw-r--r-- | lass/5pkgs/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lass/5pkgs/default.nix b/lass/5pkgs/default.nix index 5b668c88f..10df08e7f 100644 --- a/lass/5pkgs/default.nix +++ b/lass/5pkgs/default.nix @@ -23,7 +23,7 @@ screengrab = pkgs.writeDashBin "screengrab" '' resolution="$(${pkgs.xorg.xrandr}/bin/xrandr | ${pkgs.gnugrep}/bin/grep '*' | ${pkgs.gawk}/bin/awk '{print $1}')" - ${pkgs.ffmpeg}/bin/ffmpeg -f x11grab -r 25 -i :0.0 -s $resolution -c:v huffyuv $1 + ${pkgs.ffmpeg}/bin/ffmpeg -f x11grab -r 25 -i :${toString config.services.xserver.display} -s $resolution -c:v huffyuv $1 ''; }; } |