diff options
Diffstat (limited to '.config/paru/pkg_config/slock/patches/0004-Make-sure-the-keyboard-layout-is-US-english.diff')
-rw-r--r-- | .config/paru/pkg_config/slock/patches/0004-Make-sure-the-keyboard-layout-is-US-english.diff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/paru/pkg_config/slock/patches/0004-Make-sure-the-keyboard-layout-is-US-english.diff b/.config/paru/pkg_config/slock/patches/0004-Make-sure-the-keyboard-layout-is-US-english.diff new file mode 100644 index 0000000..79aa853 --- /dev/null +++ b/.config/paru/pkg_config/slock/patches/0004-Make-sure-the-keyboard-layout-is-US-english.diff @@ -0,0 +1,26 @@ +From 1137ec75223d7456a31b101a911b7f6eddb8e083 Mon Sep 17 00:00:00 2001 +From: A Farzat <a@farzat.xyz> +Date: Fri, 6 Jan 2023 08:37:13 +0900 +Subject: [PATCH 4/5] Make sure the keyboard layout is US english + +--- + slock.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/slock.c b/slock.c +index cbbbd29..63c946c 100644 +--- a/slock.c ++++ b/slock.c +@@ -445,6 +445,9 @@ main(int argc, char **argv) { + if (!(dpy = XOpenDisplay(NULL))) + die("slock: cannot open display\n"); + ++ /* switch the keyboard layout to US */ ++ system("xkb-switch -s us"); ++ + /* drop privileges */ + if (setgroups(0, NULL) < 0) + die("slock: setgroups: %s\n", strerror(errno)); +-- +2.43.0 + |