Skip to content

Commit

Permalink
Switch keyboard layout to neo
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Jun 21, 2024
1 parent e046b57 commit 2f6e9da
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
23 changes: 17 additions & 6 deletions home/programs/polybar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ in
cpu = mkEnableOption "CPU monitor" // { default = true; };
date = mkEnableOption "Date monitor" // { default = true; };
disk = mkEnableOption "Disk monitor" // { default = true; };
keyboard = mkEnableOption "Keyboard layout monitor" // { default = true; };
memory = mkEnableOption "Memory monitor" // { default = true; };
temperature = mkEnableOption "Temperature monitor" // { default = true; };
volume = mkEnableOption "Volume monitor" // { default = true; };
Expand Down Expand Up @@ -169,6 +170,7 @@ in
(if weather then [ "wtr" ] else [ ]) ++
(if volume then [ "vol" ] else [ ]) ++
(if battery then [ "bat" ] else [ ]) ++
(if keyboard then [ "kbd" ] else [ ]) ++
(if date then [ "date" ] else [ ]) ++
[ "tray" ]
);
Expand Down Expand Up @@ -290,6 +292,17 @@ in
label-warn-foreground = "\${colors.alert}";
};

"module/wtr" = {
type = "custom/script";
exec = "${getExe pkgs.bash} ${config.xdg.configFile."polybar/weather-plugin.sh".target}";
tail = false;
interval = 600;

# Format
format-prefix = "WTR ";
format-prefix-foreground = "\${colors.primary}";
};

"module/vol" = {
type = "internal/pulseaudio";

Expand Down Expand Up @@ -364,14 +377,12 @@ in
ramp-capacity-4 = " ";
};

"module/wtr" = {
type = "custom/script";
exec = "${getExe pkgs.bash} ${config.xdg.configFile."polybar/weather-plugin.sh".target}";
tail = false;
interval = 600;
"module/kbd" = {
type = "internal/xkeyboard";
label-layout = "%variant%";

# Format
format-prefix = "WTR ";
format-prefix = "LAY ";
format-prefix-foreground = "\${colors.primary}";
};

Expand Down
3 changes: 0 additions & 3 deletions home/users/christian/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ in
fonts.enable = !config.custom.roles.mobile.enable;
git.enable = true;
gpg.enable = true;
hardware = mkIf pkgs.stdenv.isLinux {
kmonad.enable = !config.custom.roles.mobile.enable;
};
mobile.enable = config.custom.roles.mobile.enable;
office.cli.enable = config.custom.roles.office.cli.enable;
shell.enable = true;
Expand Down
16 changes: 4 additions & 12 deletions nixos/base/input/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,12 @@ in

{
services = {
xserver = {
layout = "ch";
xserver.xkb = {
layout = "de,de";
variant = "neo_qwertz,bone";
options = "grp:rctrl_toggle";
};

udev.extraRules = ''
KERNEL=="event*", SUBSYSTEM=="input", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput"
KERNEL=="uinput", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput"
'';
};

console.useXkbConfig = true;

users.groups = {
input.members = baseCfg.users;
uinput.members = baseCfg.users;
};
}

0 comments on commit 2f6e9da

Please sign in to comment.