desktop/niri: switch polkit-gnome to soteria, update layout, keybinds

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-05-22 09:52:53 +03:00
parent 43334d6dbd
commit 14eaee2bbc
3 changed files with 38 additions and 21 deletions

View File

@ -161,14 +161,14 @@ in {
Service = Service =
mkDefault graphicalService.Service; mkDefault graphicalService.Service;
}; };
gnome-polkit-agent = mkGraphicalService { # gnome-polkit-agent = mkGraphicalService {
Service = # Service =
graphicalService.Service # graphicalService.Service
// { # // {
Type = "simple"; # Type = "simple";
ExecStart = pkgs.polkit_gnome + "/libexec/polkit-gnome-authentication-agent-1"; # ExecStart = pkgs.polkit_gnome + "/libexec/polkit-gnome-authentication-agent-1";
}; # };
}; # };
}; };
}; };
}; };

View File

@ -104,15 +104,11 @@ in {
keyboard { keyboard {
xkb { xkb {
layout "us,ua" layout "us,ua"
${ variant "colemak_dh_ortho,"
if (hostName == "dunamis" || hostName == "legion") }
then "// variant \"colemak_dh_ortho,\"" repeat-delay 200
else "variant \"colemak_dh_ortho,\"" repeat-rate 50
} track-layout "global"
}
repeat-delay 200
repeat-rate 50
track-layout "global"
} }
touchpad { touchpad {
// off // off
@ -174,6 +170,7 @@ in {
proportion 0.66667 proportion 0.66667
} }
background-color "transparent"
// default-column-width { proportion 0.9; } // default-column-width { proportion 0.9; }
default-column-width { proportion 0.5; } default-column-width { proportion 0.5; }
tab-indicator { tab-indicator {
@ -227,6 +224,20 @@ in {
} }
} }
// Make the wallpaper stationary, rather than moving with workspaces.
layer-rule {
// This is for swaybg; change for other wallpaper tools.
// Find the right namespace by running niri msg layers.
match namespace="^wallpaper$"
place-within-backdrop true
}
// Optionally, disable the workspace shadows in the overview.
overview {
workspace-shadow {
off
}
}
screenshot-path "${xdgPics}/screenshots/screenshot-%Y-%m-%d-%H-%M-%S.png" screenshot-path "${xdgPics}/screenshots/screenshot-%Y-%m-%d-%H-%M-%S.png"
animations { animations {
@ -284,6 +295,8 @@ in {
Mod+Ctrl+M { fullscreen-window; } Mod+Ctrl+M { fullscreen-window; }
Mod+Ctrl+G { toggle-window-floating; } Mod+Ctrl+G { toggle-window-floating; }
Mod+Ctrl+Shift+M { toggle-windowed-fullscreen; }
Mod+Minus { set-column-width "-10%"; } Mod+Minus { set-column-width "-10%"; }
Mod+Equal { set-column-width "+10%"; } Mod+Equal { set-column-width "+10%"; }
Mod+Comma { set-column-width "-10%"; } Mod+Comma { set-column-width "-10%"; }
@ -291,12 +304,15 @@ in {
Mod+Shift+Comma { set-window-height "-10%"; } Mod+Shift+Comma { set-window-height "-10%"; }
Mod+Shift+Period { set-window-height "+10%"; } Mod+Shift+Period { set-window-height "+10%"; }
Mod+Escape { switch-layout "next"; } Mod+Space { switch-layout "next"; }
Mod+Ctrl+Space repeat=false { toggle-overview; }
Mod+Return repeat=false { spawn "sh" "-c" "$TERMINAL"; } Mod+Return repeat=false { spawn "sh" "-c" "$TERMINAL"; }
Mod+Space repeat=false { spawn "${launcher}"; } Mod+BackSpace repeat=false { spawn "${launcher}"; }
Mod+Ctrl+L repeat=false { spawn "${lockscreen}"; } Mod+A repeat=false { spawn "${launcher}"; }
Mod+Ctrl+V repeat=false { spawn "copyq" "toggle"; } Mod+Ctrl+L repeat=false { spawn "${lockscreen}"; }
Mod+Ctrl+V repeat=false { spawn "copyq" "toggle"; }
Mod+Shift+W repeat=false { spawn "walker" "-m" "windows"; } Mod+Shift+W repeat=false { spawn "walker" "-m" "windows"; }

View File

@ -19,6 +19,7 @@ in {
gcr_4 gcr_4
]; ];
fonts.fontDir.enable = true; fonts.fontDir.enable = true;
security.soteria.enable = true;
security.pam = { security.pam = {
services.greetd.enableGnomeKeyring = true; services.greetd.enableGnomeKeyring = true;
services.gtklock = {}; services.gtklock = {};