mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
niri configuration added
This commit is contained in:
parent
0a4fb0c4d3
commit
6f3c035316
6 changed files with 178 additions and 9 deletions
133
modules/niri.nix
Normal file
133
modules/niri.nix
Normal file
|
|
@ -0,0 +1,133 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
userVars,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs.niri.enable = true;
|
||||
|
||||
home-manager.users."${userVars.username}" = {
|
||||
xdg.configFile."niri/config.kdl".text = ''
|
||||
prefer-no-csd
|
||||
|
||||
workspace "browser"
|
||||
workspace "term"
|
||||
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
options "ctrl:swapcaps"
|
||||
}
|
||||
}
|
||||
|
||||
touchpad {
|
||||
tap
|
||||
dwt
|
||||
natural-scroll
|
||||
}
|
||||
|
||||
mouse {
|
||||
}
|
||||
}
|
||||
|
||||
output "eDP-1" {
|
||||
}
|
||||
|
||||
layout {
|
||||
gaps 12
|
||||
center-focused-column "never"
|
||||
default-column-width { proportion 0.5; }
|
||||
|
||||
preset-column-widths {
|
||||
proportion 0.333
|
||||
proportion 0.5
|
||||
proportion 0.667
|
||||
}
|
||||
|
||||
focus-ring {
|
||||
width 2
|
||||
}
|
||||
}
|
||||
|
||||
spawn-at-startup "fnott"
|
||||
|
||||
binds {
|
||||
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||
|
||||
Mod+H { focus-column-left; }
|
||||
Mod+L { focus-column-right; }
|
||||
Mod+J { focus-window-down; }
|
||||
Mod+K { focus-window-up; }
|
||||
|
||||
Mod+Shift+H { move-column-left; }
|
||||
Mod+Shift+L { move-column-right; }
|
||||
Mod+Shift+J { move-window-down; }
|
||||
Mod+Shift+K { move-window-up; }
|
||||
|
||||
Mod+1 { focus-workspace "browser"; }
|
||||
Mod+2 { focus-workspace "term"; }
|
||||
Mod+3 { focus-workspace 3; }
|
||||
Mod+4 { focus-workspace 4; }
|
||||
Mod+5 { focus-workspace 5; }
|
||||
Mod+6 { focus-workspace 6; }
|
||||
Mod+7 { focus-workspace 7; }
|
||||
Mod+8 { focus-workspace 8; }
|
||||
Mod+9 { focus-workspace 9; }
|
||||
|
||||
Mod+Shift+1 { move-column-to-workspace "browser"; }
|
||||
Mod+Shift+2 { move-column-to-workspace "term"; }
|
||||
Mod+Shift+3 { move-column-to-workspace 3; }
|
||||
Mod+Shift+4 { move-column-to-workspace 4; }
|
||||
Mod+Shift+5 { move-column-to-workspace 5; }
|
||||
Mod+Shift+6 { move-column-to-workspace 6; }
|
||||
Mod+Shift+7 { move-column-to-workspace 7; }
|
||||
Mod+Shift+8 { move-column-to-workspace 8; }
|
||||
Mod+Shift+9 { move-column-to-workspace 9; }
|
||||
|
||||
Mod+Q { close-window; }
|
||||
Mod+F { maximize-column; }
|
||||
Mod+Shift+F { fullscreen-window; }
|
||||
Mod+Space { switch-preset-column-width; }
|
||||
|
||||
Mod+Return { spawn "foot"; }
|
||||
Mod+D { spawn "fuzzel"; }
|
||||
Mod+B { spawn "zen-beta"; }
|
||||
Mod+Ctrl+L { spawn "swaylock"; }
|
||||
Mod+Shift+E { quit; }
|
||||
|
||||
Mod+V { toggle-window-floating; }
|
||||
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
|
||||
|
||||
Mod+O repeat=false { toggle-overview; }
|
||||
|
||||
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||
Mod+BracketRight { consume-or-expel-window-right; }
|
||||
Mod+Comma { consume-window-into-column; }
|
||||
Mod+Period { expel-window-from-column; }
|
||||
|
||||
XF86AudioRaiseVolume { spawn "pamixer" "-i" "5"; }
|
||||
XF86AudioLowerVolume { spawn "pamixer" "-d" "5"; }
|
||||
XF86AudioMute { spawn "pamixer" "-t"; }
|
||||
XF86MonBrightnessUp { spawn "brightnessctl" "set" "10%+"; }
|
||||
XF86MonBrightnessDown { spawn "brightnessctl" "set" "10%-"; }
|
||||
|
||||
Print { screenshot; }
|
||||
Mod+Print { screenshot-screen; }
|
||||
Mod+Shift+S { screenshot; }
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id=r#"^zen.*$"#
|
||||
open-on-workspace "browser"
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="^foot$"
|
||||
open-on-workspace "term"
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue