diff --git a/home/modules/hyprland/wallust/alacritty.nix b/home/modules/hyprland/wallust/alacritty.nix new file mode 100644 index 0000000..6db605d --- /dev/null +++ b/home/modules/hyprland/wallust/alacritty.nix @@ -0,0 +1,52 @@ +{ config, lib, ... }: +let + cfg = config.profile.hyprland; +in +{ + config = lib.mkIf (cfg.enable && config.programs.alacritty.enable) { + home.file.".config/wallust/templates/alacritty.toml".text = + # toml + '' + [window] + opacity = {{alpha/100}} + + [colors] + [colors.primary] + background = "{{background}}" + foreground = "{{foreground}}" + + [colors.cursor] + text = "CellForeground" + cursor = "{{cursor}}" + + [colors.bright] + black = "{{color0}}" + red = "{{color1}}" + green = "{{color2}}" + yellow = "{{color3}}" + blue = "{{color4}}" + magenta = "{{color5}}" + cyan = "{{color6}}" + white = "{{color7}}" + + [colors.normal] + black = "{{color8}}" + red = "{{color9}}" + green = "{{color10}}" + yellow = "{{color11}}" + blue = "{{color12}}" + magenta = "{{color13}}" + cyan = "{{color14}}" + white = "{{color15}}" + ''; + + profile.hyprland.wallust.settings.templates.alacritty = + let + out = config.home.homeDirectory + "/.cache/wallust"; + in + { + template = "alacritty.toml"; + target = "${out}/alacritty.toml"; + }; + }; +} diff --git a/home/modules/hyprland/wallust/default.nix b/home/modules/hyprland/wallust/default.nix index d777414..a4af0a2 100644 --- a/home/modules/hyprland/wallust/default.nix +++ b/home/modules/hyprland/wallust/default.nix @@ -39,9 +39,11 @@ let in { imports = [ + ./alacritty.nix ./foot.nix ./hyprland.nix ./kitty.nix + ./rofi.nix ./waybar.nix ./wlogout.nix ]; diff --git a/home/modules/hyprland/wallust/kitty.nix b/home/modules/hyprland/wallust/kitty.nix index 8354aa3..b28ee8c 100644 --- a/home/modules/hyprland/wallust/kitty.nix +++ b/home/modules/hyprland/wallust/kitty.nix @@ -3,7 +3,7 @@ let cfg = config.profile.hyprland; in { - config = lib.mkIf (cfg.enable && config.profile.kitty.enable) { + config = lib.mkIf (cfg.enable && config.programs.kitty.enable) { home.file.".config/wallust/templates/kitty.conf".text = # css '' diff --git a/home/modules/hyprland/wallust/rofi.nix b/home/modules/hyprland/wallust/rofi.nix new file mode 100644 index 0000000..d1d6f31 --- /dev/null +++ b/home/modules/hyprland/wallust/rofi.nix @@ -0,0 +1,43 @@ +{ config, lib, ... }: +let + cfg = config.profile.hyprland; +in +{ + config = lib.mkIf (cfg.enable && config.profile.kitty.enable) { + home.file.".config/wallust/templates/rofi.rasi".text = + # css + '' + * { + background: rgba(0,0,1,0.5); + foreground: #FFFFFF; + color0: {{color0}}; + color1: {{color1}}; + color2: {{color2}}; + color3: {{color3}}; + color4: {{color4}}; + color5: {{color5}}; + color6: {{color6}}; + color7: {{color7}}; + color8: {{color8}}; + color9: {{color9}}; + color10: {{color10}}; + color11: {{color11}}; + color12: {{color12}}; + color13: {{color13}}; + color14: {{color14}}; + color15: {{color15}}; + border-width: 3px; + current-image: url("${config.home.homeDirectory}/.cache/wallpaper/blurred.png", height); + } + ''; + + profile.hyprland.wallust.settings.templates.rofi = + let + out = config.home.homeDirectory + "/.cache/wallust"; + in + { + template = "rofi.rasi"; + target = "${out}/rofi.rasi"; + }; + }; +}