From 1137ec75223d7456a31b101a911b7f6eddb8e083 Mon Sep 17 00:00:00 2001 From: A Farzat 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