nixos-config/ahrc-laptop/home.nix

61 lines
1.9 KiB
Nix

{ config, ... }:
{
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%# '';
};
};
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; {
"XF86AudioRaiseVolume" = {
allow-when-locked = true;
action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+";
};
"XF86AudioLowerVolume" = {
allow-when-locked = true;
action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-";
};
"XF86AudioMute" = {
allow-when-locked = true;
action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle";
};
"XF86MonBrightnessDown" = {
allow-when-locked = true;
action = spawn "brightnessctl" "set" "10-";
};
"XF86MonBrightnessUp" = {
allow-when-locked = true;
action = spawn "brightnessctl" "set" "+10";
};
"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;
};
};
}