Compare commits

..

4 commits

Author SHA1 Message Date
41df33c7ae feat(niri): more config 2024-10-14 19:27:04 +02:00
0e485fee7d (home packages): add jq 2024-10-14 15:47:35 +02:00
61f80ea62f (niri config): delete comment 2024-10-14 15:47:18 +02:00
23f23dbd2b feat: add polkit auth agent 2024-10-14 15:04:55 +02:00
2 changed files with 47 additions and 8 deletions

View file

@ -48,8 +48,12 @@
package = pkgs.niri;
settings = {
input = {
keyboard.xkb.layout = "fr";
keyboard.xkb.options = "compose:rctrl";
keyboard = {
xkb.layout = "fr";
xkb.options = "compose:rctrl";
repeat-delay = 300;
repeat-rate = 100;
};
touchpad = {
tap = true;
natural-scroll = true;
@ -57,23 +61,30 @@
};
mouse.accel-profile = "flat";
warp-mouse-to-focus = true;
focus-follows-mouse.max-scroll-amount = "0%";
focus-follows-mouse.enable = true;
};
outputs."eDP-1" = { scale = 1; };
layout = {
gaps = 10;
default-column-width.proportion = 0.5;
preset-window-heights = [{ proportion = 1.0 / 2.0; }];
focus-ring = {
width = 4;
active.color = "#35f835e5";
inactive.color = "#80808080";
};
};
workspaces = {
w1 = { name = "admin"; };
w2 = { name = "everything"; };
w3 = { name = "apps"; };
};
window-rules = [{
matches = [{ app-id = "im.riot.Riot"; }];
open-on-workspace = "apps";
}];
prefer-no-csd = true;
screenshot-path = "~/screenshots/%Y%m%d%H%m%N.png";
# window-rules = [{
# geometry-corner-radius = 10;
# clip-to-geometry = true;
# }];
binds = with config.lib.niri.actions; {
"Mod+Space".action = spawn "alacritty";
"Mod+F1".action = spawn "anyrun";
@ -90,6 +101,14 @@
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";
};
"Mod+Shift+Q".action = close-window;
"Mod+A".action = focus-column-left;
"Mod+Z".action = focus-window-or-workspace-up;
@ -126,7 +145,9 @@
"Print".action = screenshot-screen;
"Shift+Print".action = screenshot;
"Alt+Print".action = screenshot-window;
"Mod+Shift+Backspace".action = quit;
"Mod+Shift+Backspace" = {
action = quit { skip-confirmation = true; };
};
"XF86Display".action = power-off-monitors;
};
};

View file

@ -7,6 +7,7 @@
home.stateVersion = "24.05";
home.packages = with pkgs; [
jq
nil
pavucontrol
thunderbird
@ -469,4 +470,21 @@
defaultTimeout = 4000;
font = "Noto Sans";
};
systemd.user.services.polkit-gnome-authentication-agent-1 = {
Unit = {
Description = "polkit-gnome-authentication-agent-1";
Wants = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart =
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
}