{ config, pkgs, inputs, ... }: let settings = import ../../settings.nix; wallpaperPath = "/home/${settings.username}/Assets/wallpapers/sound.png"; in { imports = [ inputs.dms.homeModules.dank-material-shell inputs.dms.homeModules.niri ]; # Niri compositor settings (via niri-flake home-manager module) programs.niri.settings = { input = { keyboard.xkb = {}; mouse.accel-profile = "flat"; }; layout = { gaps = 16; center-focused-column = "never"; default-column-width.proportion = 0.5; focus-ring = { width = 4; active.color = "#7fc8ff"; inactive.color = "#505050"; }; border = { enable = false; }; }; prefer-no-csd = true; screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"; hotkey-overlay.skip-at-startup = true; spawn-at-startup = [ { argv = [ "xwayland-satellite" ]; } # Set wallpaper via DMS IPC (waits briefly for DMS to start) { sh = "sleep 2 && dms ipc call wallpaper set ${wallpaperPath}"; } ]; binds = { # ── App launchers ────────────────────────────────────────── "Mod+D".action.spawn-sh = "dms ipc call spotlight toggle"; "Mod+T".action.spawn = "ghostty"; "Mod+B".action.spawn = "librewolf"; "Mod+E".action.spawn = "nautilus"; # ── Close window ─────────────────────────────────────────── "Mod+Q".action.close-window = []; # ── Overview ─────────────────────────────────────────────── "Mod+O" = { action.toggle-overview = []; repeat = false; }; # ── Focus (arrows + vim keys) ───────────────────────────── "Mod+Left".action.focus-column-left = []; "Mod+Down".action.focus-window-down = []; "Mod+Up".action.focus-window-up = []; "Mod+Right".action.focus-column-right = []; "Mod+H".action.focus-column-left = []; "Mod+J".action.focus-window-down = []; "Mod+K".action.focus-window-up = []; "Mod+L".action.focus-column-right = []; # ── Scroll wheel focus ──────────────────────────────────── "Mod+WheelScrollDown" = { action.focus-column-right = []; cooldown-ms = 150; }; "Mod+WheelScrollUp" = { action.focus-column-left = []; cooldown-ms = 150; }; "Mod+Shift+WheelScrollDown" = { action.focus-workspace-down = []; cooldown-ms = 300; }; "Mod+Shift+WheelScrollUp" = { action.focus-workspace-up = []; cooldown-ms = 300; }; # ── Move columns/windows ────────────────────────────────── "Mod+Ctrl+Left".action.move-column-left = []; "Mod+Ctrl+Down".action.move-window-down = []; "Mod+Ctrl+Up".action.move-window-up = []; "Mod+Ctrl+Right".action.move-column-right = []; "Mod+Ctrl+H".action.move-column-left = []; "Mod+Ctrl+J".action.move-window-down = []; "Mod+Ctrl+K".action.move-window-up = []; "Mod+Ctrl+L".action.move-column-right = []; # ── Monitor focus ───────────────────────────────────────── "Mod+Shift+Left".action.focus-monitor-left = []; "Mod+Shift+Down".action.focus-monitor-down = []; "Mod+Shift+Up".action.focus-monitor-up = []; "Mod+Shift+Right".action.focus-monitor-right = []; # ── Move to monitor ─────────────────────────────────────── "Mod+Shift+Ctrl+Left".action.move-column-to-monitor-left = []; "Mod+Shift+Ctrl+Down".action.move-column-to-monitor-down = []; "Mod+Shift+Ctrl+Up".action.move-column-to-monitor-up = []; "Mod+Shift+Ctrl+Right".action.move-column-to-monitor-right = []; # ── Workspaces ──────────────────────────────────────────── "Mod+Page_Down".action.focus-workspace-down = []; "Mod+Page_Up".action.focus-workspace-up = []; "Mod+Ctrl+Page_Down".action.move-column-to-workspace-down = []; "Mod+Ctrl+Page_Up".action.move-column-to-workspace-up = []; "Mod+1".action.focus-workspace = 1; "Mod+2".action.focus-workspace = 2; "Mod+3".action.focus-workspace = 3; "Mod+4".action.focus-workspace = 4; "Mod+5".action.focus-workspace = 5; "Mod+6".action.focus-workspace = 6; "Mod+7".action.focus-workspace = 7; "Mod+8".action.focus-workspace = 8; "Mod+9".action.focus-workspace = 9; "Mod+Ctrl+1".action.move-column-to-workspace = 1; "Mod+Ctrl+2".action.move-column-to-workspace = 2; "Mod+Ctrl+3".action.move-column-to-workspace = 3; "Mod+Ctrl+4".action.move-column-to-workspace = 4; "Mod+Ctrl+5".action.move-column-to-workspace = 5; "Mod+Ctrl+6".action.move-column-to-workspace = 6; "Mod+Ctrl+7".action.move-column-to-workspace = 7; "Mod+Ctrl+8".action.move-column-to-workspace = 8; "Mod+Ctrl+9".action.move-column-to-workspace = 9; # ── Window management ───────────────────────────────────── "Mod+BracketLeft".action.consume-or-expel-window-left = []; "Mod+BracketRight".action.consume-or-expel-window-right = []; "Mod+Comma".action.consume-window-into-column = []; "Mod+Period".action.expel-window-from-column = []; "Mod+R".action.switch-preset-column-width = []; "Mod+Shift+R".action.switch-preset-window-height = []; "Mod+Ctrl+R".action.reset-window-height = []; "Mod+F".action.maximize-column = []; "Mod+Shift+F".action.fullscreen-window = []; "Mod+C".action.center-column = []; "Mod+V".action.toggle-window-floating = []; "Mod+Shift+V".action.switch-focus-between-floating-and-tiling = []; "Mod+W".action.toggle-column-tabbed-display = []; # ── Sizing ──────────────────────────────────────────────── "Mod+Minus".action.set-column-width = "-10%"; "Mod+Equal".action.set-column-width = "+10%"; "Mod+Shift+Minus".action.set-window-height = "-10%"; "Mod+Shift+Equal".action.set-window-height = "+10%"; # Scroll wheel resizing "Mod+Ctrl+WheelScrollDown" = { action.set-column-width = "-5%"; cooldown-ms = 50; }; "Mod+Ctrl+WheelScrollUp" = { action.set-column-width = "+5%"; cooldown-ms = 50; }; # ── Screenshots ─────────────────────────────────────────── "Print".action.screenshot = []; "Ctrl+Print".action.screenshot-screen = []; "Alt+Print".action.screenshot-window = []; # ── DMS shell controls ──────────────────────────────────── "Mod+N".action.spawn-sh = "dms ipc call notifications toggle"; "Mod+A".action.spawn-sh = "dms ipc call control-center toggle"; "Mod+Shift+C".action.spawn-sh = "dms ipc call clipboard toggle"; "Mod+P".action.spawn-sh = "dms ipc call settings openWith displays"; "Mod+I".action.spawn-sh = "dms ipc call settings toggle"; "Mod+Shift+L".action.spawn-sh = "dms ipc call lock lock"; "Mod+Shift+D".action.spawn-sh = "dms ipc call dock toggle"; # ── Media keys ──────────────────────────────────────────── "XF86AudioRaiseVolume" = { action.spawn-sh = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+ -l 1.0"; allow-when-locked = true; }; "XF86AudioLowerVolume" = { action.spawn-sh = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; allow-when-locked = true; }; "XF86AudioMute" = { action.spawn-sh = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; allow-when-locked = true; }; "XF86AudioMicMute" = { action.spawn-sh = "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; allow-when-locked = true; }; "XF86AudioPlay" = { action.spawn-sh = "playerctl play-pause"; allow-when-locked = true; }; "XF86AudioStop" = { action.spawn-sh = "playerctl stop"; allow-when-locked = true; }; "XF86AudioPrev" = { action.spawn-sh = "playerctl previous"; allow-when-locked = true; }; "XF86AudioNext" = { action.spawn-sh = "playerctl next"; allow-when-locked = true; }; # ── Session ─────────────────────────────────────────────── "Mod+Shift+E".action.quit = []; "Mod+Shift+P".action.power-off-monitors = []; "Mod+Escape" = { action.toggle-keyboard-shortcuts-inhibit = []; allow-inhibiting = false; }; }; }; # DankMaterialShell programs.dank-material-shell = { enable = true; enableSystemMonitoring = true; dgop.package = inputs.dgop.packages.${pkgs.system}.default; enableDynamicTheming = true; enableClipboardPaste = true; niri = { enableKeybinds = false; enableSpawn = true; includes.enable = false; }; settings = { theme = "dark"; dynamicTheming = true; }; }; # Mouse settings home.pointerCursor = { name = "Adwaita"; package = pkgs.adwaita-icon-theme; size = 24; }; }