chore: found a better 'nix' way to create conf file
This commit is contained in:
parent
98f0144732
commit
0e3faccc53
1 changed files with 15 additions and 12 deletions
|
@ -1,6 +1,7 @@
|
||||||
{pkgs, ... }:
|
{pkgs, ... }:
|
||||||
{
|
let
|
||||||
home.file.".xkb/symbols/gpdwinmax".text = ''
|
kbd_file = pkgs.writeText "gpdwinmax.kbd"
|
||||||
|
''
|
||||||
default partial alphanumeric_keys
|
default partial alphanumeric_keys
|
||||||
xkb_symbols "us-intl-winmax" {
|
xkb_symbols "us-intl-winmax" {
|
||||||
name[group1] = "GPD Win Max us-inlt";
|
name[group1] = "GPD Win Max us-inlt";
|
||||||
|
@ -10,10 +11,12 @@ xkb_symbols "us-intl-winmax" {
|
||||||
# include "level3(ralt_switch)"
|
# include "level3(ralt_switch)"
|
||||||
};
|
};
|
||||||
'';
|
'';
|
||||||
|
in
|
||||||
|
{
|
||||||
|
wayland.windowManager.sway.checkConfig = false;
|
||||||
wayland.windowManager.sway.config.input = {
|
wayland.windowManager.sway.config.input = {
|
||||||
"1:1:AT_Translated_Set_2_keyboard" = {
|
"1:1:AT_Translated_Set_2_keyboard" = {
|
||||||
xkb_layout = "gpdwinmax";
|
xkb_layout = "${kbd_file}";
|
||||||
};
|
};
|
||||||
"1046:928:Goodix_Capacitive_TouchScreen" = {
|
"1046:928:Goodix_Capacitive_TouchScreen" = {
|
||||||
map_to_output = "eDP-1";
|
map_to_output = "eDP-1";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue