Link rofi configs to XDG_CONFIG_DIR depending on theme
This commit is contained in:
@ -170,6 +170,7 @@ rec {
|
||||
|
||||
rofi = {
|
||||
enable = true;
|
||||
theme = "Three-Bears";
|
||||
};
|
||||
|
||||
vscode.enable = true;
|
||||
|
@ -15,18 +15,18 @@ in {
|
||||
options.modules.rofi = import ./options.nix {inherit lib mylib;};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
plugins = [
|
||||
pkgs.keepmenu # TODO: Rofi KeepassXC frontend
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
rofi-wayland
|
||||
];
|
||||
|
||||
# NOTE: Don't use this, use the configfile for hot-reload
|
||||
# terminal = "${pkgs.kitty}/bin/kitty";
|
||||
# font = "JetBrains Mono 14";
|
||||
# theme =
|
||||
# extraConfig = '''';
|
||||
home.activation = {
|
||||
# NOTE: Keep the rofi config symlinked, to allow easy changes with hotreload
|
||||
linkRofiConfig =
|
||||
hm.dag.entryAfter ["writeBoundary"]
|
||||
(mkLink "~/NixFlake/config/rofi/rofi.rasi" "~/.config/rofi/config.rasi");
|
||||
linkRofiColors =
|
||||
hm.dag.entryAfter ["writeBoundary"]
|
||||
(mkLink "~/NixFlake/config/rofi/colors/${cfg.theme}.rasi" "~/.config/rofi/colors.rasi");
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -6,4 +6,10 @@
|
||||
with lib;
|
||||
with mylib.modules; {
|
||||
enable = mkEnableOpt "Rofi";
|
||||
|
||||
theme = mkOption {
|
||||
type = types.str;
|
||||
example = "Three-Bears";
|
||||
description = "Color theme to use";
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user