Compare commits
No commits in common. "41df33c7aeda383ae16f5e2ab2993ce17836f78b" and "e32ad10feac01668ed524247abb09545f4d42edf" have entirely different histories.
41df33c7ae
...
e32ad10fea
2 changed files with 8 additions and 47 deletions
|
@ -48,12 +48,8 @@
|
||||||
package = pkgs.niri;
|
package = pkgs.niri;
|
||||||
settings = {
|
settings = {
|
||||||
input = {
|
input = {
|
||||||
keyboard = {
|
keyboard.xkb.layout = "fr";
|
||||||
xkb.layout = "fr";
|
keyboard.xkb.options = "compose:rctrl";
|
||||||
xkb.options = "compose:rctrl";
|
|
||||||
repeat-delay = 300;
|
|
||||||
repeat-rate = 100;
|
|
||||||
};
|
|
||||||
touchpad = {
|
touchpad = {
|
||||||
tap = true;
|
tap = true;
|
||||||
natural-scroll = true;
|
natural-scroll = true;
|
||||||
|
@ -61,30 +57,23 @@
|
||||||
};
|
};
|
||||||
mouse.accel-profile = "flat";
|
mouse.accel-profile = "flat";
|
||||||
warp-mouse-to-focus = true;
|
warp-mouse-to-focus = true;
|
||||||
focus-follows-mouse.enable = true;
|
focus-follows-mouse.max-scroll-amount = "0%";
|
||||||
};
|
};
|
||||||
outputs."eDP-1" = { scale = 1; };
|
outputs."eDP-1" = { scale = 1; };
|
||||||
layout = {
|
layout = {
|
||||||
gaps = 10;
|
gaps = 10;
|
||||||
default-column-width.proportion = 0.5;
|
|
||||||
preset-window-heights = [{ proportion = 1.0 / 2.0; }];
|
|
||||||
focus-ring = {
|
focus-ring = {
|
||||||
width = 4;
|
width = 4;
|
||||||
active.color = "#35f835e5";
|
active.color = "#35f835e5";
|
||||||
inactive.color = "#80808080";
|
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;
|
prefer-no-csd = true;
|
||||||
screenshot-path = "~/screenshots/%Y%m%d%H%m%N.png";
|
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; {
|
binds = with config.lib.niri.actions; {
|
||||||
"Mod+Space".action = spawn "alacritty";
|
"Mod+Space".action = spawn "alacritty";
|
||||||
"Mod+F1".action = spawn "anyrun";
|
"Mod+F1".action = spawn "anyrun";
|
||||||
|
@ -101,14 +90,6 @@
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle";
|
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+Shift+Q".action = close-window;
|
||||||
"Mod+A".action = focus-column-left;
|
"Mod+A".action = focus-column-left;
|
||||||
"Mod+Z".action = focus-window-or-workspace-up;
|
"Mod+Z".action = focus-window-or-workspace-up;
|
||||||
|
@ -145,9 +126,7 @@
|
||||||
"Print".action = screenshot-screen;
|
"Print".action = screenshot-screen;
|
||||||
"Shift+Print".action = screenshot;
|
"Shift+Print".action = screenshot;
|
||||||
"Alt+Print".action = screenshot-window;
|
"Alt+Print".action = screenshot-window;
|
||||||
"Mod+Shift+Backspace" = {
|
"Mod+Shift+Backspace".action = quit;
|
||||||
action = quit { skip-confirmation = true; };
|
|
||||||
};
|
|
||||||
"XF86Display".action = power-off-monitors;
|
"XF86Display".action = power-off-monitors;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
jq
|
|
||||||
nil
|
nil
|
||||||
pavucontrol
|
pavucontrol
|
||||||
thunderbird
|
thunderbird
|
||||||
|
@ -470,21 +469,4 @@
|
||||||
defaultTimeout = 4000;
|
defaultTimeout = 4000;
|
||||||
font = "Noto Sans";
|
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" ]; };
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue