Skip to content

Commit

Permalink
sxhkd: apply patch for multiple layouts
Browse files Browse the repository at this point in the history
The recent upgrade past xkeyboardconfig 2.37 causes an issue where sxhkd
will get confused if multiple keyboard layouts are used: baskerville/sxhkd#289
  • Loading branch information
ncfavier authored and AndersonTorres committed Jul 17, 2023
1 parent 9f6bb85 commit 5136088
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/tools/X11/sxhkd/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, asciidoc
, libxcb
, xcbutil
Expand All @@ -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
];
Expand All @@ -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;
};
})

0 comments on commit 5136088

Please sign in to comment.