wallust: added alacritty and rofi templates

This commit is contained in:
Tigor Hutasuhut 2024-10-21 17:35:51 +07:00
parent 69b175b9f5
commit b2823e8d94
4 changed files with 98 additions and 1 deletions

View file

@ -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";
};
};
}

View file

@ -39,9 +39,11 @@ let
in in
{ {
imports = [ imports = [
./alacritty.nix
./foot.nix ./foot.nix
./hyprland.nix ./hyprland.nix
./kitty.nix ./kitty.nix
./rofi.nix
./waybar.nix ./waybar.nix
./wlogout.nix ./wlogout.nix
]; ];

View file

@ -3,7 +3,7 @@ let
cfg = config.profile.hyprland; cfg = config.profile.hyprland;
in 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 = home.file.".config/wallust/templates/kitty.conf".text =
# css # css
'' ''

View file

@ -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";
};
};
}