diff --git a/modules/desktop/alacritty.nix b/modules/desktop/alacritty.nix deleted file mode 100644 index e075411..0000000 --- a/modules/desktop/alacritty.nix +++ /dev/null @@ -1,22 +0,0 @@ -{home-manager, ...}: { - # Terminal emulator - # https://wiki.archlinux.org/title/Alacritty - - home-manager.users.caspervk = { - programs.alacritty = { - enable = true; - settings = { - key_bindings = [ - # It's easy to open a new terminal using Mod+Enter in sway, but it - # always opens in the home directly. This binds Control+Shift+Enter - # to open a new terminal in the current directory. - { - key = "Return"; - mods = "Control|Shift"; - action = "SpawnNewInstance"; - } - ]; - }; - }; - }; -} diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 12dfe51..5388e5d 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -1,15 +1,15 @@ {...}: { imports = [ - ./alacritty.nix ./clipman.nix ./flatpak.nix + ./foot.nix ./gammastep.nix ./network.nix ./pipewire.nix ./programs.nix + ./rofi.nix ./ssh.nix ./sway.nix ./virtd.nix - ./rofi.nix ]; } diff --git a/modules/desktop/foot.nix b/modules/desktop/foot.nix new file mode 100644 index 0000000..11b2b42 --- /dev/null +++ b/modules/desktop/foot.nix @@ -0,0 +1,51 @@ +{home-manager, ...}: { + # Terminal emulator + # https://codeberg.org/dnkl/foot + + home-manager.users.caspervk = { + programs.foot = { + enable = true; + # https://man.archlinux.org/man/foot.ini.5.en + settings = { + main = { + font = "monospace:size=10.25"; + letter-spacing = "1"; + }; + colors = { + # https://alacritty.org/config-alacritty.html + foreground = "d8d8d8"; + background = "181818"; + regular0 = "181818"; # black + regular1 = "ac4242"; # red + regular2 = "90a959"; # green + regular3 = "f4bf75"; # yellow + regular4 = "6a9fb5"; # blue + regular5 = "aa759f"; # magenta + regular6 = "75b5aa"; # cyan + regular7 = "d8d8d8"; # white + bright0 = "6b6b6b"; # black + bright1 = "c55555"; # red + bright2 = "aac474"; # green + bright3 = "feca88"; # yellow + bright4 = "82b8c8"; # blue + bright5 = "c28cb8"; # magenta + bright6 = "93d3c3"; # cyan + bright7 = "f8f8f8"; # white + dim0 = "0f0f0f"; # black + dim1 = "712b2b"; # red + dim2 = "5f6f3a"; # green + dim3 = "a17e4d"; # yellow + dim4 = "456877"; # blue + dim5 = "704d68"; # magenta + dim6 = "4d7770"; # cyan + dim7 = "8e8e8e"; # white + }; + key-bindings = { + # HOW is this not the default? + scrollback-home = "Shift+Home"; + scrollback-end = "Shift+End"; + }; + }; + }; + }; +} diff --git a/modules/desktop/sway.nix b/modules/desktop/sway.nix index a8df370..715decd 100644 --- a/modules/desktop/sway.nix +++ b/modules/desktop/sway.nix @@ -117,7 +117,7 @@ text = "#ffffff"; }; }; - terminal = "alacritty"; + terminal = "foot"; bars = [{command = "${pkgs.waybar}/bin/waybar";}]; };