From 1e7e7b1dabea218f75e0119246450257cac55414 Mon Sep 17 00:00:00 2001 From: Alexander Wainwright Date: Wed, 31 Dec 2025 22:50:55 +1000 Subject: [PATCH] Switch to fuzzel Has better matching. --- alex/sway.nix | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/alex/sway.nix b/alex/sway.nix index bd4792f..dd94ca7 100644 --- a/alex/sway.nix +++ b/alex/sway.nix @@ -82,7 +82,7 @@ in config = { modifier = "Mod4"; terminal = "wezterm"; - menu = "rofi -show drun"; + menu = "fuzzel"; fonts = { names = [ "JetBrainsMono Nerd Font" ]; @@ -156,7 +156,7 @@ in modifier = "Mod4"; in lib.mkOptionDefault { "${modifier}+Return" = "exec wezterm"; - "${modifier}+d" = "exec rofi -show drun"; + "${modifier}+d" = "exec fuzzel"; "${modifier}+Shift+q" = "kill"; "${modifier}+Shift+c" = "reload"; "${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'"; @@ -258,10 +258,30 @@ in ]; }; - programs.rofi = { + programs.fuzzel = { enable = true; - font = "JetBrainsMono Nerd Font 12"; - theme = lib.mkForce "default"; # Use default for now, can be themed later + settings = { + main = { + terminal = "${pkgs.wezterm}/bin/wezterm"; + layer = "overlay"; + width = 100; + line-height = 40; + font = "JetBrainsMono Nerd Font:size=12"; + }; + colors = { + background = "${lib.strings.removePrefix "#" base}ff"; + text = "${lib.strings.removePrefix "#" text}ff"; + match = "${lib.strings.removePrefix "#" lavender}ff"; + selection = "${lib.strings.removePrefix "#" surface1}ff"; + selection-text = "${lib.strings.removePrefix "#" text}ff"; + selection-match = "${lib.strings.removePrefix "#" lavender}ff"; + border = "${lib.strings.removePrefix "#" lavender}ff"; + }; + border = { + width = 2; + radius = 10; + }; + }; }; programs.waybar = {