-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lomiri.lomiri: Try to consider services.xserver.xkb.layout
Propagate the configuration setting through an envvar, check the envvar in the compositor. Needed because querying AccountsSettings for this information fails, due to Ubuntu-only "InputSources" interface. So you're stuck on US layout without this hack.
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
pkgs/desktops/lomiri/applications/lomiri/9902-lomiri-Check-NIXOS_XKB_LAYOUTS.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 640cab41986fac83742af39dd19877041a2ab8dc Mon Sep 17 00:00:00 2001 | ||
From: OPNA2608 <[email protected]> | ||
Date: Sat, 1 Jun 2024 00:22:27 +0200 | ||
Subject: [PATCH] Check NIXOS_XKB_LAYOUTS for layouts before falling back to | ||
"us" | ||
|
||
--- | ||
plugins/AccountsService/AccountsService.cpp | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
diff --git a/plugins/AccountsService/AccountsService.cpp b/plugins/AccountsService/AccountsService.cpp | ||
index bcf18246c..f4a7dfaa1 100644 | ||
--- a/plugins/AccountsService/AccountsService.cpp | ||
+++ b/plugins/AccountsService/AccountsService.cpp | ||
@@ -295,6 +295,11 @@ QStringList AccountsService::keymaps() const | ||
return simplifiedMaps; | ||
} | ||
|
||
+ char* fallbackNixosLayouts = getenv("NIXOS_XKB_LAYOUTS"); | ||
+ if (fallbackNixosLayouts != NULL && fallbackNixosLayouts[0] != '\0') { | ||
+ return QString(fallbackNixosLayouts).split(QLatin1Char(','), Qt::SkipEmptyParts); | ||
+ } | ||
+ | ||
return {QStringLiteral("us")}; | ||
} | ||
|
||
-- | ||
2.42.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters