diff options
| author | spl3g <notspl3g@duck.com> | 2026-03-18 18:01:41 +0300 |
|---|---|---|
| committer | spl3g <notspl3g@duck.com> | 2026-03-18 18:01:59 +0300 |
| commit | 03648b3d9f177227df40129bed22558f6924b91c (patch) | |
| tree | 8a22eda142beeafd9002a8d5901ba9428a77ad52 /modules/homeModules/rofi.nix | |
| parent | dc19a2b583b3ab50d8e36ff0a90ca633495f675f (diff) | |
so.. v2 i guess
Diffstat (limited to 'modules/homeModules/rofi.nix')
| -rw-r--r-- | modules/homeModules/rofi.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/modules/homeModules/rofi.nix b/modules/homeModules/rofi.nix new file mode 100644 index 0000000..735dc77 --- /dev/null +++ b/modules/homeModules/rofi.nix @@ -0,0 +1,50 @@ +{inputs, ...}: { + flake.homeModules.rofi = { + pkgs, + config, + lib, + ... + }: { + options.customs = { + rofi.enable = lib.mkEnableOption "enable rofi"; + rofi.package = lib.mkPackageOption pkgs "rofi package" {default = ["rofi"];}; + }; + + config = lib.mkIf config.customs.rofi.enable { + programs.rofi = { + enable = true; + package = config.customs.rofi.package; + theme = with config.lib.stylix.colors.withHashtag; + builtins.toFile "theme.rasi" '' + * { + font: "FiraCode Nerd Font Medium 12"; + + bg0: ${base01}; + bg1: ${base02}; + fg0: ${base04}; + + accent-color: ${base03}; + urgent-color: #ffffff; + + background-color: transparent; + text-color: @fg0; + + margin: 0; + padding: 0; + spacing: 0; + } + + ${builtins.readFile ./attachments/rofi-theme.rasi}''; + cycle = true; + plugins = with pkgs; [ + rofi-emoji + rofi-calc + ]; + extraConfig = { + kb-row-up = "Up,Ctrl+p"; + kb-row-down = "Down,Ctrl+n"; + }; + }; + }; + }; +} |
