diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-25 19:41:02 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-25 19:41:02 +0530 |
| commit | 478081af928e1557b325f4a4cbd5b67f079660d2 (patch) | |
| tree | c7975b403c29acfd4de91664320e7ebbd0ac1685 /modules/desktop/popup-manager | |
| parent | 165cde749fc899d4c86eb6de97d3b7c4373eb7b3 (diff) | |
| download | home-manager-config-478081af928e1557b325f4a4cbd5b67f079660d2.tar.gz home-manager-config-478081af928e1557b325f4a4cbd5b67f079660d2.zip | |
Adding nnn file manager.
Adding bspwm bindings to sxhkd only if the module is enabled.
Diffstat (limited to 'modules/desktop/popup-manager')
| -rw-r--r-- | modules/desktop/popup-manager/default.nix | 9 | ||||
| -rw-r--r-- | modules/desktop/popup-manager/rofi/default.nix | 7 | ||||
| -rw-r--r-- | modules/desktop/popup-manager/rofi/theme.rasi.mustache (renamed from modules/desktop/popup-manager/rofi/theme/theme.rasi) | 6 | ||||
| -rw-r--r-- | modules/desktop/popup-manager/rofi/theme/default.nix | 21 |
4 files changed, 19 insertions, 24 deletions
diff --git a/modules/desktop/popup-manager/default.nix b/modules/desktop/popup-manager/default.nix index 3eacbf6..edf3dfa 100644 --- a/modules/desktop/popup-manager/default.nix +++ b/modules/desktop/popup-manager/default.nix @@ -1,7 +1,14 @@ -{ ... }: +{ lib, ... }: { imports = [ ./rofi ]; + + options.desktop.popup-manager = { + application-launcher.default = lib.mkOption { + type = lib.types.str; + description = "Path to the default application launcher program."; + }; + }; } diff --git a/modules/desktop/popup-manager/rofi/default.nix b/modules/desktop/popup-manager/rofi/default.nix index 5c839e1..009db89 100644 --- a/modules/desktop/popup-manager/rofi/default.nix +++ b/modules/desktop/popup-manager/rofi/default.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: { options.desktop.popup-manager.rofi = { @@ -6,8 +6,11 @@ }; config = lib.mkIf config.desktop.popup-manager.rofi.enable { + desktop.popup-manager.application-launcher.default = "${pkgs.rofi}/bin/rofi -show run"; programs.rofi.enable = true; programs.rofi.font = "FiraCode Nerd Font 16"; - programs.rofi.theme = import ./theme config; + programs.rofi.theme = config.scheme { + template = builtins.readFile ./theme.rasi.mustache; + }; }; } diff --git a/modules/desktop/popup-manager/rofi/theme/theme.rasi b/modules/desktop/popup-manager/rofi/theme.rasi.mustache index 9d808b9..02cdaf3 100644 --- a/modules/desktop/popup-manager/rofi/theme/theme.rasi +++ b/modules/desktop/popup-manager/rofi/theme.rasi.mustache @@ -27,12 +27,18 @@ configuration { padding: 0; spacing: 0; + bg: #{{base00-hex}}; + bg-alt: #{{base01-hex}}; + fg: #{{base07-hex}}; + fg-alt: #{{base03-hex}}; + background-color: @bg; text-color: @fg; } window { transparency: "real"; + border-color: #{{base03-hex}}; } mainbox { diff --git a/modules/desktop/popup-manager/rofi/theme/default.nix b/modules/desktop/popup-manager/rofi/theme/default.nix deleted file mode 100644 index b0b8173..0000000 --- a/modules/desktop/popup-manager/rofi/theme/default.nix +++ /dev/null @@ -1,21 +0,0 @@ -config: - -with config.scheme.withHashtag; -builtins.toFile "theme.rasi" -'' -${builtins.readFile ./theme.rasi} -configuration { - font: "${config.programs.rofi.font}"; -} - -* { - bg: ${base00}; - bg-alt: ${base01}; - fg: ${base07}; - fg-alt: ${base03}; -} - -window { - border-color: ${base03}; -} -'' |
