nixos-config/ahrc-laptop/home.nix

59 lines
1.6 KiB
Nix
Raw Normal View History

2024-10-15 09:45:54 +02:00
{ config, ... }:
2024-10-10 21:15:27 +02:00
{
2024-09-30 14:40:45 +02:00
imports = [ ../common/home.nix ];
home.stateVersion = "24.05";
programs.zsh = {
localVariables = {
PROMPT = ''
(%F{green}%B%n@%m%f%b)(%F{blue}%B%50<...<%5~%<<%b%f)(%B%?%b)
(%B%j%b%# '';
};
};
2024-10-15 09:51:07 +02:00
programs.niri.settings = {
input = {
keyboard.xkb.layout = "fr";
touchpad = {
tap = true;
natural-scroll = true;
accel-profile = "flat";
};
};
outputs."eDP-1".scale = 1;
layout.border.active.color = "#35f835e5";
binds = with config.lib.niri.actions; {
"Alt+TouchpadScrollDown".action = spawn "brightnessctl" "set" "10-";
"Alt+TouchpadScrollUp".action = spawn "brightnessctl" "set" "+10";
"XF86Display".action = power-off-monitors;
"Mod+ampersand".action = focus-workspace 1;
"Mod+eacute".action = focus-workspace 2;
"Mod+quotedbl".action = focus-workspace 3;
"Mod+apostrophe".action = focus-workspace 4;
"Mod+Shift+ampersand".action = move-column-to-workspace 1;
"Mod+Shift+eacute".action = move-column-to-workspace 2;
"Mod+Shift+quotedbl".action = move-column-to-workspace 3;
"Mod+Shift+apostrophe".action = move-column-to-workspace 4;
2024-10-12 14:47:10 +02:00
};
2024-11-19 13:55:47 +01:00
spawn-at-startup = [
{
command = [
"swaybg"
"-i"
"/home/ahurac/.local/share/backgrounds/default.png"
"-m"
"fill"
];
}
{ command = [ "eww" "open" "dock_ahrc-laptop" ]; }
];
2024-10-23 20:14:52 +02:00
};
2024-11-05 16:20:13 +01:00
home.file.".local/share/backgrounds/default.png" = {
enable = true;
source = ./background.png;
};
}