1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/wlr-randr/default.nix
Maximilian Bosch 4291d178be
wlr-randr: init at unstable-2019-03-21
This is a simple clone of `xrandr` for wayland and is recommended by
sway's wiki[1] as replacement for `xrandr`.

Although the package is not stable yet, it's written by some sway
developers and appears to work pretty well.

When adding an additional monitor to your laptop (with the laptop being
"below" the monitor), this can be configured like this:

```
wlr-randr --output eDP-1 --on --pos 0,1080 --output HDMI-A-1 --on --pos 0,0
```

[1] https://github.com/swaywm/sway/wiki/i3-Migration-Guide#common-xorg-apps-used-on-i3-with-wayland-alternatives
2019-09-18 13:38:06 +02:00

24 lines
664 B
Nix

{ stdenv, fetchFromGitHub, meson, ninja, cmake, pkgconfig, wayland }:
stdenv.mkDerivation rec {
pname = "wlr-randr";
version = "unstable-2019-03-21";
src = fetchFromGitHub {
owner = "emersion";
repo = pname;
rev = "c4066aa3249963dc7877119cffce10f3fa8b6304";
sha256 = "1ahw4sv07xg5rh9vr7j28636iaxs06vnybm3li6y8dz2sky7hk88";
};
nativeBuildInputs = [ meson ninja cmake pkgconfig ];
buildInputs = [ wayland ];
meta = with stdenv.lib; {
license = licenses.mit;
description = "An xrandr clone for wlroots compositors";
homepage = "https://github.com/emersion/wlr-randr";
maintainers = with maintainers; [ ma27 ];
};
}