Config
This commit is contained in:
@@ -6,6 +6,152 @@
|
||||
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" ]; }
|
||||
];
|
||||
|
||||
binds = {
|
||||
# Terminal & apps
|
||||
"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
|
||||
"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 = [];
|
||||
|
||||
# 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%";
|
||||
|
||||
# Screenshots
|
||||
"Print".action.screenshot = [];
|
||||
"Ctrl+Print".action.screenshot-screen = [];
|
||||
"Alt+Print".action.screenshot-window = [];
|
||||
|
||||
# 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;
|
||||
|
||||
Reference in New Issue
Block a user