home: alacritty -> foot
This commit is contained in:
parent
6626a9e174
commit
b1f18fef38
7 changed files with 13 additions and 30 deletions
|
@ -5,7 +5,6 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = map (n: ../../../../home/applications/${n}) [
|
imports = map (n: ../../../../home/applications/${n}) [
|
||||||
"alacritty"
|
|
||||||
"go"
|
"go"
|
||||||
"mpv"
|
"mpv"
|
||||||
"nix"
|
"nix"
|
||||||
|
@ -32,11 +31,4 @@
|
||||||
dockutil
|
dockutil
|
||||||
gawk
|
gawk
|
||||||
];
|
];
|
||||||
|
|
||||||
# macOS don't have fontconfig
|
|
||||||
programs = let
|
|
||||||
monospace = "JetBrainsMono Nerd Font";
|
|
||||||
in {
|
|
||||||
alacritty.settings.font.normal.family = monospace;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
skhd = {
|
skhd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
skhdConfig = ''
|
skhdConfig = ''
|
||||||
|
# FIXME
|
||||||
cmd - return : open -n ${pkgs.alacritty}/Applications/Alacritty.app
|
cmd - return : open -n ${pkgs.alacritty}/Applications/Alacritty.app
|
||||||
|
|
||||||
cmd - 1 : yabai -m space --focus 1 # Focus space
|
cmd - 1 : yabai -m space --focus 1 # Focus space
|
||||||
|
|
|
@ -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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
9
home/applications/foot/default.nix
Normal file
9
home/applications/foot/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
programs.foot = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
main.font = "monospace:size=10";
|
||||||
|
cursor.style = "beam";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -7,7 +7,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.rofi-wayland;
|
package = pkgs.rofi-wayland;
|
||||||
font = "monospace";
|
font = "monospace";
|
||||||
terminal = lib.getExe pkgs.alacritty;
|
terminal = lib.getExe pkgs.foot;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [rofi-power-menu];
|
home.packages = with pkgs; [rofi-power-menu];
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
### Execute other stuff
|
### Execute other stuff
|
||||||
# Launch applications
|
# Launch applications
|
||||||
"${modifier}+Return" = "exec alacritty";
|
"${modifier}+Return" = "exec ${lib.getExe pkgs.foot}";
|
||||||
"${modifier}+w" = "exec ${pkgs.xdg-utils}/bin/xdg-open http:";
|
"${modifier}+w" = "exec ${pkgs.xdg-utils}/bin/xdg-open http:";
|
||||||
"${modifier}+e" = "exec ${pkgs.xdg-utils}/bin/xdg-open ~";
|
"${modifier}+e" = "exec ${pkgs.xdg-utils}/bin/xdg-open ~";
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
./xdg-mime.nix
|
./xdg-mime.nix
|
||||||
]
|
]
|
||||||
++ map (n: ../../../../../home/applications/${n}) [
|
++ map (n: ../../../../../home/applications/${n}) [
|
||||||
"alacritty"
|
|
||||||
"fcitx5"
|
"fcitx5"
|
||||||
"firefox"
|
"firefox"
|
||||||
|
"foot"
|
||||||
"go"
|
"go"
|
||||||
"mpv"
|
"mpv"
|
||||||
"nautilus"
|
"nautilus"
|
||||||
|
|
Loading…
Reference in a new issue