diff options
author | lassulus <lassulus@lassul.us> | 2017-12-05 18:46:48 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-12-05 18:46:48 +0100 |
commit | 8030352c450432a0cee14f561241831875f8399b (patch) | |
tree | 832fc539497da14ec7d90e1540cb8093ca63cfbd /lass/5pkgs/default.nix | |
parent | 18fad9c618be468d3a8e902ee2e23143e598163c (diff) | |
parent | 704096c93e91f0b71d257028401b52d6da03c073 (diff) |
Merge branch 'prism/master' into HEAD
Diffstat (limited to 'lass/5pkgs/default.nix')
-rw-r--r-- | lass/5pkgs/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lass/5pkgs/default.nix b/lass/5pkgs/default.nix index e0775f076..5b668c88f 100644 --- a/lass/5pkgs/default.nix +++ b/lass/5pkgs/default.nix @@ -21,6 +21,9 @@ xmonad-lass = import ./xmonad-lass.nix { inherit config pkgs; }; yt-next = pkgs.callPackage ./yt-next/default.nix {}; - screengrab = pkgs.writeDashBin "screengrab" "${pkgs.ffmpeg}/bin/ffmpeg -f x11grab -r 25 -s 1024x768 -i :0.0 -c:v huffyuv $1"; + 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 + ''; }; } |