[zix790prors] Add i3 + fixes

This commit is contained in:
2025-10-26 12:00:13 -07:00
parent 6cc8fa4f5d
commit 569ac528a5
3 changed files with 40 additions and 1 deletions

View File

@@ -11,6 +11,12 @@ let
terminal = "kitty";
defaultWorkspace = "workspace number 1";
bars = [{
position = "bottom";
statusCommand = "i3status";
trayOutput = "primary"; # Enable system tray on primary output
}];
keybindings = {
"${shared_config.modifier}+Return" = "exec ${terminal}";
"${shared_config.modifier}+Shift+q" = "kill";
@@ -113,6 +119,26 @@ in {
"${shared_config.modifier}+Shift+e" =
"exec i3-nagbar -t warning -m 'Do you want to exit i3?' -b 'Yes' 'i3-msg exit'";
};
startup = [
# GNOME polkit authentication agent
{
command = "/run/current-system/sw/libexec/polkit-gnome-authentication-agent-1";
always = false;
notification = false;
}
# Picom compositor for smooth rendering and no tearing (important for Nvidia)
{
command = "picom -b";
always = false;
notification = false;
}
# NetworkManager system tray applet
{
command = "nm-applet";
always = false;
notification = false;
}
];
};
in {
enable = true;

View File

@@ -24,6 +24,7 @@ with lib;
kde = true;
sddm = true;
wayland = true;
x11 = true;
};
nfs-mounts.enable = true;
nvidia.enable = true;
@@ -51,6 +52,11 @@ with lib;
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
# Set DP-0 as primary display for system tray and multi-monitor setup
services.xserver.displayManager.sessionCommands = ''
${pkgs.xorg.xrandr}/bin/xrandr --output DP-0 --primary
'';
hardware.nvidia = {
# Modesetting is required.
modesetting.enable = true;

View File

@@ -12,7 +12,14 @@ in
windowManager.i3 = {
enable = true;
extraPackages = with pkgs; [ dmenu i3status i3lock ];
extraPackages = with pkgs; [
dmenu
i3status
i3lock
polkit_gnome # GNOME polkit authentication agent (more stable with i3)
picom # Compositor for smooth rendering (important for Nvidia)
networkmanagerapplet # NetworkManager system tray applet
];
};
};
};