blob: 79aa8535defa76e8c787244a25e98fbbfcbee5de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|