diff --git a/pkgs/tools/X11/wmctrl/default.nix b/pkgs/tools/X11/wmctrl/default.nix new file mode 100644 index 000000000000..901eab0d1a64 --- /dev/null +++ b/pkgs/tools/X11/wmctrl/default.nix @@ -0,0 +1,20 @@ +{stdenv, fetchurl, libX11, glib, pkgconfig, libXmu }: + +stdenv.mkDerivation rec { + + name = "wmctrl-1.07"; + + src = fetchurl { + url = "http://tomas.styblo.name/wmctrl/dist/${name}.tar.gz"; + sha256 = "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"; + }; + + buildInputs = [ libX11 libXmu glib pkgconfig ]; + + meta = { + homepage = http://tomas.styblo.name/wmctrl/; + description = "wmctrl is a UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager"; + license = "GPL"; + platforms = with stdenv.lib.platforms; all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 760a84c48a29..5a1f97a6953f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8648,6 +8648,8 @@ let wmname = callPackage ../applications/misc/wmname { }; + wmctrl = callPackage ../tools/X11/wmctrl { }; + # I'm keen on wmiimenu only >wmii-3.5 no longer has it... wmiimenu = import ../applications/window-managers/wmii31 { libixp = libixp_for_wmii;