summary refs log tree commit diff
path: root/pkgs/tools/X11
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2023-07-17 13:47:22 +0200
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-07-17 17:22:42 -0300
commit5136088b472fb723588f62df6f59467d36b0e2c2 (patch)
tree95f242d2ac898c46303e26b99a5d014ab596132d /pkgs/tools/X11
parent9f6bb855c25bc32ad09a92ba30acd8230f98d27e (diff)
downloadnixpkgs-5136088b472fb723588f62df6f59467d36b0e2c2.tar
nixpkgs-5136088b472fb723588f62df6f59467d36b0e2c2.tar.gz
nixpkgs-5136088b472fb723588f62df6f59467d36b0e2c2.tar.bz2
nixpkgs-5136088b472fb723588f62df6f59467d36b0e2c2.tar.lz
nixpkgs-5136088b472fb723588f62df6f59467d36b0e2c2.tar.xz
nixpkgs-5136088b472fb723588f62df6f59467d36b0e2c2.tar.zst
nixpkgs-5136088b472fb723588f62df6f59467d36b0e2c2.zip
sxhkd: apply patch for multiple layouts
The recent upgrade past xkeyboardconfig 2.37 causes an issue where sxhkd
will get confused if multiple keyboard layouts are used: https://github.com/baskerville/sxhkd/issues/289
Diffstat (limited to 'pkgs/tools/X11')
-rw-r--r--pkgs/tools/X11/sxhkd/default.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/tools/X11/sxhkd/default.nix b/pkgs/tools/X11/sxhkd/default.nix
index 50e82643ac2..ab15c38168e 100644
--- a/pkgs/tools/X11/sxhkd/default.nix
+++ b/pkgs/tools/X11/sxhkd/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, fetchpatch
 , asciidoc
 , libxcb
 , xcbutil
@@ -19,6 +20,15 @@ stdenv.mkDerivation (finalAttrs: {
     hash = "sha256-OelMqenk0tiWMLraekS/ggGf6IsXP7Sz7bv75NvnNvI=";
   };
 
+  patches = [
+    (fetchpatch {
+      # Fixes an issue with overlapping chords when using multiple keyboard layouts.
+      name = "sxhkd-mod5.patch";
+      url = "https://github.com/baskerville/sxhkd/pull/307/commits/35e64f1d7b54c97ccc02e84e278012dae9bc3941.patch";
+      hash = "sha256-bvXWEEITbHC/h0nXQx99SXjvkI/KO36XXNSa1O8KSY0=";
+    })
+  ];
+
   nativeBuildInputs = [
     asciidoc
   ];
@@ -36,7 +46,7 @@ stdenv.mkDerivation (finalAttrs: {
     description = "Simple X hotkey daemon";
     homepage = "https://github.com/baskerville/sxhkd";
     license = licenses.bsd2;
-    maintainers = with maintainers; [ vyp AndersonTorres ];
+    maintainers = with maintainers; [ vyp AndersonTorres ncfavier ];
     platforms = platforms.linux;
   };
 })