summary refs log tree commit diff
path: root/pkgs/applications/window-managers/i3
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2018-06-22 16:44:53 +0900
committerMatthieu Coudron <mattator@gmail.com>2018-06-22 16:44:53 +0900
commit6664babe85ecd888af441350b798778d725ff1d6 (patch)
tree8d343d07c2f20f03d7b810d27bab9435411d1fc3 /pkgs/applications/window-managers/i3
parentd395b185d92776878d1c23fbeaddfc72f948c647 (diff)
downloadnixlib-6664babe85ecd888af441350b798778d725ff1d6.tar
nixlib-6664babe85ecd888af441350b798778d725ff1d6.tar.gz
nixlib-6664babe85ecd888af441350b798778d725ff1d6.tar.bz2
nixlib-6664babe85ecd888af441350b798778d725ff1d6.tar.lz
nixlib-6664babe85ecd888af441350b798778d725ff1d6.tar.xz
nixlib-6664babe85ecd888af441350b798778d725ff1d6.tar.zst
nixlib-6664babe85ecd888af441350b798778d725ff1d6.zip
i3-easyfocus: init at 20180622
Fast window switcher.
Attributes and display one letter per window on your current workspace, upon keypress,
will focus the matching window.
Diffstat (limited to 'pkgs/applications/window-managers/i3')
-rw-r--r--pkgs/applications/window-managers/i3/easyfocus.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/i3/easyfocus.nix b/pkgs/applications/window-managers/i3/easyfocus.nix
new file mode 100644
index 000000000000..337ecdd651ff
--- /dev/null
+++ b/pkgs/applications/window-managers/i3/easyfocus.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, pkgconfig, xproto, libxcb, xcbutilkeysyms
+, xlibs , i3ipc-glib , glib
+}:
+
+stdenv.mkDerivation rec {
+  name = "i3easyfocus-${version}";
+  version = "20180622";
+
+  src = fetchFromGitHub {
+    owner = "cornerman";
+    repo = "i3-easyfocus";
+    rev = "3631d5af612d58c3d027f59c86b185590bd78ae1";
+    sha256 = "1wgknmmm7iz0wxsdh29gmx4arizva9101pzhnmac30bmixf3nzhr";
+  };
+
+  nativeBuildInputs = [ pkgconfig ];
+  buildInputs = [ libxcb xcbutilkeysyms xproto xlibs.libX11.dev i3ipc-glib glib.dev ];
+
+  # Makefile has no rule for 'install'
+  installPhase = ''
+    mkdir -p $out/bin
+    cp i3-easyfocus $out/bin
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Focus and select windows in i3";
+    homepage = https://github.com/cornerman/i3-easyfocus;
+    maintainers = with maintainers; [teto];
+    license = licenses.gpl3;
+    platforms = platforms.linux;
+  };
+}