home: alacritty -> foot

This commit is contained in:
Guanran Wang 2024-06-23 15:31:24 +08:00
parent cc823e8aa5
commit 83bc00a358
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
7 changed files with 16 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,12 @@
{
pkgs,
lib,
...
}: {
programs.foot = {
enable = true;
settings = {
main.font = "monospace:size=10";
};
};
}

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"