mirror of
https://github.com/kmein/niveum
synced 2026-03-22 12:51:08 +01:00
niri: simplify keyboard setup
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
niri-config-with = settings: (pkgs.niphas-niri.passthru.configuration.apply settings).wrapper;
|
||||
niri-config-with = settings: pkgs.niphas-niri.passthru.configuration.apply settings;
|
||||
|
||||
commaSep = builtins.concatStringsSep ",";
|
||||
xkbOptions = [
|
||||
@@ -119,12 +119,14 @@ in
|
||||
elif [ -n "$NIRI_SOCKET" ]; then
|
||||
${lib.getExe pkgs.niphas-niri} msg action load-config-file --path ${
|
||||
(niri-config-with {
|
||||
settings.input.keyboard.xkb = {
|
||||
layout = "${defaultLanguage.code},${code}";
|
||||
variant = "${defaultLanguage.variant},${variant}";
|
||||
options = commaSep xkbOptions;
|
||||
settings.input = lib.recursiveUpdate pkgs.niphas-niri.configuration.settings.input {
|
||||
keyboard.xkb = {
|
||||
layout = "${defaultLanguage.code},${code}";
|
||||
variant = "${defaultLanguage.variant},${variant}";
|
||||
options = commaSep xkbOptions;
|
||||
};
|
||||
};
|
||||
}).passthru.configuration."config.kdl".path
|
||||
})."config.kdl".path
|
||||
}
|
||||
elif [ -n "$HYPRLAND_INSTANCE_SIGNATURE" ]; then
|
||||
hyprctl keyword input:kb_variant "" # otherwise we end up with an invalid combination for a short while
|
||||
|
||||
16
flake.lock
generated
16
flake.lock
generated
@@ -489,7 +489,6 @@
|
||||
},
|
||||
"niphas": {
|
||||
"inputs": {
|
||||
"niri": "niri",
|
||||
"nixpkgs": [
|
||||
"nixpkgs-unstable"
|
||||
],
|
||||
@@ -497,11 +496,11 @@
|
||||
"wrappers": "wrappers"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1774116133,
|
||||
"narHash": "sha256-lR6IPtSbw/+xME7TMCHXziis8Lxy6AAkRhRpDuVI33E=",
|
||||
"lastModified": 1774129923,
|
||||
"narHash": "sha256-JQlqnMzQb8YxyVFAjRE5Ftcyo45X9xnUbuI1lfRa5GQ=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "7dd94c7b96b9f8289e0decdf8d2f75f7b652ef3e",
|
||||
"revCount": 53,
|
||||
"rev": "e1d45bcf0b2783528d8276a6cd9452bcf410b803",
|
||||
"revCount": 56,
|
||||
"type": "git",
|
||||
"url": "https://code.kmein.de/kfm/niphas"
|
||||
},
|
||||
@@ -513,7 +512,6 @@
|
||||
"niri": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"niphas",
|
||||
"nixpkgs"
|
||||
],
|
||||
"rust-overlay": "rust-overlay"
|
||||
@@ -799,10 +797,7 @@
|
||||
"meteora": "meteora",
|
||||
"naersk": "naersk",
|
||||
"niphas": "niphas",
|
||||
"niri": [
|
||||
"niphas",
|
||||
"niri"
|
||||
],
|
||||
"niri": "niri",
|
||||
"nix-index-database": "nix-index-database",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
@@ -843,7 +838,6 @@
|
||||
"rust-overlay": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"niphas",
|
||||
"niri",
|
||||
"nixpkgs"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user