home: alacritty -> foot

This commit is contained in:
Guanran Wang 2024-06-23 15:31:24 +08:00
parent 6626a9e174
commit b1f18fef38
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
7 changed files with 13 additions and 30 deletions

View file

@ -5,7 +5,6 @@
...
}: {
imports = map (n: ../../../../home/applications/${n}) [
"alacritty"
"go"
"mpv"
"nix"
@ -32,11 +31,4 @@
dockutil
gawk
];
# macOS don't have fontconfig
programs = let
monospace = "JetBrainsMono Nerd Font";
in {
alacritty.settings.font.normal.family = monospace;
};
}

View file

@ -21,6 +21,7 @@
skhd = {
enable = true;
skhdConfig = ''
# FIXME
cmd - return : open -n ${pkgs.alacritty}/Applications/Alacritty.app
cmd - 1 : yabai -m space --focus 1 # Focus space

View file

@ -1,19 +0,0 @@
{
lib,
pkgs,
...
}: {
programs.alacritty = {
enable = true;
settings = {
cursor.style = "beam";
font.size = 10;
# workaround for scaling in X11
env.WINIT_X11_SCALE_FACTOR = "1";
# for zellij on macOS
window.option_as_alt = lib.mkIf pkgs.stdenv.hostPlatform.isDarwin "Both";
};
};
}

View file

@ -0,0 +1,9 @@
{
programs.foot = {
enable = true;
settings = {
main.font = "monospace:size=10";
cursor.style = "beam";
};
};
}

View file

@ -7,7 +7,7 @@
enable = true;
package = pkgs.rofi-wayland;
font = "monospace";
terminal = lib.getExe pkgs.alacritty;
terminal = lib.getExe pkgs.foot;
};
home.packages = with pkgs; [rofi-power-menu];

View file

@ -109,7 +109,7 @@
### Execute other stuff
# Launch applications
"${modifier}+Return" = "exec alacritty";
"${modifier}+Return" = "exec ${lib.getExe pkgs.foot}";
"${modifier}+w" = "exec ${pkgs.xdg-utils}/bin/xdg-open http:";
"${modifier}+e" = "exec ${pkgs.xdg-utils}/bin/xdg-open ~";

View file

@ -6,9 +6,9 @@
./xdg-mime.nix
]
++ map (n: ../../../../../home/applications/${n}) [
"alacritty"
"fcitx5"
"firefox"
"foot"
"go"
"mpv"
"nautilus"