From 372ffa68f3a803f875f611d143a55a4c30357ab0 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Wed, 18 Jun 2025 17:07:34 +0200 Subject: [PATCH] rofi --- modules/common.nix | 3 +++ modules/home/hyprland.nix | 2 +- modules/home/rofi.nix | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 modules/home/rofi.nix diff --git a/modules/common.nix b/modules/common.nix index d046518..8bcfe32 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -25,6 +25,7 @@ ./home/hyprland.nix # Hyprland window manager user config ./home/home-manager.nix # Base user environment ./home/hyprlock.nix # Hyprlock screen lock user config + ./home/rofi.nix # Rofi user config ]; }; @@ -165,6 +166,8 @@ noto-fonts-cjk-sans # CJK support noto-fonts-emoji # Emoji support nerd-fonts.symbols-only # Symbols + fira-code # Monospace font for coding + fira-code-symbols # Symbols ]; # ================================ diff --git a/modules/home/hyprland.nix b/modules/home/hyprland.nix index 17265f0..a945b0e 100644 --- a/modules/home/hyprland.nix +++ b/modules/home/hyprland.nix @@ -18,7 +18,7 @@ "$mod" = "SUPER"; "$terminal" = "ghostty"; "$filemanager" = "nautilus"; - "$menu" = "rofi -show drun"; + "$menu" = "rofi -show combi"; general = { gaps_in = 4; diff --git a/modules/home/rofi.nix b/modules/home/rofi.nix new file mode 100644 index 0000000..771821b --- /dev/null +++ b/modules/home/rofi.nix @@ -0,0 +1,18 @@ +{pkgs, ...}: { + programs.rofi = { + enable = true; + theme = "gruvbox-dark"; + font = "Intel One Mono"; + modes = [ + "window" + "drun" + "calc" + "emoji" + ]; + plugins = [ + pkgs.rofi-emoji + pkgs.rofi-calc + ]; + terminal = "\${pkgs.ghostty}/bin/ghostty"; + }; +}