foot: added config

This commit is contained in:
Tigor Hutasuhut 2024-07-26 20:03:14 +07:00
parent 25fa53ed07
commit 415932a019
6 changed files with 14 additions and 5 deletions

View file

@ -19,6 +19,8 @@ let
in in
{ {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
profile.home.programs.foot.enable = lib.mkForce true;
home.packages = [ home.packages = [
inputs.hyprland-contrib.packages.${pkgs.system}.grimblast inputs.hyprland-contrib.packages.${pkgs.system}.grimblast
pkgs.wl-clipboard pkgs.wl-clipboard
@ -82,7 +84,7 @@ in
# https://wiki.hyprland.org/Configuring/Binds # https://wiki.hyprland.org/Configuring/Binds
bind = [ bind = [
# Programs # Programs
"$mod, RETURN, exec, kitty" "$mod, RETURN, exec, foot"
"$mod, E, exec, thunar" "$mod, E, exec, thunar"
"$mod, B, exec, microsoft-edge" "$mod, B, exec, microsoft-edge"
"$mod, D, exec, rofi -show drun -replace -i" "$mod, D, exec, rofi -show drun -replace -i"
@ -180,7 +182,7 @@ in
disable_splash_rendering = true; disable_splash_rendering = true;
focus_on_activate = true; focus_on_activate = true;
enable_swallow = true; enable_swallow = true;
swallow_regex = "^(Alacritty|kitty|footclient|org\.wezfurlong\.wezterm)$"; swallow_regex = "^(Alacritty|kitty|footclient|org\.wezfurlong\.wezterm|foot|footclient)$";
}; };
animations = { animations = {

View file

@ -23,8 +23,8 @@ in
]; ];
scratchpads.term = { scratchpads.term = {
animation = "fromTop"; animation = "fromTop";
command = "kitty --class kitty-dropterm"; command = "foot --app-id foot-scratchpad";
class = "kitty-dropterm"; class = "foot-scratchpad";
size = "75% 75%"; size = "75% 75%";
}; };
wallpapers = { wallpapers = {

View file

@ -94,6 +94,10 @@ in
template = "templates/alacritty.toml"; template = "templates/alacritty.toml";
target = out + "/alacritty.toml"; target = out + "/alacritty.toml";
}; };
foot = {
template = "templates/foot.ini";
target = "${config.home.homeDirectory}/.config/foot/colors.ini";
};
}; };
}; };
}; };

View file

@ -6,6 +6,7 @@
./dbeaver.nix ./dbeaver.nix
./discord.nix ./discord.nix
./easyeffects.nix ./easyeffects.nix
./foot.nix
./git.nix ./git.nix
./github.nix ./github.nix
./go.nix ./go.nix

View file

@ -90,7 +90,7 @@
# So desktop user can just resurrect the session if they want to. # So desktop user can just resurrect the session if they want to.
autoAttach = lib.mkEnableOption "zellij autoAttach"; autoAttach = lib.mkEnableOption "zellij autoAttach";
}; };
foot.enable = lib.mkEnableOption "foot";
}; };
programs = { programs = {

View file

@ -69,5 +69,7 @@
programs.mongodb-compass.enable = true; programs.mongodb-compass.enable = true;
podman.enable = true; podman.enable = true;
home.programs.foot.enable = true;
}; };
} }