commit fa35422e778e045434be747f4f8b2582f417d042
parent 045597a66cef56e67ba260f8b19a925317517e0b
Author: Milutin Popovic <milutin@popovic.xyz>
Date: Fri, 27 Mar 2026 13:31:09 +0000
niri dots
Diffstat:
4 files changed, 38 insertions(+), 21 deletions(-)
diff --git a/lib/dotfiles.nix b/lib/dotfiles.nix
@@ -2,6 +2,6 @@
dotfiles = builtins.fetchGit {
url = "git://popovic.xyz/dots.git";
ref = "master";
- rev = "8e9e195a6cf15039c5fcef5d8af7d3b94ed36d5c";
+ rev = "d34c64e4bce1d1096d0ea68f5306f10d73ed1b69";
};
}
diff --git a/modules/alacitty.nix b/modules/alacitty.nix
@@ -27,7 +27,7 @@
family = "Terminus";
style = "Bold";
};
- size = 20;
+ size = 14;
};
colors = {
@@ -86,23 +86,23 @@
keyboard.bindings = [
# Scrollback
{
- key = "K";
+ key = "U";
mods = "Alt";
action = "ScrollLineUp";
}
{
- key = "L";
+ key = "D";
mods = "Alt";
action = "ScrollLineDown";
}
{
key = "U";
- mods = "Alt";
+ mods = "Alt|Shift";
action = "ScrollPageUp";
}
{
key = "D";
- mods = "Alt";
+ mods = "Alt|Shift";
action = "ScrollPageDown";
}
diff --git a/modules/niri.nix b/modules/niri.nix
@@ -16,13 +16,31 @@
settings =
let
noctaliaPkg = inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default;
- noctaliaExe = lib.getExe noctaliaPkg;
+ noctaliaCmd = lib.getExe noctaliaPkg;
+ terminalCmd = lib.getExe pkgs.alacritty;
in
{
prefer-no-csd = true;
+
+ window-rules = [
+ {
+ matches = [ { app-id = "spotify"; } ];
+ open-on-workspace = "9";
+ }
+ ];
binds = {
- "Mod+Return".action.spawn = "alacritty";
+ "Mod+Return".action.spawn = "${terminalCmd}";
"Mod+C".action.spawn = "firefox";
+ "Mod+D".action.spawn = "dmenu-wl_run";
+ "Mod+P".action.spawn = "passmenu-otp";
+ "Mod+B".action.spawn = "dmenu-bluetooth";
+ "Mod+Alt+S".action.spawn = "swaylock";
+ "Mod+W".action.spawn = "spotify";
+ "Mod+M".action.spawn = "TZ=Europe/Berlin ${terminalCmd} -e neomutt";
+ "Mod+Shift+P".action.spawn = "pavucontrol";
+ "Mod+Shift+B".action.spawn = "nautilus";
+ "Mod+Shift+W".action.spawn = "${terminalCmd} -e nmtui";
+ "Mod+Shift+R".action.spawn-sh = "background";
"Mod+Shift+E".action.quit.skip-confirmation = true;
"Mod+Shift+Q".action.close-window = { };
@@ -74,6 +92,8 @@
"Mod+F2".action.spawn-sh = "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-";
"Mod+F3".action.spawn-sh = "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+";
+ "Mod+F4".action.spawn-sh = "sudo xbacklight -dec 1";
+ "Mod+F5".action.spawn-sh = "sudo xbacklight -inc 1";
"Mod+Ctrl+H".action.set-column-width = "-5%";
"Mod+Ctrl+L".action.set-column-width = "+5%";
@@ -111,7 +131,10 @@
enable = false;
};
};
- cursor.size = 8;
+ cursor = {
+ size = 16;
+ theme = "Adwaita";
+ };
workspaces = {
"1" = { };
@@ -128,23 +151,15 @@
xwayland-satellite.path = lib.getExe pkgs.xwayland-satellite;
spawn-at-startup = [
- { command = [ "${noctaliaExe}" ]; }
- {
- command = [
- "${lib.getExe pkgs.swaybg}"
- "-i"
- "${config.home.homeDirectory}/.local/share/wallpaper/TahoeNight.png"
- "-m"
- "fill"
- ];
- }
+ { command = [ "${noctaliaCmd}" ]; }
+ { command = [ "background" ]; }
];
outputs = {
"BOE 0x0BCA Unknown".enable = false;
"PNP(BNQ) BenQ GL2760 H3E04203019" = {
enable = true;
- scale = 0.7;
+ scale = 1;
mode = {
width = 1920;
height = 1080;
@@ -156,7 +171,7 @@
};
"PNP(BNQ) BenQ GL2760 SCF04101019" = {
enable = true;
- scale = 0.7;
+ scale = 1;
mode = {
width = 1920;
height = 1080;
diff --git a/modules/packages.nix b/modules/packages.nix
@@ -61,6 +61,7 @@ with pkgs;
swaylock
xwayland-satellite
fuzzel
+ dmenu-wayland
wl-clipboard
grim
];
@@ -132,6 +133,7 @@ with pkgs;
spotify
inkscape
imagemagick
+ ghostscript
pandoc
mediainfo
transmission_4