From 690766ac3f7fabd67857130536a84e3c0933046a Mon Sep 17 00:00:00 2001 From: Leonhard Kost Date: Mon, 23 Nov 2026 11:16:00 +0100 Subject: [PATCH] refactor: simplify options --- home/kitty.nix | 26 ++++++++--------- home/niri.nix | 7 ++--- home/rofi/default.nix | 65 +++++++++++++++++++++---------------------- 3 files changed, 46 insertions(+), 52 deletions(-) diff --git a/home/kitty.nix b/home/kitty.nix index b4542ed..b95deac 100644 --- a/home/kitty.nix +++ b/home/kitty.nix @@ -1,22 +1,22 @@ { config, - lib, pkgs, ... }: { - config = lib.mkIf config.nix-leonhard.graphical.enable { - programs.kitty = { - enable = true; - themeFile = "tokyo_night_night"; - font = { - package = pkgs.nerd-fonts.jetbrains-mono; - name = "JetBrainsMono NF"; - size = 14; - }; - keybindings = { - "ctrl+alt+enter" = "launch --cwd=current"; - }; + programs.kitty = { + enable = config.nix-leonhard.graphical.enable; + themeFile = "tokyo_night_night"; + font = { + package = pkgs.nerd-fonts.jetbrains-mono; + name = "JetBrainsMono NF"; + size = 14; + }; + keybindings = { + "ctrl+alt+enter" = "launch --cwd=current"; + }; + settings = { + hide_window_decorations = true; }; }; } diff --git a/home/niri.nix b/home/niri.nix index 91a573c..84d7935 100644 --- a/home/niri.nix +++ b/home/niri.nix @@ -1,12 +1,9 @@ { config, - lib, ... }: { - config = lib.mkIf config.nix-leonhard.graphical.enable { - wayland.windowManager.niri = { - enable = true; - }; + wayland.windowManager.niri = { + enable = config.nix-leonhard.graphical.enable; }; } diff --git a/home/rofi/default.nix b/home/rofi/default.nix index 8f0bfc4..ba1f6e1 100644 --- a/home/rofi/default.nix +++ b/home/rofi/default.nix @@ -1,44 +1,41 @@ { config, - lib, ... }: { - config = lib.mkIf config.nix-leonhard.graphical.enable { - programs.rofi = { - enable = true; - theme = ./tokyonight.rasi; - settings = { - modi = [ - "drun" - "window" - "run" - ]; - font = "JetBrainsMono Nerd Font 11"; - icon-theme = "Papirus-Dark"; - show-icons = true; - terminal = "kitty"; - drun-display-format = "{icon} {name}"; - location = 0; - disable-history = false; - sidebar-mode = false; - display-drun = " "; - display-run = " "; - display-window = " "; + programs.rofi = { + enable = config.nix-leonhard.graphical.enable; + theme = ./tokyonight.rasi; + settings = { + modi = [ + "drun" + "window" + "run" + ]; + font = "JetBrainsMono Nerd Font 11"; + icon-theme = "Papirus-Dark"; + show-icons = true; + terminal = "kitty"; + drun-display-format = "{icon} {name}"; + location = 0; + disable-history = false; + sidebar-mode = false; + display-drun = " "; + display-run = " "; + display-window = " "; - kb-row-up = "Up,Control+k"; - kb-row-left = "Left,Control+h"; - kb-row-right = "Right,Control+l"; - kb-row-down = "Down,Control+j"; + kb-row-up = "Up,Control+k"; + kb-row-left = "Left,Control+h"; + kb-row-right = "Right,Control+l"; + kb-row-down = "Down,Control+j"; - kb-accept-entry = "Return"; - # remove clashing keybinds - kb-remove-to-eol = ""; - kb-move-char-back = "Control+b"; - kb-remove-char-back = "BackSpace"; - kb-move-char-forward = "Control+f"; - kb-mode-complete = "Control+o"; - }; + kb-accept-entry = "Return"; + # remove clashing keybinds + kb-remove-to-eol = ""; + kb-move-char-back = "Control+b"; + kb-remove-char-back = "BackSpace"; + kb-move-char-forward = "Control+f"; + kb-mode-complete = "Control+o"; }; }; }